From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: Re: [PATCH net] libceph: osdmap: Fix some NULL dereferences Date: Thu, 13 Jul 2017 23:23:22 +0300 Message-ID: <20170713202322.4joas52vuvjpx6w5@mwanda> References: <20170713074517.io64uezw3qf6oush@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Yan, Zheng" , Sage Weil , "David S. Miller" , Ceph Development , netdev , kernel-janitors@vger.kernel.org To: Ilya Dryomov Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:30403 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752745AbdGMUXk (ORCPT ); Thu, 13 Jul 2017 16:23:40 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Jul 13, 2017 at 06:13:22PM +0200, Ilya Dryomov wrote: > > Hi Dan, > > I applied osdmap_apply_incremental() hunk and fixed a similar bug in > osdmap_decode() (it's a not NULL deref, that's why smatch didn't catch > it). > No... :/ Smatch complained about it, but I somehow marked it as done yesterday without sending a patch. Thanks for catching that. The Smatch check is just looking for places where we do ERR_PTR(0) or ERR_PTR(valid_ptr). That can be intentional, so there is some hand reviewing involved. regards, dan carpenter