From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Wu Subject: Re: List corruption in hidraw_release in 3.11-rc4 Date: Thu, 08 Aug 2013 00:28:45 +0200 Message-ID: <1416898.RFahovXudQ@al> References: <6712128.bn50J4si9x@al> <6207700.eHyYqS01s0@al> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from mail-we0-f175.google.com ([74.125.82.175]:44412 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757447Ab3HGW2u (ORCPT ); Wed, 7 Aug 2013 18:28:50 -0400 In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Jiri Kosina Cc: linux-input@vger.kernel.org, Manoj Chourasia , linux-kernel@vger.kernel.org, alnovak@suse.cz On Wednesday 07 August 2013 15:34:08 Jiri Kosina wrote: > On Wed, 7 Aug 2013, Peter Wu wrote: > > [..] > > I have applied Manoj's patch[1] on top of 3.11-rc4 which seem to fix the > > issue. One observation is that the new device is named /dev/hidraw1 > > instead of /dev/hidraw0. Example: > > > > f(){ hidraw-test /dev/hidraw$1 usb1;} > > # needed for 3.11-rc4 > > f 1; f 1 # crash > > # needed for 3.11-rc4 + patch > > f 1; f 2 # ok > > > > Regards, > > Peter > > > > [1]: http://lkml.org/lkml/2013/7/22/248 > > That one I am still reviewing ... can I add your Tested-by: to it when > I'll be applying it and pushing to Linus? Sure, once you accept it you can add: Tested-by: Peter Wu While you are at it, are the other functions also safe? (i.e. hidraw_poll, that one is not protected by any locks?) Regards, Peter