[PATCH v2] usb: usbfs: Suppress problematic bind and unbind uevents.

2019-10-11 Thread Ingo Rohloff
th this loop the malicious user space program floods the kernel and all programs listening to uevents with tons of bind and unbind events. This patch suppresses uevents for ioctls USBDEVFS_CLAIMINTERFACE and USBDEVFS_RELEASEINTERFACE. Signed-off-by: Ingo Rohloff --- Notes: v2: Patch only

[PATCH] usb: usbfs: Suppress problematic bind and unbind uevents.

2019-10-10 Thread Ingo Rohloff
th this loop the malicious user space program floods the kernel and all programs listening to uevents with tons of bind and unbind events. This patch suppresses uevents for ioctls USBDEVFS_CLAIMINTERFACE and USBDEVFS_RELEASEINTERFACE. Signed-off-by: Ingo Rohloff --- drivers/usb/core/devio.c |

Re: [PATCH] USB: usbfs: Suppress emission of uevents for interfaces handled via usbfs

2019-10-10 Thread Ingo Rohloff
Hello Greg > > + else { > > + /* suppress uevents for devices handled by usbfs */ > > + dev_set_uevent_suppress(&intf->dev, 1); > > err = usb_driver_claim_interface(&usbfs_driver, intf, ps); > > + if (err != 0) > > + dev_set_uevent_su

[PATCH] USB: usbfs: Suppress emission of uevents for interfaces handled via usbfs

2019-10-09 Thread Ingo Rohloff
>From 17d1e75543e26cfe702e7f5b0d4e07e0e45e5250 Mon Sep 17 00:00:00 2001 From: Ingo Rohloff Date: Tue, 8 Oct 2019 20:27:57 +0200 Subject: [PATCH] USB: usbfs: Suppress emission of uevents for interfaces handled via usbfs. commit 1455cf8dbfd0 ("driver core: emit uevents when device is bo

[PATCH] USB: usbfs: Suppress emission of uevents for interfaces handled via usbfs.

2019-10-09 Thread Ingo Rohloff
is loop the malicious user space program floods the kernel and all programs listening to uevents with tons of bind/unbind events. This patch suppresses uevents for interfaces claimed via usbfs. Signed-off-by: Ingo Rohloff --- drivers/usb/core/devio.c | 7 ++- drivers/usb/core/driver.c

[PATCH] usbfs: Suppress uevents for claiminterface/releaseinterface

2019-10-08 Thread Ingo Rohloff
ess emission of uevents for USB interfaces which are claimed/released via usbfs. I am not sure if this is the right way to do it, but at least it seems to do what I intended... with best regards Ingo Rohloff From 57970b0a5a36809ddb8f15687c18ca2147dc73bd Mon Sep 17 00:00:00 2001 From: Ingo

Re: Problems with ASMedia ASM1042 SuperSpeed USB Host

2012-07-18 Thread Ingo Rohloff
Hello Sarah, Hello Alan, just to describe what I experienced on the ASM1402 On 17.07.2012 22:22, Alan Stern wrote: > The events in the email message mentioned above did not involve a race. > It's clear that no data got transferred at all, and yet usbmon reported > actual_length equal to transfe

Problems with ASMedia ASM1042 SuperSpeed USB Host

2012-07-16 Thread Ingo Rohloff
Hello, I have some problems with an ASM1042 SuperSpeed Host Controller. (IvyBridge + PantherPoint Motherboard). I also read some comments that this particular Host Controller might have some problems, but I could not find any details. I am running Ubuntu 12.04, 64 bit, with a 3.4 kernel provided