Message ID | 20230420215331.88326-2-junxiao.bi@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp653701vqo; Thu, 20 Apr 2023 15:21:22 -0700 (PDT) X-Google-Smtp-Source: AKy350awz9dR1kY1yAQgUjTJjLU3j5z5AGxhj2ze6JZjmbGNKik+GDpRm6WZY8mM76aMbVFOXUCH X-Received: by 2002:a17:902:d48c:b0:1a3:c8c2:c322 with SMTP id c12-20020a170902d48c00b001a3c8c2c322mr3827108plg.29.1682029282122; Thu, 20 Apr 2023 15:21:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682029282; cv=pass; d=google.com; s=arc-20160816; b=IA29nGzMx6qcK2+FuR53FpDWgUIk7ZuQ/Zrd5xiqE2xp5UUU0MVe4qUKRv/GJSwHUK npFCanPIw8qU2YczePsryDFnXx2z/BLRiIAISWvQK94u9mfR28ysV5zlOMqtwOFGTNjF BzKValliEH4A0ZMWKNE7sTu3oAmoekXUa+0DlyaEtu93aLeUUgYVNlJ3MiIVDtzcTHBy 1DEzHvb909kSJPEPaG6pz320OmxO/cPpeWqyImheMOm6WXFsVIrm88X0BjIBRtaTEvkw Kvx8Vq93HuxWX966I4jPkiTafKkeEgT0osCxvMYfWuXW2278tMw/3+CsQQ9mSqGWnsxb amtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=wX9gDl7MwAkkjyL5VOUvTctIf8owQ51L8PKd1cTmMaA=; b=PItx95RFHil+77rhXt6Zt5Cf5hnUPlY7ByM2O3xEV4dm1JYlQk82stuRcXdzmCyXnb HjmOoMN8ufMk5+crE5q/AcKjamSWKU2tZnONJsEnh/WWKnOyybJZdDDTnjIyvCTSUeJ3 gGu5TKiNRpkrsqwkDvyFaWB0pHE/xqIHt3W0tt5ELAX3Li+bBgHS2X6LjAx08dmNLqT7 qf+bv2pSUnZvRd0KQgvKdv4SuMHvlCK99YbVyhXR/T9wiCZsU9nqRdZc7zarHZ1cdBAK m3nOoZYSbDOJxumt6hnAF3GdljIqSiPSFJivNDqnvFp8w70AlIGXonv7MimTE2RRC8Dx aK1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=l2nyumOk; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=xJlAqp9x; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la5-20020a170902fa0500b001a93e74c8b8si977553plb.481.2023.04.20.15.21.07; Thu, 20 Apr 2023 15:21:22 -0700 (PDT) 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=@oracle.com header.s=corp-2023-03-30 header.b=l2nyumOk; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=xJlAqp9x; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232289AbjDTVx7 (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Thu, 20 Apr 2023 17:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231728AbjDTVx5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Apr 2023 17:53:57 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AA901730; Thu, 20 Apr 2023 14:53:56 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33KK1lhd002114; Thu, 20 Apr 2023 21:53:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=wX9gDl7MwAkkjyL5VOUvTctIf8owQ51L8PKd1cTmMaA=; b=l2nyumOkMnvAgH14dmDkBgdwYq/UpsszYGZV8qle9LjwTsvyaogxDsNU3vkjSYTAypZl uPy2iH/crATRzuWVRBN9yK/RG42B1yb4TIkzIkTNnhzxM/Or+PUpjJ2XoqRa7QJGMfV3 u10VGVDdGK6Xucn89GElK8mf4feiIuafEFMkZktcGGKhm/o3Vy06F2uEJDoumhNpO4Cx LEl2vqUye4pfLzdTjhJtcXDBDY9arwNT7AvWk43iGE+G/NcYMhrupS5II6Gnbi8TNa3l uIktl6xaOp0E/jsqRO3a0qMTqbkEf79ZQSaCGS522gF9LtvNzky7ENdhubdmAjuuTdIU Rg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pykhu40wx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Apr 2023 21:53:50 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 33KK666E037795; Thu, 20 Apr 2023 21:53:49 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3pyjc8ug3u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Apr 2023 21:53:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/xqLcQpfWFY054qOEX87zzOABp2ZyD1YHvoPCvL9ZlXyFqf9zEyWBuhMESrJpRt2nFL2qAqctay3aNKTTbQeJ+HoWLr4cpXr+HxgMc/j6RR8u+7L84J0P9Nl+TkcpV0KBzRlzZVWp23dZVVHltOhwgKJHUGNoQEz2uWpUOz/2XsbNIZy5lpyl9vFm/JvpF2jzf07fzTh/tGNUiUSXZR5tA9MoXSRIV1i31IRgNpbR78qTiKt9UDsmIYc1qfWmbjhWEpLQ41cwk6Tg7Nw/bxWphlXtkr2LnFtXcOxuXlrjUnTllAsDCnTNVhttuILUqFiXMINg0wHIS+UU4OwWyuaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wX9gDl7MwAkkjyL5VOUvTctIf8owQ51L8PKd1cTmMaA=; b=N7VQcNDFH+uVrYYBdzOfNaGHbO0/AM/rDyAL9gmOPG2uMpbycb+v80OGvA9adAOfm5i+neK+CVj0TKJPT+ksZUyn4kuqQQT0OfAmzuemyAW7vi8PBPegCSRn8RJYWYqX8CJrH7qhaOZyLycF7/Y7qdCPhC2mee60fAjFnRJ1YfDMRgNpMvnUkcpv8/edDuGvvZjCgW9wo+Xm9iupnSVxLDxRFdZwj5mSwFH63D3LQMOhtcPOQ+HgMBjvd6St/n6ZMHo/CSt3pBmDFFUPQJ1dsebIJ31ulmd/X1bBYD1GTA5N+w68f7qi+s+S2Z+ejHPKv/0VvWXJQZfZCI3BcQkOLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wX9gDl7MwAkkjyL5VOUvTctIf8owQ51L8PKd1cTmMaA=; b=xJlAqp9x7LeUvnP24iUPz/ITFukDbck/IXpKknDCKHDe2SSzl05D+dUlmSHvOE1XJyPOufhgv2eZVn/MGrR0ko/FBt38E03OXU061GsYizWaldsA4udL4ixjemV2j0x8H2ySOc6gYi9i8MxNIS5vcQ9yg9SetZzwv1Nrw9oxFbo= Received: from SJ0PR10MB4752.namprd10.prod.outlook.com (2603:10b6:a03:2d7::19) by PH7PR10MB7036.namprd10.prod.outlook.com (2603:10b6:510:274::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Thu, 20 Apr 2023 21:53:47 +0000 Received: from SJ0PR10MB4752.namprd10.prod.outlook.com ([fe80::4a9d:b42c:57c7:b53c]) by SJ0PR10MB4752.namprd10.prod.outlook.com ([fe80::4a9d:b42c:57c7:b53c%5]) with mapi id 15.20.6319.022; Thu, 20 Apr 2023 21:53:47 +0000 From: Junxiao Bi <junxiao.bi@oracle.com> To: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-block@vger.kernel.org Cc: paul@paul-moore.com, nathanl@linux.ibm.com, axboe@kernel.dk, jmorris@namei.org, serge@hallyn.com, konrad.wilk@oracle.com, joe.jin@oracle.com, junxiao.bi@oracle.com Subject: [PATCH V4 2/2] blktrace: allow access trace file in lockdown mode Date: Thu, 20 Apr 2023 14:53:31 -0700 Message-Id: <20230420215331.88326-2-junxiao.bi@oracle.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20230420215331.88326-1-junxiao.bi@oracle.com> References: <20230420215331.88326-1-junxiao.bi@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO2P123CA0046.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600::34) To SJ0PR10MB4752.namprd10.prod.outlook.com (2603:10b6:a03:2d7::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR10MB4752:EE_|PH7PR10MB7036:EE_ X-MS-Office365-Filtering-Correlation-Id: 8475b27d-7caa-44cd-898b-08db41e9b7b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cStGXCJumBZmjK7y7/xY93wbDZzDeNw66HwieSMtfsPT9TelKch8wrVrJxAXpnFX/51yEgsROPoKt6MLq1pUsP/8tDfPFRf4MuJ37Ck/VvBKdWe3f8BjuYl5vdhhHHUWzNshFmPZ+S77PzHZpI8eKA5BlGklYenKUHWqeP9nEcNJ3phwFDNHmOclk72GEPhK9qTgQnCpSZVPB2uOm0rw9suwJPmzdHF75cWamadbP/sj9NqUXBGsYhRpbuQnK9m8+EV5s8LtlpC0RCOku0Xm3VcH6tDFw152tgkUt/DBzg/KFqQ/JsVdrjjuSXV91x/Ny2bvs864G4sdGmwywCQdRfjd2brBgNx/uTq59oWzd1WrfwoPoqsQbAbBpaKFWDBnLi5GC04L9OoQ28yvniHzELAUGYeuE7peJ0znLklEpj0LN8a1xpFdXT1kBDaJZ7CRwWYDNT4aYP6raPVHEjx+LM319z8BsGhVZ5uzsIkjfnFRQwXe0LjoTpRTs/zgQdlgzMl9QyrgLLKw0MdnhVu0qKYyIHJ+8+v+ksFOS3R8dWErW92zJQCWuoS2Jdj2ML1v X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4752.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39860400002)(376002)(396003)(346002)(136003)(451199021)(5660300002)(44832011)(2616005)(41300700001)(83380400001)(86362001)(107886003)(1076003)(6512007)(6506007)(186003)(38100700002)(8936002)(8676002)(478600001)(6666004)(6486002)(316002)(36756003)(66946007)(66556008)(66476007)(4326008)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0w6YP0qNKeh5/qcqdLsJOa9BIDgbrk1IqhSHvQJtwSPTRMIHSlWF3lzC4UPhgMgAlsIfMFQGdI7MCybyMzIeT+GYLoyxLMtguoLsDtOQldj52F8qF5vH6PJevr4dY2bP8cubL7CdOEcy9HSssBKroenlgCDlrgcOlJiE3s4CtTtBrPEbPqzOM7c7aEKkeRMpavF8Fxy6nqq9R/Fnnj8PdnrH8DVcd5+qtm8xxMhx3agV5qA7VaNkIlarBeM9AYizNiAC/TY12SmtSGmdEh82mPHAvmHUCk5UgbDs/FMZ4OD0W9bNsxTEi2AG4wFAjBeUyXQuds5Yv/yqEmUssF9/KRfCjSkRsQDidmy3RRNoDntpUDp2X7ql9FDChxqDd5Wt4g57O6Kf+62IJ3U4Gj5MK7lycMU20XWUeA+qXNeevhgwwrSjZtZ7CfT5rN4FxqyBQjaJ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uiTBsT0UUdznYW6CaimeEC9M3tO2mdAA9njg= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8475b27d-7caa-44cd-898b-08db41e9b7b1 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4752.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 21:53:47.3150 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ES19ecZs3TZgThBm68jH9aTMota3q3yEpiqmNVpgTUb5FrsDbGKgWVNd+RIc8vRpiuGYDpZUc20OhyLhoqTHug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB7036 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-20_15,2023-04-20_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304200185 X-Proofpoint-GUID: _nEKtGSYN58_925wjIfNpUeL4LuoX7mu X-Proofpoint-ORIG-GUID: _nEKtGSYN58_925wjIfNpUeL4LuoX7mu X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763735536316892724?= X-GMAIL-MSGID: =?utf-8?q?1763735536316892724?= |
Series |
[V4,1/2] debugfs: provide a way for relay user bypass lockdown
|
|
Commit Message
Junxiao Bi
April 20, 2023, 9:53 p.m. UTC
blktrace trace files are per-cpu relay files that are used by kernel to
export IO metadata(IO events, type, target disk, offset and len etc.) to
userspace, no data from IO itself will be exported. Bypass lockdown for
these files will make blktrace work in lockdown mode.
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
---
kernel/trace/blktrace.c | 6 ++++++
1 file changed, 6 insertions(+)
Comments
Any IO folks can help review this patch? Paul needs a confirm from you that the information blktrace exporting to userspace through the relay files are safe, not leaking information that userspace shouldn't know in lockdown mode. Thanks, Junxiao. On 4/20/23 2:53 PM, Junxiao Bi wrote: > blktrace trace files are per-cpu relay files that are used by kernel to > export IO metadata(IO events, type, target disk, offset and len etc.) to > userspace, no data from IO itself will be exported. Bypass lockdown for > these files will make blktrace work in lockdown mode. > > Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com> > --- > kernel/trace/blktrace.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c > index d5d94510afd3..e1a9f8b7d710 100644 > --- a/kernel/trace/blktrace.c > +++ b/kernel/trace/blktrace.c > @@ -490,10 +490,16 @@ static struct dentry *blk_create_buf_file_callback(const char *filename, > &relay_file_operations); > } > > +static bool blk_bypass_lockdown(struct inode *inode) > +{ > + return true; > +} > + > static const struct rchan_callbacks blk_relay_callbacks = { > .subbuf_start = blk_subbuf_start_callback, > .create_buf_file = blk_create_buf_file_callback, > .remove_buf_file = blk_remove_buf_file_callback, > + .bypass_lockdown = blk_bypass_lockdown, > }; > > static void blk_trace_setup_lba(struct blk_trace *bt,
On 4/25/23 11:55?AM, Junxiao Bi wrote: > Any IO folks can help review this patch? > > Paul needs a confirm from you that the information blktrace exporting > to userspace through the relay files are safe, not leaking information > that userspace shouldn't know in lockdown mode. I don't know anything about what lockdown is, but in terms of blktrace, it is a way to trace meta data associated with IO. It'll tell you things like "task T wants to {read,write} on device D, at offset X, and of size Y". For passthrough IO, it'll also dump the CDB. There's never any actual data traced.
On 4/25/23 12:12 PM, Jens Axboe wrote: > On 4/25/23 11:55?AM, Junxiao Bi wrote: >> Any IO folks can help review this patch? >> >> Paul needs a confirm from you that the information blktrace exporting >> to userspace through the relay files are safe, not leaking information >> that userspace shouldn't know in lockdown mode. > I don't know anything about what lockdown is, but in terms of blktrace, > it is a way to trace meta data associated with IO. It'll tell you things > like "task T wants to {read,write} on device D, at offset X, and of size > Y". For passthrough IO, it'll also dump the CDB. There's never any > actual data traced. Thanks Jens. Lockdown is a security feature which is trying to limit user's(including root) capability to access security sensitive information inside kernel, there are two modes, read-only access is allowed in "integrity" mode while both read and write access are disabled in "confidentiality" mode. Paul, do you have any other concerns regarding blktrace? As Jens mentioned, blktrace just exported IO metadata to Userspace, those were not security sensitive information. Thanks, Junxiao.
On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: > Paul, do you have any other concerns regarding blktrace? As Jens > mentioned, blktrace just exported IO metadata to Userspace, those were > not security sensitive information. I think this version of the patchset is much better, thanks for your patience. I don't have any further concerns, and since the lockdown LSM doesn't have a dedicated maintainer I think you should be all set from my perspective. Since there are no changes under security/, I'm assuming this will go in via the tracing tree?
On 4/28/23 2:26 PM, Paul Moore wrote: > On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: >> Paul, do you have any other concerns regarding blktrace? As Jens >> mentioned, blktrace just exported IO metadata to Userspace, those were >> not security sensitive information. > I think this version of the patchset is much better, thanks for your > patience. I don't have any further concerns, and since the lockdown > LSM doesn't have a dedicated maintainer I think you should be all set > from my perspective. Thanks a lot for the review. > > Since there are no changes under security/, I'm assuming this will go > in via the tracing tree? Should I notify some specific maintainer or mail list for merging? Thanks, Junxiao. >
On Fri, Apr 28, 2023 at 6:41 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: > On 4/28/23 2:26 PM, Paul Moore wrote: > > On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: > >> Paul, do you have any other concerns regarding blktrace? As Jens > >> mentioned, blktrace just exported IO metadata to Userspace, those were > >> not security sensitive information. > > I think this version of the patchset is much better, thanks for your > > patience. I don't have any further concerns, and since the lockdown > > LSM doesn't have a dedicated maintainer I think you should be all set > > from my perspective. > > Thanks a lot for the review. > > > Since there are no changes under security/, I'm assuming this will go > > in via the tracing tree? > > Should I notify some specific maintainer or mail list for merging? When in doubt, the scripts/get_maintainer.pl tool in the kernel sources can be helpful. The results for the debugfs and relay files are fairly generic, but if you look at the results for the blktrace.c file you get a more reasonable list of maintainers and mailing lists. I believe Jens has already commented on your patches at least once, I don't recall if the others have or not. I see you've already CC'd the block mailing list, so that might be enough. Keep in mind that we are in the middle of a merge window so it is very possible this patch might not be merged in a working/next/etc. branch until after the merge window closes (every maintainer is a little bit different in this regard).
On 4/30/23 2:46 PM, Paul Moore wrote: > On Fri, Apr 28, 2023 at 6:41 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: >> On 4/28/23 2:26 PM, Paul Moore wrote: >>> On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: >>>> Paul, do you have any other concerns regarding blktrace? As Jens >>>> mentioned, blktrace just exported IO metadata to Userspace, those were >>>> not security sensitive information. >>> I think this version of the patchset is much better, thanks for your >>> patience. I don't have any further concerns, and since the lockdown >>> LSM doesn't have a dedicated maintainer I think you should be all set >>> from my perspective. >> Thanks a lot for the review. >> >>> Since there are no changes under security/, I'm assuming this will go >>> in via the tracing tree? >> Should I notify some specific maintainer or mail list for merging? > When in doubt, the scripts/get_maintainer.pl tool in the kernel > sources can be helpful. > > The results for the debugfs and relay files are fairly generic, but if > you look at the results for the blktrace.c file you get a more > reasonable list of maintainers and mailing lists. I believe Jens has > already commented on your patches at least once, I don't recall if the > others have or not. I see you've already CC'd the block mailing list, > so that might be enough. > > Keep in mind that we are in the middle of a merge window so it is very > possible this patch might not be merged in a working/next/etc. branch > until after the merge window closes (every maintainer is a little bit > different in this regard). I didn't see the patches in the trace tree yet, maybe better to merge it through block tree since it's a blktrace fix. Jens, can you help merge these two patches to your tree? Thanks, Junxiao. >
Hi Paul, The patches have not been merged yet, i would like to resend them, just want to confirm i can add your Reviewed-by in the patches, right? Thanks, Junxiao. On 5/9/23 9:13 AM, Junxiao Bi wrote: > On 4/30/23 2:46 PM, Paul Moore wrote: > >> On Fri, Apr 28, 2023 at 6:41 PM Junxiao Bi <junxiao.bi@oracle.com> >> wrote: >>> On 4/28/23 2:26 PM, Paul Moore wrote: >>>> On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> >>>> wrote: >>>>> Paul, do you have any other concerns regarding blktrace? As Jens >>>>> mentioned, blktrace just exported IO metadata to Userspace, those >>>>> were >>>>> not security sensitive information. >>>> I think this version of the patchset is much better, thanks for your >>>> patience. I don't have any further concerns, and since the lockdown >>>> LSM doesn't have a dedicated maintainer I think you should be all set >>>> from my perspective. >>> Thanks a lot for the review. >>> >>>> Since there are no changes under security/, I'm assuming this will go >>>> in via the tracing tree? >>> Should I notify some specific maintainer or mail list for merging? >> When in doubt, the scripts/get_maintainer.pl tool in the kernel >> sources can be helpful. >> >> The results for the debugfs and relay files are fairly generic, but if >> you look at the results for the blktrace.c file you get a more >> reasonable list of maintainers and mailing lists. I believe Jens has >> already commented on your patches at least once, I don't recall if the >> others have or not. I see you've already CC'd the block mailing list, >> so that might be enough. >> >> Keep in mind that we are in the middle of a merge window so it is very >> possible this patch might not be merged in a working/next/etc. branch >> until after the merge window closes (every maintainer is a little bit >> different in this regard). > > I didn't see the patches in the trace tree yet, maybe better to merge > it through block tree since it's a blktrace fix. > > Jens, can you help merge these two patches to your tree? > > Thanks, > > Junxiao. > >>
On Fri, May 26, 2023 at 12:56 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: > > Hi Paul, > > The patches have not been merged yet, i would like to resend them, just > want to confirm i can add your Reviewed-by in the patches, right? Hi Junxiao, I haven't personally had the time to verify the blktrace claims that it doesn't violate the Lockdown principles so I'm not comfortable adding my reviewed-by tag at this point in time, I'm sorry. > On 5/9/23 9:13 AM, Junxiao Bi wrote: > > On 4/30/23 2:46 PM, Paul Moore wrote: > > > >> On Fri, Apr 28, 2023 at 6:41 PM Junxiao Bi <junxiao.bi@oracle.com> > >> wrote: > >>> On 4/28/23 2:26 PM, Paul Moore wrote: > >>>> On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> > >>>> wrote: > >>>>> Paul, do you have any other concerns regarding blktrace? As Jens > >>>>> mentioned, blktrace just exported IO metadata to Userspace, those > >>>>> were > >>>>> not security sensitive information. > >>>> I think this version of the patchset is much better, thanks for your > >>>> patience. I don't have any further concerns, and since the lockdown > >>>> LSM doesn't have a dedicated maintainer I think you should be all set > >>>> from my perspective. > >>> Thanks a lot for the review. > >>> > >>>> Since there are no changes under security/, I'm assuming this will go > >>>> in via the tracing tree? > >>> Should I notify some specific maintainer or mail list for merging? > >> When in doubt, the scripts/get_maintainer.pl tool in the kernel > >> sources can be helpful. > >> > >> The results for the debugfs and relay files are fairly generic, but if > >> you look at the results for the blktrace.c file you get a more > >> reasonable list of maintainers and mailing lists. I believe Jens has > >> already commented on your patches at least once, I don't recall if the > >> others have or not. I see you've already CC'd the block mailing list, > >> so that might be enough. > >> > >> Keep in mind that we are in the middle of a merge window so it is very > >> possible this patch might not be merged in a working/next/etc. branch > >> until after the merge window closes (every maintainer is a little bit > >> different in this regard). > > > > I didn't see the patches in the trace tree yet, maybe better to merge > > it through block tree since it's a blktrace fix. > > > > Jens, can you help merge these two patches to your tree? > > > > Thanks, > > > > Junxiao.
On 5/26/23 2:37 PM, Paul Moore wrote: > On Fri, May 26, 2023 at 12:56 PM Junxiao Bi <junxiao.bi@oracle.com> wrote: >> Hi Paul, >> >> The patches have not been merged yet, i would like to resend them, just >> want to confirm i can add your Reviewed-by in the patches, right? > Hi Junxiao, > > I haven't personally had the time to verify the blktrace claims that > it doesn't violate the Lockdown principles so I'm not comfortable > adding my reviewed-by tag at this point in time, I'm sorry. No problem. With Jens confirmed blktrace only exposed IO metadata to userspace, if any more query regarding blktrace, please let me know. Thank you. Thanks, Junxiao. > >> On 5/9/23 9:13 AM, Junxiao Bi wrote: >>> On 4/30/23 2:46 PM, Paul Moore wrote: >>> >>>> On Fri, Apr 28, 2023 at 6:41 PM Junxiao Bi <junxiao.bi@oracle.com> >>>> wrote: >>>>> On 4/28/23 2:26 PM, Paul Moore wrote: >>>>>> On Wed, Apr 26, 2023 at 12:33 PM Junxiao Bi <junxiao.bi@oracle.com> >>>>>> wrote: >>>>>>> Paul, do you have any other concerns regarding blktrace? As Jens >>>>>>> mentioned, blktrace just exported IO metadata to Userspace, those >>>>>>> were >>>>>>> not security sensitive information. >>>>>> I think this version of the patchset is much better, thanks for your >>>>>> patience. I don't have any further concerns, and since the lockdown >>>>>> LSM doesn't have a dedicated maintainer I think you should be all set >>>>>> from my perspective. >>>>> Thanks a lot for the review. >>>>> >>>>>> Since there are no changes under security/, I'm assuming this will go >>>>>> in via the tracing tree? >>>>> Should I notify some specific maintainer or mail list for merging? >>>> When in doubt, the scripts/get_maintainer.pl tool in the kernel >>>> sources can be helpful. >>>> >>>> The results for the debugfs and relay files are fairly generic, but if >>>> you look at the results for the blktrace.c file you get a more >>>> reasonable list of maintainers and mailing lists. I believe Jens has >>>> already commented on your patches at least once, I don't recall if the >>>> others have or not. I see you've already CC'd the block mailing list, >>>> so that might be enough. >>>> >>>> Keep in mind that we are in the middle of a merge window so it is very >>>> possible this patch might not be merged in a working/next/etc. branch >>>> until after the merge window closes (every maintainer is a little bit >>>> different in this regard). >>> I didn't see the patches in the trace tree yet, maybe better to merge >>> it through block tree since it's a blktrace fix. >>> >>> Jens, can you help merge these two patches to your tree? >>> >>> Thanks, >>> >>> Junxiao.
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index d5d94510afd3..e1a9f8b7d710 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -490,10 +490,16 @@ static struct dentry *blk_create_buf_file_callback(const char *filename, &relay_file_operations); } +static bool blk_bypass_lockdown(struct inode *inode) +{ + return true; +} + static const struct rchan_callbacks blk_relay_callbacks = { .subbuf_start = blk_subbuf_start_callback, .create_buf_file = blk_create_buf_file_callback, .remove_buf_file = blk_remove_buf_file_callback, + .bypass_lockdown = blk_bypass_lockdown, }; static void blk_trace_setup_lba(struct blk_trace *bt,