From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp2130.oracle.com ([141.146.126.79]:54556 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbfEINvZ (ORCPT ); Thu, 9 May 2019 09:51:25 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x49DhaQP154642 for ; Thu, 9 May 2019 13:51:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : subject : message-id : mime-version : content-type; s=corp-2018-07-02; bh=kstbfgJjedJViCKiHRENCFdIgvXkF7vfnvfwx5cNrqU=; b=A8NUCKdwcKuIu46UYWSzPjH5ccW9+utbiGuRAgh2DcJU5UyBYUJ8m+fHQkz5AH6ycWMZ zfuiyY4tUV4FxsarBNTU0fNDp7TrjQbQZ4QjPnK8cUhJPRyVSLrpEDRMOa/+c8K/xl1E dfXLoTN+P21k7S/PJtqg/daNsG+VMleu/i52tSwevyMct1UtMy8otkFAsP2qcTMA6Hn3 fR+yVvnLKcIQIiYJVmR0eRIK0ZIXVm38e9Oy3UbtJ820sCuarghATz+EfurAmp/jJoFO jROqFZGgytY3xzmloiNIWB1+F/XOwmOhdOdIHIOuvBuEOuvglPAiKLh2RSVElQHnx2ei cw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 2s94b6b0dj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 09 May 2019 13:51:24 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x49Dp5kr098352 for ; Thu, 9 May 2019 13:51:24 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2s94baswbp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 09 May 2019 13:51:23 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x49DpNFh004368 for ; Thu, 9 May 2019 13:51:23 GMT Date: Thu, 9 May 2019 16:51:18 +0300 From: Dan Carpenter Subject: passing zero to PTR_ERR() warnings Message-ID: <20190509135118.GD21059@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: smatch-owner@vger.kernel.org List-ID: To: smatch@vger.kernel.org Everyone seems to be hitting this warning, but I can't reproduce it at all. It came from a bug when I made pointers unsigned... I though I fixed it in commit 8a9817501654 ("zero_to_err_ptr: fix fall out from unsigned pointer changes and improve") but now I can't reproduce it even when I revert that patch. I'm using a clean smatch clone and a clean kernel clone, but I just can't trigger false positives. I get valid warnings still but not the false positives. Can anyone help me figure this out? regards, dan carpenter