Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbdFUXb4 convert rfc822-to-8bit (ORCPT ); Wed, 21 Jun 2017 19:31:56 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:64797 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751798AbdFUXby (ORCPT ); Wed, 21 Jun 2017 19:31:54 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Tejun Heo , "David Airlie" From: Chris Wilson In-Reply-To: <20170613135849.GB28327@htj.duckdns.org> Cc: "linuxppc-dev" , "linux-kernel" , linux-next@vger.kernel.org, "sachinp" , "Stephen Rothwell" , "Abdul Haleem" References: <1497278454.15415.50.camel@abdul.in.ibm.com> <20170613135849.GB28327@htj.duckdns.org> Message-ID: <149808789548.17054.471609626305557642@mail.alporthouse.com> User-Agent: alot/0.3.6 Subject: Re: [next-20170609] WARNING: CPU: 3 PID: 71167 at lib/idr.c:157 idr_replace Date: Thu, 22 Jun 2017 00:31:35 +0100 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 423 Lines: 11 Quoting Tejun Heo (2017-06-13 14:58:49) > Cc'ing David Airlie. > > This is from drm driver calling in idr_replace() w/ a negative id. > Probably a silly bug in error handling path? No, this is the validation of an invalid userspace handle. The drm ABI for handles is supposed to be a full u32 range with 0 reserved for an invalid handle (constrained by the idr_alloc ofc). The WARN was introduced by 0a835c4f090a. -Chris