From patchwork Fri Feb 4 13:50:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12735088 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C94C4C433EF for ; Fri, 4 Feb 2022 13:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WpnBuYzeva6F8QG20PbV4DxXBp7RxRVicUwonQV7JeM=; b=VEgZ/VitEScar5 mR0waYykfpoTdDMG8h59DIJ8Hd0jklessba4dsrRSwdCHiKAdInn2XGIAvotuRtjCzgih+FEqfE/q DfxoSrvEdxbPnCo1MtX+WSFcHBIGX2lgXFLgZ4fgx4Qh7HGjWR0JzbbfZWNJYBj0iRIGXiHSlnxTb ak1+JQRjGnTPc9qrjgKg8bRA3GmXqgQYP/kytipHaKjsAYKc6TO5vcksNaksSF6RRTlORK98nXdpX zMCyylsEFltPL1+Wk2uOe9/6Y9XMZFUnRmy8M0iQOAZTbJw2b/lYmjIl2KjBS16U1mSfCxwScweCJ fIdIRbx8MHlFbw6EjXjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFyze-004RYY-1h; Fri, 04 Feb 2022 13:51:18 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFyza-004RXh-Hq for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 13:51:16 +0000 Received: by mail-pl1-x635.google.com with SMTP id h14so5216703plf.1 for ; Fri, 04 Feb 2022 05:51:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=u5sNLEWltEO9XSUZse3WnvAq31puwDAMnxkYi3RsNzI=; b=weU0rv5RqPcTmEvnEL4NAMxTPzCi4f5hR3dPo/wNUnNZMERSPyIYUBJgmq+twoeQa+ eS1wtQ9JoiWmB6s4IMR2MxZc5dn7iIHVCUuSmZgMl5NuHVRLSSjQB9P6JHC5/TU1BQqJ tpZruGka6ANLsfU2SDx/6pKMeX8nAxKgnXx5p/qyOGKVF3uGyOX7H7UEJYiLnqc60zvI tJnxyp+E1ErJ9t5xBX5T4PpPEdWeIMZfEVqdbOBAacqq9zXZQb09H8mj4J35zjF1kM+H zvTrOLyyoXM8ZptOXa4yGzl/mF2GY/4MD5fci4QnK1qeEpWDe2Bqe6uTfvxvkqPRSKKU yBVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=u5sNLEWltEO9XSUZse3WnvAq31puwDAMnxkYi3RsNzI=; b=oW4BB9zQbXdX7wI1V5DpzUoiJGcoWz31SNoTeiP8uXoZY40GAJMAzJsdMelWEwRPOV JBIjPBRwp9Qttj8zNHTjo9vyEy3JKTTkRtwaTabFvFPsiXbO9eclb/ui/OUuU0AGnipW EGHlEywOrvwgPrjQo7+o3pVUv4TU+xVMo7zjnmT/mc5mZ3W/aSrADW97YESPHf10frPh HW+RCuCukOwhD8Oi+ORc7YgFmmO4nSQGB8XrIaDSt7sDbGbt0q1Q52PicQzRhcp/w2h4 wwsOVh3fRsa/5XGNkspnHbKBQzCbSvXrgv5HJHW9zIZJTyO1OnQC5z49n9Y/nHR8yql3 CTKw== X-Gm-Message-State: AOAM5333i3YXNfQxlPN0JzPnIfah3NPMTY4MTpibAbXC5NOSmPdkeSuL zPwfnlYNumYT9LyHbaGoNhwCjQ== X-Google-Smtp-Source: ABdhPJxnCHeJhKawk6/bntlj5jOatwwt089k4bZ/GwP2S/068NafWmqyZjaWvIgt5/Xm5Fwjn6drgQ== X-Received: by 2002:a17:902:7ec1:: with SMTP id p1mr2921036plb.159.1643982670319; Fri, 04 Feb 2022 05:51:10 -0800 (PST) Received: from localhost.localdomain ([134.195.101.46]) by smtp.gmail.com with ESMTPSA id 13sm2668131pfm.161.2022.02.04.05.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 05:51:09 -0800 (PST) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Mike Leach , Alexander Shishkin , Jan Harkes , coda@cs.cmu.edu, Paul Moore , Eric Paris , Balbir Singh , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, codalist@coda.cs.cmu.edu, linux-audit@redhat.com Cc: Leo Yan Subject: [PATCH v4 0/5] pid: Use helper task_is_in_root_ns() Date: Fri, 4 Feb 2022 21:50:46 +0800 Message-Id: <20220204135051.60639-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_055114_638708_A1DEDD5E X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The helper task_is_in_root_ns() has been merged into the mainline kernel (thanks Jakub Kicinski for merging the patches [1]). On the other hand, there have 5 patches were left out in the patch series v2 [2], this patch series is to resend these 5 patches so that sub-module maintainers could pick patches without concerning dependency issue. This patch series can be cleanly applied on the mainline kernel with latest commit dcb85f85fa6f ("gcc-plugins/stackleak: Use noinstr in favor of notrace"). [1] https://lore.kernel.org/lkml/20220126050427.605628-1-leo.yan@linaro.org/ [2] https://lore.kernel.org/lkml/20211208083320.472503-1-leo.yan@linaro.org/ Changes from v2: * Added review and ack tags. * Dropped two merged patches and resend the left 5 patches. Changes from v1: * Renamed helper function from task_is_in_root_ns() to task_is_in_init_pid_ns(). (Leon Romanovsky) * Improved patches' commit logs for more neat. Leo Yan (5): coresight: etm3x: Use task_is_in_init_pid_ns() coresight: etm4x: Use task_is_in_init_pid_ns() coda: Use task_is_in_init_pid_ns() audit: Use task_is_in_init_pid_ns() taskstats: Use task_is_in_init_pid_ns() drivers/hwtracing/coresight/coresight-etm3x-sysfs.c | 8 ++++---- drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 8 ++++---- fs/coda/inode.c | 2 +- fs/coda/psdev.c | 2 +- kernel/audit.c | 2 +- kernel/taskstats.c | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-)