Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1201892pxp; Thu, 10 Mar 2022 00:19:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZ7QukllOAoR6ZD+ZqHYLB3Qvyp+lWJcJN5gdENBEKcLfvQXhiDoDKEZX8SVET20GIH5TC X-Received: by 2002:a05:6402:190a:b0:416:c2f8:ad22 with SMTP id e10-20020a056402190a00b00416c2f8ad22mr39129edz.144.1646900359834; Thu, 10 Mar 2022 00:19:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646900359; cv=none; d=google.com; s=arc-20160816; b=caU0zrjH7XjpHLO9asgfcmXU03nhJdsfgN3N3QV1BB5qMlf8DDUYBeaTqf5gNypmgV 6x4eDL/c4ft23e5sGH2oMq56bJNVpny5FmNT0N9KF3aEEJ5rwBgzM47f7dUAxrr8/OuR DaLQenPmzSxjP3sOAT9YdUVoX3ueoJDnQwOEmek29hVwhJRMC0xuu4z1LowsnOv7O7Ju ekTqruhqJEnkpcNKMnFx9hZGPnKuj0CeTHrf2ErDc5rAPzvTxK9f0r8AK5rGYgPqWVR9 qgzdFrnqFv6D9jH0ls+cxzU0kiLtA+riOYcy65anMUa2zydieNQPuFk1/X5TDxVH81xu a4Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NkJ80xBT0ib31wckUFxWwGpu2ympA41Nowl9Of9jprA=; b=e1l9WiPlGVfhu8/FZxoACgf6wO+n07fXu1w+01jq4bGM2WkbtV281BvVzZBMDp4g6K XagwAQQJc6TcLvSsmHO/vbdotwL5Kg5Ysbb2LnGsIgohmCJPPmZy+tQJ0kao6ZWiFIua 6Fsu1np8B5ZG7bCFSIKyf1rpPzSqbeKgmydQt4SxNDB2fN6ZW1BFO+WWuGA6ssfT95k4 +wfPv25XN6fwFyphg6XYNc+pZpQ0irbrna6eo3yMGi1pmU1qW5XsVWhsG/3L4YTvJZwY 90XFtDMnkT+8mfWP8BETntgkjgQpmFVIb0/1WwH2tBIF/cjpTnvjzJoYhptQLGpS6reo svKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B2z1aALg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a056402084a00b00415ed66af0asi3150748edz.37.2022.03.10.00.18.55; Thu, 10 Mar 2022 00:19:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B2z1aALg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237408AbiCIWiR (ORCPT + 99 others); Wed, 9 Mar 2022 17:38:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238781AbiCIWhy (ORCPT ); Wed, 9 Mar 2022 17:37:54 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6958F122201 for ; Wed, 9 Mar 2022 14:36:55 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id e2so3210788pls.10 for ; Wed, 09 Mar 2022 14:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NkJ80xBT0ib31wckUFxWwGpu2ympA41Nowl9Of9jprA=; b=B2z1aALg3HDOlBGV362QpNTrfOf2qGycJt9vCC6bSw4lUVyaKT84HXh00sOGAxM1Sm e/1ckdrHY+8PFN6qg1DWRWVy5sIuxad7BeDGv0KsNjw2KyVeSFphiZmsL0S66rqCKYIl 0amscOfdT0yTBh0GuViMSmwvkd67Fs2FU6AmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NkJ80xBT0ib31wckUFxWwGpu2ympA41Nowl9Of9jprA=; b=taF/EHxNdnbEmZ/wTBIoxXzhAdI4IoM55pOzulmHUFKh5DT/Vi4S0GzbqTG8LJDlE3 KK4Qu8q9w4Nfm88qBGR36FF7oIDpbTLXrKeSMqaevM80rX+fl3wNONp3vshZTZ/IVtNk iJLBBx0RRDw1aLGhgDN+4DLHnJnslVm0WrZjrgioDhu3ZCP6Bg7iQASH5+YJY4r8XjaD n+D9TIZKA6TtruG7XH8gUcnPYvK9FVwWNIN3+WXuLFzmeXASDpiTR/N9lBU87+LVlkXf v7I0UlDlpwq3lrcDOGyQ1p28C4wjVQvKN1gxXus/JqR8Ppamn0epqgS0TGDWHY/LiUpe idNA== X-Gm-Message-State: AOAM531E9eheZvokbABHKMw/syM2RKYNvd+RiKrQeyR8qaHoK/tIpFbN JCHa/Jjnki9KpmiA02AwueZmDg== X-Received: by 2002:a17:90a:950b:b0:1bc:a78a:8f20 with SMTP id t11-20020a17090a950b00b001bca78a8f20mr12797369pjo.42.1646865414929; Wed, 09 Mar 2022 14:36:54 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t7-20020a17090a510700b001bf5f79a770sm3721917pjh.15.2022.03.09.14.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 14:36:54 -0800 (PST) Date: Wed, 9 Mar 2022 14:36:53 -0800 From: Kees Cook To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Alexey Gladkov , Kyle Huey , Oleg Nesterov , Al Viro , Jens Axboe Subject: Re: [PATCH 10/13] signal: Move set_notify_signal and clear_notify_signal into sched/signal.h Message-ID: <202203091436.8E21CBE210@keescook> References: <87o82gdlu9.fsf_-_@email.froward.int.ebiederm.org> <20220309162454.123006-10-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220309162454.123006-10-ebiederm@xmission.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 09, 2022 at 10:24:51AM -0600, Eric W. Biederman wrote: > The header tracehook.h is no place for code to live. The functions > set_notify_signal and clear_notify_signal are not about signals. They > are about interruptions that act like signals. The fundamental signal > primitives wind up calling set_notify_signal and clear_notify_signal. > Which means they need to be maintained with the signal code. > > Since set_notify_signal and clear_notify_signal must be maintained > with the signal subsystem move them into sched/signal.h and claim them > as part of the signal subsystem. > > Signed-off-by: "Eric W. Biederman" Reviewed-by: Kees Cook -- Kees Cook