Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2001461imm; Thu, 14 Jun 2018 07:17:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLmcO9+uzkMFQNa5wAzHEVs4YG3XGbid6t2ThYi70jp7aRDIpciJzpLqCaD/vry69uOqc+6 X-Received: by 2002:a62:c296:: with SMTP id w22-v6mr9692821pfk.92.1528985825661; Thu, 14 Jun 2018 07:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528985825; cv=none; d=google.com; s=arc-20160816; b=wsL7QJSTThdMFdOkD1oeb9nJZPoUO5X5vdoRrxctdfKRnOLMIVRvDi6FN2oJ1CWAL5 2pj0F9nMNafVnNFQTAo4nxFE9y2q8S9Olliijb5rB7kSTt4xT3ivUUy9khQU6sRS5bp3 XEsdDG8qDIJ3juREp7WdWZm5c1B3lkRYc+P8caw/ZQdz3OB7VtKcEg3afqSV9YV/UvMQ jYwS8xni2IM/1TSnfBj53imCJ2h4q1VcMqbfnjlGAFbMbaoqESmK7ZV04hYBFIfiGw54 MbxaCqNO2HcsSWHKaxQ4RlocBbEybzUi7RK3jpUrLgxlc5e6umPkEmO/kqpAH7ZJGAB8 LAdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=lye1J4jozos0QQZoaJ7weTA5eEnuRiGN4GsIoagCjJY=; b=ipNsX4I9q2VCjMqdru+S0n7Hwxb2NWfXz3in7r3RWQSNuDzoHbd1YcwyPwbNEiWazn GbYzfzRqSdXCnVA/WIfVM2RD8X1aT1ALWFJ3UE1sqtP4k9lLxEH10zYYTrPoeXo8hzhZ ZiWAKkKcYVV0uArUv1p1Wa23/tmNHR8szoehuzPw+hrm4ppwtQoKFZS9uASROt6eezWq MrLvI8EWJQVKNAQA2l4kx/9dE3VQ4yLBBoLIc6y0Y0dr9NpEoPsCodj3HS/hVbWA2e0j bRf3QOy/3W1vyPAIhzsi1eFzEgj1+3tXVkqLgDzIdLpUr2ybIyDRuitSFt6CYlMWyT7I Tz5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=AiBXSVV6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si5535521ple.417.2018.06.14.07.16.51; Thu, 14 Jun 2018 07:17:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=AiBXSVV6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S966393AbeFNOOv (ORCPT + 99 others); Thu, 14 Jun 2018 10:14:51 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:45948 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966319AbeFNOOs (ORCPT ); Thu, 14 Jun 2018 10:14:48 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5EEEJ8r157960; Thu, 14 Jun 2018 14:14:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=lye1J4jozos0QQZoaJ7weTA5eEnuRiGN4GsIoagCjJY=; b=AiBXSVV69gySpH87i7zl8/NZ1ltxL1G/Yn7MTmM9SRZzXR8ncnJdRaVMaK70enxl2IEg zP5Id5EPUYX1zG6+EyY25Ph5Aiaj4ObmX5EKKX580Mmg6A7p3oqk7xnX42f8cmWjwDFa hgKbX6SPlf3tTWHXlVKgLf6fIZ0+FOAkW6tWGzeaUiAlCV7cc/XXBWMYhTGcok5KISw/ t/+CfZL1YVE9GrN2uAp57kgCgOZxg/EedhZkGev283yZDaTFvNaUwSxkH4xLFWYu+rP/ exkMPql+XHvhg8W2G4sG04YY5zLFMPUIP1bOlDvucWkiPgQI/6MDAkUw8ApjdZe3Puy6 Lw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2jk0xrn9hk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 14:14:45 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5EEEihq005693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 14:14:44 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5EEEiMF002877; Thu, 14 Jun 2018 14:14:44 GMT Received: from mwanda (/41.202.241.23) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Jun 2018 07:14:43 -0700 Date: Thu, 14 Jun 2018 17:14:32 +0300 From: Dan Carpenter To: Zhouyang Jia Cc: devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: gdm724x: add error handling for nlmsg_put Message-ID: <20180614141432.he6h3aphtxfsw2ef@mwanda> References: <1528693766-31570-1-git-send-email-jiazhouyang09@gmail.com> <20180612115525.yg2mnhlcz6ok3dyo@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8923 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=726 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806140158 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 14, 2018 at 11:27:26AM +0800, Zhouyang Jia wrote: > Hi, > > I reported this bug since more than 95% callsites of nlmsg_put are > well handled in kernel, and many of them also allocated skb before. > That's probably true, but the NULL check is not required *here*. Just mark it as a false positive in your tool and move on... It's not like we are close to running out of real bugs to deal with. regards, dan carpenter