Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Alan Stern Newsgroups: linux.kernel Subject: Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns Date: Mon, 12 Dec 2016 22:10:01 +0100 Message-ID: References: X-Original-To: Andrey Konovalov X-X-Sender: stern@iolanthe.rowland.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 20 Organization: linux.* mail to news gateway X-Original-Cc: Greg Kroah-Hartman , USB list , LKML , Dmitry Vyukov , Kostya Serebryany , syzkaller X-Original-Date: Mon, 12 Dec 2016 16:05:43 -0500 (EST) X-Original-Message-ID: X-Original-References: X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1540648 On Mon, 12 Dec 2016, Andrey Konovalov wrote: > Hi! > > While running the syzkaller fuzzer I've got the following error report. > > On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dev 2). > > WARNING: CPU: 2 PID: 865 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x8a/0xa0 > gadgetfs: disconnected > sysfs: cannot create duplicate filename > '/devices/platform/dummy_hcd.0/usb2/2-1/2-1:64.0/ep_05' > Kernel panic - not syncing: panic_on_warn set ... I suppose we could check for USB devices that claim to have two endpoints with the same address. But is it really worthwhile? A kernel warning isn't so bad when you're dealing with buggy device firmware. Alan Stern