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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96314C61DA4 for ; Sat, 11 Mar 2023 16:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbjCKQLz (ORCPT ); Sat, 11 Mar 2023 11:11:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbjCKQLv (ORCPT ); Sat, 11 Mar 2023 11:11:51 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB712E810 for ; Sat, 11 Mar 2023 08:11:49 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32BDOqr9007563; Sat, 11 Mar 2023 16:11:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=Wi9yiwMBSxjtLy8cndYA8XiMrgB2QqG+hZf6Q8xu1I8=; b=cY7CHNF0vnBwHjoT2fI0UXS45fed8yZaOOL7ZiIisqVTQ1V/5V7PGy9Axb7/J1e42Ap4 LeibHwZDTVEwR5A2ABCz6Oc6+vD7Cd0Tth8Kgr09PSXZA62OGwi1LN08DBF6O116iENs r9ThU9IuZiVdzmlnD+BqNdc8h45X60AcKt0nOtG7Km1Zq6aP2Ola/IzfcUw6si8ASTIz tsJ99M/E68QH1I/+m7vaQITq/KsA6JzJcoOyBLxrX93M9wwMEukgm4Gr9S0Oglfpk7VS jfO90NdzhY6jNqjBL+MF6pWgJEwrxUUdHBMl3HVe7RkujaBGiR7k8F8MSPQFxFO2eeLM KQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3p8j6u0g0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 11 Mar 2023 16:11:33 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 32BG1XnN008160; Sat, 11 Mar 2023 16:11:32 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3p8g32xm6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 11 Mar 2023 16:11:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lP7YfymcnAwy8XK7i1LwjaNPLetfi7miKE46+X1CaX0qaV4zpu9aTAEhPKxm/NFvEQje7tyFzPgb1sfDajPOFNNrbb7nqq1lyXln27PpPChS+Zz5QOo6mD2jqww1qlZxclnUBkfNV113XPaygpioxnUJ/3y2au5gqTH67adfwyBKmlttBpsumF9FcBoWzOSJt8ABO+jqwgkAwxCK0KlpkSwf3siN/AfM7isZTxcIQ5Z5bxZ1l1YPAsd309UwtyfagnPagTd1fYi/dtTkAuuuOJqCNnAG0FFwtrQMxWwYa8KUh3iVddN6xm/U3iJbimdgzgVCp8MbQ+GP8DZTFt1TKA== 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=Wi9yiwMBSxjtLy8cndYA8XiMrgB2QqG+hZf6Q8xu1I8=; b=KTJt9DlYq5a78PeOQE9WLAR0RampktPMw8oREXhHg7EVz7N3E061XYOd/ClinOniK2/ua8bz5ZhA5bTq/EO+xRZN9y3WUjqVFXzoJyjX4kfJgo2NX6kwbIvmHtbMTIzer4KNYAxoKP4kP0ffvWlVcCGnra6OShPAg0salgTV0SVCIP/+Nhb4wRzmxcOIEQD9KWz4JG8qsq5K2EVbP/e9VNUZWTjObErf1gLIfs3/S7rJcHL5Pd4M3UWUw4qTHgyHLqBPqyQhTJaRv1TDcK8bXyxH0lcouW339E820769aOs06yCEQ0i6AROPM0G2O+FcrtFvJ1NrFJIACvDQR9y3Mg== 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=Wi9yiwMBSxjtLy8cndYA8XiMrgB2QqG+hZf6Q8xu1I8=; b=gWHff9DwW7S1pK2ZFzfWRoKqTNnx2r9cOACHUHkOv01EgocOK91Y7CC9n5yGh6ZGTALGrk60kkzsrKgs566DWwUaIIvG7Phsxg9u1l/zolQv0bQJ0yyOXdbGYjd989uTgKjMHLKcdZfQhRJnXMSpd1Tv2J+94QYx1SAzTkehxiE= Received: from DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) by CH0PR10MB7412.namprd10.prod.outlook.com (2603:10b6:610:184::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Sat, 11 Mar 2023 16:11:30 +0000 Received: from DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::7dd7:8d22:104:8d64]) by DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::7dd7:8d22:104:8d64%7]) with mapi id 15.20.6178.022; Sat, 11 Mar 2023 16:11:29 +0000 Message-ID: <74a17cb6-9dcd-749b-5d06-b2c364d36ae2@oracle.com> Date: Sat, 11 Mar 2023 10:11:26 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 03/11] kthread: Pass in the thread's name during creation To: Christian Brauner Cc: hch@infradead.org, stefanha@redhat.com, jasowang@redhat.com, mst@redhat.com, sgarzare@redhat.com, virtualization@lists.linux-foundation.org, ebiederm@xmission.com, torvalds@linux-foundation.org, konrad.wilk@oracle.com, linux-kernel@vger.kernel.org References: <20230310220332.5309-1-michael.christie@oracle.com> <20230310220332.5309-4-michael.christie@oracle.com> <20230311085326.m7aub5duy76hnnam@wittgenstein> Content-Language: en-US From: michael.christie@oracle.com In-Reply-To: <20230311085326.m7aub5duy76hnnam@wittgenstein> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH2PR08CA0019.namprd08.prod.outlook.com (2603:10b6:610:5a::29) To DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR10MB1466:EE_|CH0PR10MB7412:EE_ X-MS-Office365-Filtering-Correlation-Id: 89be88ee-70a8-4125-f97d-08db224b4599 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LA9BRD2vDRrx6NNdMkeicB+83qr7jZpZmPCPoQcH4hDkzGylxnjXDclyeIryUgkdmV5bobD0Dhh7BIFRLJopt1oQXEjM1IkduPhWfwoYUfPrqQetHbDqct4cvUPeymDO5lx71/1fiTokgbPUrDONtBcZ/Zar1NssBjuCOVNHbx/6WeAGTS/48EMi6JPl2qdJ1bzHKGlzB92qCCuXHHQtXhV/ubGNyMsrJ+Qa0ERGDVGPYLVs/br6ovZkLgvoYsTpz99KGvBaCCmmUNq5AXQUVVhlUFPo/yHQhhV1wDHsjOPdgnzre6VKCL59HMVsMGYc8Rhs4VLJYqPq/SiIWR/HGWW4R00XysWDYNx8Y0f7FS6EGPAmkfoUYSfQXKFxXqx0GZlVzy77qwcEIz/cgkF6fyq1E9bASN1wAjY8s/ru5cdlQHqcIj956LGAVnyYbtXzMRWU8trZcZjwYke9xlRNIRq/sjmIwdxL9bN7gwOQP+yStSl+C9NLoONPInupscaLakO0kf72c2Vn9m1PY4L145Uf9ygWsPsvZEEXRw8pahGUh33Oag0fcEwyDp0itCVE/tlRJhZDYSoFbbgplCh5Td+HOmzJ0IAK+e7OcSubjZVqzRW0ieu0vFAv1oRTjD6dhYfWXPqaHsss4oIHtwjBp9sUYKxadrd/HpSmyFI5Lpx+a/zlihjHNFZPKqyL4heP8KMi4xuOb7t0C/ZM6UXhyA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR10MB1466.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(376002)(396003)(39860400002)(366004)(346002)(136003)(451199018)(31686004)(7416002)(5660300002)(2906002)(41300700001)(86362001)(31696002)(36756003)(38100700002)(8936002)(66556008)(66476007)(8676002)(478600001)(6486002)(6666004)(6916009)(66946007)(4326008)(316002)(83380400001)(53546011)(186003)(2616005)(9686003)(26005)(6512007)(6506007)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d0k3WVlsOG5yOFhweFJ4MVA4MnZmb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UHhqbzlRWjFud3V2MS9EcjRaWG9JdldMcEIvQllkcXVEVTlk?= =?utf-8?B?aEJvVVo1eThNb2c9PQ==?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89be88ee-70a8-4125-f97d-08db224b4599 X-MS-Exchange-CrossTenant-AuthSource: DM5PR10MB1466.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2023 16:11:29.1011 (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: PEW4tYvzumqPKe1YIBFZWpls3nd+nfumqv64MNhBax3XixT3b2GwUWHPldjAWbibRPY5xxx+TEFuywlVXBEI02kGcSnHEP0J93e8MjJkqRY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB7412 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-03-11_04,2023-03-10_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 suspectscore=0 spamscore=0 malwarescore=0 adultscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303110146 X-Proofpoint-GUID: 0-tlBm7_auJbzo5ionK4l_WjflC8wIiy X-Proofpoint-ORIG-GUID: 0-tlBm7_auJbzo5ionK4l_WjflC8wIiy Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/11/23 2:53 AM, Christian Brauner wrote: > On Fri, Mar 10, 2023 at 04:03:24PM -0600, Mike Christie wrote: >> This has us pass in the thread's name during creation in kernel_thread. >> >> Signed-off-by: Mike Christie >> --- >> kernel/kthread.c | 35 ++++++++++++++--------------------- >> 1 file changed, 14 insertions(+), 21 deletions(-) >> >> diff --git a/kernel/kthread.c b/kernel/kthread.c >> index 63574cee925e..831a55b406d8 100644 >> --- a/kernel/kthread.c >> +++ b/kernel/kthread.c >> @@ -38,6 +38,7 @@ struct task_struct *kthreadd_task; >> struct kthread_create_info >> { >> /* Information passed to kthread() from kthreadd. */ >> + char *full_name; >> int (*threadfn)(void *data); >> void *data; >> int node; >> @@ -343,10 +344,15 @@ static int kthread(void *_create) >> /* Release the structure when caller killed by a fatal signal. */ >> done = xchg(&create->done, NULL); >> if (!done) { >> + kfree(create->full_name); >> kfree(create); >> kthread_exit(-EINTR); >> } >> >> + if (strlen(create->full_name) >= TASK_COMM_LEN) >> + self->full_name = create->full_name; >> + else >> + kfree(create->full_name); > > This is monir but wwiw, this looks suspicious when reading it without > more context. It took me a while to see that kthread->full_name is > intended to store the untruncated name only if truncation actually needs > to happen. So either we should always initialize this or we should add a > comment. You can just send a tiny patch that I can fold into this one so > you don't have to resend the whole series... Ok. Thanks. I think always initializing it would make the code a lot easier to understand and be nicer. I don't think it would be too much extra memory used, and we don't have to worry about some random userspace app breaking because it wanted to configure the thread but the name got truncated.