Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1034366rdb; Fri, 9 Feb 2024 08:22:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUMrpHPe0O2LEGm/4/5UojXD6c7MU0dCCC4ZQrgbuzVHisqbPHW5osglJNH2lqGN9G2+d8mRdojNVeJVeGkVtsrNyCEjyptFOD4xUzp1A== X-Google-Smtp-Source: AGHT+IFCi1heRM7bzkD8VkkSvrWKgP4HdsOq5sKoAJ8vk2pr4PGNNFSwCgRaAVkueSwzA0qK+jgJ X-Received: by 2002:a05:6358:d093:b0:176:4e7d:f30e with SMTP id jc19-20020a056358d09300b001764e7df30emr2269416rwb.14.1707495756750; Fri, 09 Feb 2024 08:22:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707495756; cv=pass; d=google.com; s=arc-20160816; b=a+Rq5PHF7W3sUxhAb523/cwPKNiS7hZm4zI8iY+kbtfqVAxl8URnS0hP11myc8/OTB JjrHYnx51nmiOBHEigSIJ6aYFntGveZ+lNJssRLo+9w4CI5Dsl/6uIMeOX2BV/XcWD/c ToiC9FUewSQJlvhCG8nNI7OyZ/1gbdztzjUsovao8RpPAdwJrSE5QY53EcNktb0KkIFi mdoJzGG3uXsZHrIn7W+mJ711jkVsbibSRLdb07rAguKaX4kJ9+dHCB8eGU+uGoqidjV2 1BHP+04xsp6i4GXALMU/dI4E5ms+jusIyEaRd4HSuzGJPqDcmC23QRTMB7Mw/8ib1Y75 COnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nL+GTV/qdWq/LY0j87UFn1YAMIG+XQNUMxMZA5tkn5Q=; fh=CiYvHvIojhY7Oc9spuu6desw2P8Aln4wrpXLu95nNSo=; b=wtZyik26USTLnbk/SzWxHIbYCHoaCOy0l14iDxXl4LkmJt3kag/gK58q38NLfAO2un C9bL1Anu7pfZY+2p2mbePFLr0ekQvimW2eI4LM39uVurD6b4YyYwbZ17IudlvxNmaEue fgxdKzY89kNdqvAUehdqTwNbn7olLdEpRcOFNVTd9Hs9+2inK6+OW83Rh9+UoaNTXKUZ V++IJ1aydXfADqNA2R2uukCAly+q+jChRAbKGq1QZJMVSHKPXfNXl3O4SKvWmxdGFaAD lgZDiAE7iE0Ye3ctAKUwhSXu752+DbI4xwUP2XH2bC/2G+lJjgWjw0EnnZHtvDHqLCbQ 41ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uGpEGKIk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVZNYxaE9MitrH28cqRJrh52YTluV0CJvJwobNWzAkNwKulY2pU71Kh+2qycfY3PNFH118psAwwN5lNpdZyyflDfV2sZ5PwoZCNVpqz3w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b16-20020a637150000000b005d8e1f10c3asi1895786pgn.877.2024.02.09.08.22.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:22:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uGpEGKIk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B0231B23D41 for ; Fri, 9 Feb 2024 16:16:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 882567B3C4; Fri, 9 Feb 2024 16:16:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uGpEGKIk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACAD874E17; Fri, 9 Feb 2024 16:16:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707495364; cv=none; b=h2+MQYXhEEdtETDnoJIOaoxl+zuFuYj4q0Wydwjon+IZB3QJxGO3qLNm03WyplaAC2SS9Z5zrH+8QTzJWU7La9f49hbclYvtJaNUn/EFYWTS4sP0l6J6bm8R5UgmnQCcqSbclAhIKvzb/NjYr5zoZrqH5awgvLA03H9JXZEET4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707495364; c=relaxed/simple; bh=HY7CClStAsX0getnIKIa/TlFZVB5sdICRUbb66V5RLY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LmQ9VIJd5L1RBE6lO7lcXFzx5zfB9Nd2qgF9zXtQGJR4KpWqN3nACFlA0H8dMBsuTrfSjeEr0XYYYCtITNw4wO++o7YDp229cNUd8epJn0Iroeyth9ETljBpBKJsBrX16ig66yVGXRpct3EA9opaWcZbg1dJP+YNyb/qxU66S/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uGpEGKIk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CCAEC433F1; Fri, 9 Feb 2024 16:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707495364; bh=HY7CClStAsX0getnIKIa/TlFZVB5sdICRUbb66V5RLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uGpEGKIkAC1JmD6lOOdiTmkTBbEMn8scsRqXfcET7WrGRUILvmTXO+CmK3xGd905k OfxleyPCJRb8vSLbzQmaonFWBEZmeZ9Iv25B3ybhLGC3CWgE1aYjbORwUWyhia+sDH NVT0bZ+l06F1hXddSuG8haJsVFrYtkvi8LmDzTuQuMJ1WoeyKKSCh98+saRiVVJeSN OeaMWK4518E5Hofd3dkzgrlXa+mFq6o/kPNDD20JZLQK3I2f08I//06dWoRNMpCEyc 9AAlKCEUn+/NN7954XrCU3xb7uzlWisxiB5urO1YiUAdWBSv7h3hXgy4hnnrdL/0Nz ULe6XoK/MNvVg== From: Christian Brauner To: Oleg Nesterov Cc: Christian Brauner , Andy Lutomirski , "Eric W. Biederman" , Tycho Andersen , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] signal: add the "int si_code" arg to prepare_kill_siginfo() Date: Fri, 9 Feb 2024 17:13:23 +0100 Message-ID: <20240209-zeitraffer-antiseptisch-56312df26b2c@brauner> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240209130620.GA8039@redhat.com> References: <20240209130620.GA8039@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1238; i=brauner@kernel.org; h=from:subject:message-id; bh=HY7CClStAsX0getnIKIa/TlFZVB5sdICRUbb66V5RLY=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQe8zeMf8Hbf+7kBe3YCcbhjdZXGTyZVrxPV1i7WM5x+ f2pzbY3O0pZGMS4GGTFFFkc2k3C5ZbzVGw2ytSAmcPKBDKEgYtTACbybj7DX1GmsOaDNXZRE8Wt dda1nZy47N/9cJ55V55pL0pLOLr52SNGhiUlsiobontzi1g1Ev4sifisv+5p5dw6luKFIjx/Pv8 R4QYA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit On Fri, 09 Feb 2024 14:06:20 +0100, Oleg Nesterov wrote: > So that do_tkill() can use this helper too. This also simplifies > the next patch. > > TODO: perhaps we can kill prepare_kill_siginfo() and change the > callers to use SEND_SIG_NOINFO, but this needs some changes in > __send_signal_locked() and TP_STORE_SIGINFO(). > > [...] Applied to the vfs.pidfd branch of the vfs/vfs.git tree. Patches in the vfs.pidfd branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.pidfd [1/2] signal: add the "int si_code" arg to prepare_kill_siginfo() https://git.kernel.org/vfs/vfs/c/3a363602809c [2/2] pidfd: change pidfd_send_signal() to respect PIDFD_THREAD https://git.kernel.org/vfs/vfs/c/2885a4b3358d