Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp992762rdb; Fri, 9 Feb 2024 07:16:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4h9iYusGfb0pJMckULHDSrFD2Y61sd9HH+5jKCet+D8PQsU8MwWyqk4InVJwEjVmndUs1 X-Received: by 2002:a17:906:4886:b0:a39:5509:ac3f with SMTP id v6-20020a170906488600b00a395509ac3fmr1528141ejq.3.1707491800358; Fri, 09 Feb 2024 07:16:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707491800; cv=pass; d=google.com; s=arc-20160816; b=afde/WAf3QN5Pc1mwo0YyoJy1RhjXN3HpPnqPRuDF+UIqsPHxp5nZLxOz/NC8AYPGu X0g8ri09he2GdsUhHIrTsRViSV+70k/9R5DmlTCSxwPrzpwVe+LXdE1Dc5Rv4OeINrzl o1xR5h8jBbJuOTzwIo9eFnmhgBNqIS1rX+CnfzLlDa48e8ehtDME3dQljib99LXkssKV 80fX4KgmHJboTTYyoLvN/v8W4dRTqhCigDIeHGUHGQGc/kYJEtWNad64oYDAcZVo1HRG gSMr3mlswlYDQfuPnmZsoQG9LHCcPt5Tg0zXUD1qJgCTGX+RrAs32BOtvNyv9kt2XUg/ MZNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ywnmcLay/Su1oRWoejY3m8w87TnsoT/jqw1Al6uCHN4=; fh=FjjW091kiVNWeaaVF3EsEHTuP1pjiYQkl3mVfhc9Af0=; b=A/T7BwqokMGMcmoI6WNBvZ6suR1gUUB81FPuWLJzr0PrJ5zU5zKwJQYYTNfEs/KxC/ VaC10kucupo6M7tJ5CW1rGtixeBwrzH/M5yuir8JVeDvzlojc/sxXD72bxGhO1RnaNC3 XmEF+CKaqRe5DqxOIOBY9U3j/xFwKxbI5k8Y5g15oWas6GNS596u2VVhcsZROOlQmIZz sEUKGKFfpPilVvNDNIa6S/MiSGmLrB09N794j/uYSGh7JAvR5ytYdNx/YidkMvHImyS5 yPIdC3zJvnrEf/350w28gc9o9V6IAf9OmddyrlB8npdhYU/YYqvjruz/vHr1JzuCNHe3 B7UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C3NOP8t3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59515-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; AJvYcCVrJd0ftOM8M42EzTdl2k0GvzfK4RY8SEUx4SGSiT08EKFotJBG7K5Foox3tLkqZJx1zoD0aC3BVefBkCVKDd+xeXE6kCo6vGv3/FkXBA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hg23-20020a170906f35700b00a3834f3320dsi872225ejb.908.2024.02.09.07.16.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 07:16:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C3NOP8t3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59515-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BEF8C1F2A8EA for ; Fri, 9 Feb 2024 15:10:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7602B6E2A1; Fri, 9 Feb 2024 15:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C3NOP8t3" 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 9DFDF2E3F9; Fri, 9 Feb 2024 15:10:38 +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=1707491438; cv=none; b=JBi/3rvBNr32Hi5I6uSQ8XcN5EP5sjjsMpeWFBq/zrh7xYyFmzL224Xr+gnJOZl8yL4PDyLMX+JUz47/T/Onnt9v6pexO2JLVrMTxlsisrre6MFZl6UEY3ExfGrHMRfdGQaIoevO7uUo9zxBH7jdhb1CcYa3goIQY0LYSf49HIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707491438; c=relaxed/simple; bh=jtvQEiSmcdJAs08jFyhzCwqMdwW7UympXpMaOorlvpY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PPKp3HS32x3KBOK3t8+y+RSOhvJtH5tUGH7u8X9GKUu6lQBeP4YH6C49uLd80U2Yjkwo03VJI7on88mXzT722OR+4dPbEiVMYqWIxNMLKu58lSyFlYXTjNzXoP49iqJkXJrDLRbZN5MLlhMzcgmBepy/ob9kseUO62/md2BW2Pw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C3NOP8t3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A4CFC433C7; Fri, 9 Feb 2024 15:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707491438; bh=jtvQEiSmcdJAs08jFyhzCwqMdwW7UympXpMaOorlvpY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C3NOP8t3CGrRJnQe2x+5tKwcmnn8kv74kQwowIcfCb68KydK+SJGbPxdATs9a9XYI kZhGdOm3TsELSomtrmGZ8ObQOkcZv4KfBQyAYqEhXmtILL5xsAOsFV218SFyXSHOez AccSIqHmdc3Kml+OqgUxf/Z5YF+mTQU+ePqslRkOJgtRKdVEREANk0Af1i3Uv7RWGq ytSG9GhE2GDUglIqHfNt2p5khlcap8BhykUGULAzjmjgsW82LHCLUyRb+MiVibjlny c4ekm7FY5IIrRw3l6fRCZermAbeecFTcDiiYoWSpP8SWxg6676OCiC7PVEHGKt6ZHi j37BEvRbAFi7w== Date: Fri, 9 Feb 2024 16:10:34 +0100 From: Christian Brauner To: Oleg Nesterov Cc: 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() Message-ID: <20240209-praxis-weggehen-6a20e0d02d84@brauner> 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 Content-Disposition: inline In-Reply-To: <20240209130620.GA8039@redhat.com> On Fri, Feb 09, 2024 at 02:06:20PM +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(). > > Signed-off-by: Oleg Nesterov > --- Looks good to me, Reviewed-by: Christian Brauner