Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1362044pxb; Fri, 21 Jan 2022 16:32:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7LsUXZ56o9O4xyHUsKQnVQ/vKcrhfcy7Jz+zCpOmgPbFkkbdEHjCbq9E8Jgm67Hb/qoSJ X-Received: by 2002:a17:90b:714:: with SMTP id s20mr3046423pjz.31.1642811549599; Fri, 21 Jan 2022 16:32:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642811549; cv=pass; d=google.com; s=arc-20160816; b=eAn0gWXa7/5KwxQekJ5JGPj52yLBeu6AsR7HqaykZ8Zz2XOqdcLOtN/bPKzjFV8Qkq +Ol6N+Zd9Vb8oLatpfXrexltKAwHPaA2oYpQFChY8/PA4O3hUMpPQ5KRWPaklN/yy00K htrw2g9TsxD/Uqn5GebMIzSVz63VDJcG/lR0F1NHynnewLBDo/U+036LFrNqd6v1wnNG U8EJPy4rD/UfozvmOo3aZEd1Ygw+WscjthLZyCBYQILlGHnE9YGyqtAQ5FK3JN1Ng58A 4lknw3HoCcVjJHZ3HoM4wVg+XvsRvyo5JO2xbGzaQRMd0TRtbwLOpLZHQbFfTaGPxb2y pyTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=mYcOwwGuFMXAZUtkmOnACyQwwdPgM9hs1R/oKr7Eu4M=; b=Eo7BRPgg50XDmj3WS8MTRhrVkyaPsgG4YjeOVFINaFDlFTCJY0VbiqjNvbLLRimQxr jk4MiFW6dnxkl9u/0/K7CksVZ7z0NbeJQrvD+B6tf5XWUeQSCVqH0M2vQIjkmXg8Ilv0 GLQAmqc0zUoqPIoNv0bhieBO8oWN0OZR8xPrmOXGQj1rwMG/qqf18mWD6VIZMKZiP2eF 1iiZJAjHiI0iHWuIF36W1hgzjLPSkvD9XnKpeOPjbxrZFdESofoPHOd8SGefDonNB3Yi zrgGO3FzrKgqvzk4Tl+8Du8qedHou5HBp/n7TX3zafh/XFFxz7CMqhtpXIdFXroAc9OT Dk/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=ftuBNnez; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=DyZepoJI; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lp8si8334804pjb.152.2022.01.21.16.32.17; Fri, 21 Jan 2022 16:32:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=ftuBNnez; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=DyZepoJI; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233238AbiAUEmV (ORCPT + 99 others); Thu, 20 Jan 2022 23:42:21 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:18450 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232128AbiAUEmU (ORCPT ); Thu, 20 Jan 2022 23:42:20 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20L040YE001093; Fri, 21 Jan 2022 04:41:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2021-07-09; bh=mYcOwwGuFMXAZUtkmOnACyQwwdPgM9hs1R/oKr7Eu4M=; b=ftuBNnezAtO/h48vZ+PLXXYGkwjTkkRoUT27TY7YI/FrF5Poyiqn4VEEea/kXQH+CrFg 7J+v+i5WwJS6BZG+Umv+DOoWnY+oOiRi0k832IW6VqADHRtEt9Tso3lNZ+wYKqeMi7NY Qu7oeL7W2IEMRwdAR5dZQ+szRW3l/O9/FVCOHJOouz6XySxJTlBrK7M/z222U/TcYn4j CfwhRrgbktzo+SuxJSEomY9DvNzQKnfxcYwvJSTZaQJM0NFSkNIhMSaPW1dUkzYRv2CH PlI+MjDAls+xL/nXW5y8yoT7TbCdY7MHcXPemQ+ngW6U1k5U7I1fYKV4rRz46DQzFjIV Jw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3dqhy9rbca-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jan 2022 04:41:54 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20L4e9aJ047879; Fri, 21 Jan 2022 04:41:53 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2171.outbound.protection.outlook.com [104.47.59.171]) by userp3020.oracle.com with ESMTP id 3dqj0m9mce-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jan 2022 04:41:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=laEzOut8Bt26WSDklbBkOUwG2slC93fUgDB3RSyjDTNGQiQ3O0BV0F979wbtaBKTNbqrsRAArHhvwTeefBwND7aOyWu0ld3EvWH1tIGVNXvIRHHv2IvhqI8rzn/0cRmZG/uY/FEgdkK4JUaYLMMCIalTsnopO0vaf5I1uVn0+AOqv46yNKCDM2ZqK+vltTrBHkeFnboU5shFx9UpiGZppqi3vTqebx2Hjj57iAgxV340Q5t7ykKJlYyrkcf0nYccIp7giBggXuwrbn0+MbhbCZY3KOrtFhzWntCEVPuXemyZBt9Nx/CUBFPYodSVfKfzmM0Y+/B9TWjx0sOhtSOP+w== 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=mYcOwwGuFMXAZUtkmOnACyQwwdPgM9hs1R/oKr7Eu4M=; b=kteILZxOEQU9yh3r+qkqRxchEzHcJ6U3Zb4pv7POFzrdLGc/c4l0jnjfaPULlHnkQFXDdNq3wOk7HEYddrZr0JIvROEoFqukRBInVZrw7fkTR63FP7+casAGr3//CujownB1P3KLCZwEJpvBcFbQwlhOglZVGChB2vWEIUnSs1X5tD6caNGL/cRKPWPRY4pyMr2g9TcF0hEbMiySUUFSvp++fOajIQnHLnWHBSRXMsibn6nug6l3zwZmm/Nr7n7s7cYeMo1f9XXUPZ00oJFYAtk2anR+Qh/NaqIwKOU5QmfuCSjRdpk4eCFQubON/W/zZafidh48kto5bRALBp+NjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=mYcOwwGuFMXAZUtkmOnACyQwwdPgM9hs1R/oKr7Eu4M=; b=DyZepoJIefFjyidPRmL40OsWW0vdgpG1H+d8R2ilLDs9bVNdDiQEEJwiDNckh+uKVi9SBzwAqu2xVDxFUu1PACG4C5PJ0cYJwlg5A1OumT9ZJfX385gkSFSYqjuppCzE4QVc8WrM58/IbxCHM6I12jQC4Z+psgnq04p+Lz4NUvk= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by CH2PR10MB4183.namprd10.prod.outlook.com (2603:10b6:610:7e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.10; Fri, 21 Jan 2022 04:41:51 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::c13b:5812:a403:6d96]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::c13b:5812:a403:6d96%6]) with mapi id 15.20.4909.008; Fri, 21 Jan 2022 04:41:51 +0000 Date: Fri, 21 Jan 2022 07:41:30 +0300 From: Dan Carpenter To: Jiasheng Jiang Cc: gregkh@linuxfoundation.org, keescook@chromium.org, arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] lkdtm/bugs: Check for the NULL pointer after calling kmalloc Message-ID: <20220121044130.GD1978@kadam> References: <20220120092936.1874264-1-jiasheng@iscas.ac.cn> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220120092936.1874264-1-jiasheng@iscas.ac.cn> User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: JNAP275CA0067.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:4f::13) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71f173a7-dfb6-428d-ecf2-08d9dc985734 X-MS-TrafficTypeDiagnostic: CH2PR10MB4183:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1728; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H5Z7Bt3eMrjxHr7Or7jYeYRxAOkigSQgl+73EgFIwkcJNjE4xmccIWgauprb92Nw7uvJHne6F6wsTMHxC3KKPAkfaY9UjsPOGiFvDiO5B91jhEoz6c0/UFO9LZqJxUdoAEDGaGA3kTyhmWxd4/chzo3I4NQmrYTmxZOntlCPzE34NgXSdk8iOWcfD+m1SOqy6W6T7t18ZiEKjI5W6xtmWXcaL7b7xBSQHGfCDDnxdzprTfqIGl2EjUAYZGJ3RIBvVXslzreoMYIu3+aT4zZRBJiPTfUu9hk3iUm4VH2MdGSxOJZ39zzn/hy9q5aUNLID4nKzvBYFEBvvX7jWTpCSdK/vLrNYsr30vV7z/BSOtbipJ92Hs65O22dsIsAqrabMvUngziHN/Gqi7fmeTGCIdQ2VQCX2clBTaQV/Fx3Vv5cKjm8otMJmCKO2vXe9g+IHfo+cUegd7qEyke/y6GLlr63m1QfwTEAGMIalSPT8EtBSOF8zYeiXiJr03Nq5BqEAgi8NQwTf6HthduQsYK00n6m1TfLiOzoJlkLmmCz+ItPC2nUbUgakasEWCgvVLB7h4orENiYiXC5SZN2U+E76EEGUvgPVM312v++3fq4zykllSk71Sf1o+3IlH5iFfBUdsUcfEtrYp3oKn7O0vi1qfzEFErR9HdCOGoUmIS5/6D0Mb7e6mM1LXGfDPvXDzmkeJjwRldyO39mf2jZHRDXLpQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(366004)(2906002)(508600001)(33656002)(8936002)(44832011)(558084003)(19618925003)(6916009)(8676002)(26005)(186003)(38350700002)(6486002)(9686003)(6512007)(1076003)(33716001)(316002)(6666004)(52116002)(38100700002)(66946007)(66476007)(5660300002)(4326008)(66556008)(4270600006)(86362001)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?516jBC2QWtCzykcXW17i6UrsUO08qEsqxcTY4Wg44++jXk6wj2KP5plXuyPH?= =?us-ascii?Q?VPz6NJYEOtGm8CP1sbAXFri9mAxp8U9NH5+UHHcAi45uNGL53ePR78trdcFM?= =?us-ascii?Q?n/yl7sOYfqp4m2X+wla5aiqwrmtExkSqxklLAPlD/WzorYgC9gGNRfZ2ZhjO?= =?us-ascii?Q?LB9KP139ek+EPNXJPzuSfFdKwcHvnzVYlrH3ZiYJIkk1ftQJTO6vctQzV8mm?= =?us-ascii?Q?3Xfw8gP2yx3Dn5uhFJ6pq/opvPMiD8AW6dXNGQgEcuObMerrPr4GNdpO8LKy?= =?us-ascii?Q?DM/aKzmCVJbvNmRxJR0iy8LmHq9BSnlB7B6fTrHLIvqlIYKlpoqeysZLoAXr?= =?us-ascii?Q?HHQRBtyGIG5v18ri0wJKVz+CsCbPfruAJl8SBReAkIKb1XmVOhdfjCUPZxUO?= =?us-ascii?Q?y2G75Mtg8x9EZRI1kMmin/DjXWJKXsvhX3lAmg4Pq99lbl/UIXizV09GrkwL?= =?us-ascii?Q?md8LGTiaao8alYQOhtwUN9nLOmMjvLvemGtEs1E0Y2O03YnPyAMu2AEufRT1?= =?us-ascii?Q?UgqAI80YLZ1ZvjM2tOL6yZDn2o1xoK+AOkgOTkODnK8kX4Hh9l9Kizdd0O+G?= =?us-ascii?Q?X4dVElOQE2MIfoK8OyXpwWGaPgbXABzvHBgNgeBI7qFguIP8OihiSbA+kq2/?= =?us-ascii?Q?BcY2VFyIwHvTi0jQuWHcRdnsySksAZVz6oS1jjFTIMGU56Fw8klXJCbsr21u?= =?us-ascii?Q?D79f1GpMndGY2+6V7MDT9/AwhwfZsdYhu/XwWJachVM2tAY82GVdYtUMgfmp?= =?us-ascii?Q?wT4HgYz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lLAVvqtEOX7ZeRTq+vWCirt+4?= =?us-ascii?Q?3S+w5Q=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71f173a7-dfb6-428d-ecf2-08d9dc985734 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2022 04:41:50.9299 (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: z4iQpaIs9HbcYD914gJuN7rCzpZiMgfoOlGbK0kZbrPXvCBo6j6IbQDgsgF7TrhlGm4TbxRpgd6srjwIE0iHF+KOb5l9Klbi+m0DgxqrD+M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4183 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10233 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201210032 X-Proofpoint-GUID: dLEFpRd-WHygImZOdIepkM9co7bjg67C X-Proofpoint-ORIG-GUID: dLEFpRd-WHygImZOdIepkM9co7bjg67C Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Dan Carpenter regards, dan carpenter