Re: [PATCH v2 3/3] USB: cdc-acm: fix TIOCGSERIAL implementation

2021-04-08 Thread Oliver Neukum
allow users to run setserial with cdc-acm") > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH v2 2/3] USB: cdc-acm: fix unprivileged TIOCCSERIAL

2021-04-08 Thread Oliver Neukum
d that the > TIOCSSERIAL ioctl was not even implemented when a non-privileged user > set the current values. > > Fixes: ba2d8ce9db0a ("cdc-acm: implement TIOCSSERIAL to avoid blocking > close(2)") > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH v2 1/3] Revert "USB: cdc-acm: fix rounding error in TIOCSSERIAL"

2021-04-08 Thread Oliver Neukum
HZ value not divisible by two, the lack of rounding when setting > the default values in tty_port_init() could result in an -EPERM being > returned, but this is hardly something we need to worry about. > > Cc: Anthony Mallet > Cc: sta...@vger.kernel.org > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH 3/3] USB: cdc-acm: fix TIOCGSERIAL implementation

2021-04-08 Thread Oliver Neukum
Am Donnerstag, den 08.04.2021, 13:54 +0200 schrieb Johan Hovold: > On Thu, Apr 08, 2021 at 01:34:12PM +0200, Oliver Neukum wrote: > > Am Donnerstag, den 08.04.2021, 11:48 +0200 schrieb Johan Hovold: > > > On Thu, Apr 08, 2021 at 10:36:46AM +0200, Oliver Neukum wrote: > &

Re: [PATCH 2/3] USB: cdc-acm: fix unprivileged TIOCCSERIAL

2021-04-08 Thread Oliver Neukum
Am Donnerstag, den 08.04.2021, 11:42 +0200 schrieb Johan Hovold: > On Thu, Apr 08, 2021 at 09:48:38AM +0200, Oliver Neukum wrote: > > Am Mittwoch, den 07.04.2021, 12:28 +0200 schrieb Johan Hovold: > > > TIOCSSERIAL is a horrid, underspecified, legacy interface which for most &g

Re: [PATCH 3/3] USB: cdc-acm: fix TIOCGSERIAL implementation

2021-04-08 Thread Oliver Neukum
Am Donnerstag, den 08.04.2021, 11:48 +0200 schrieb Johan Hovold: > On Thu, Apr 08, 2021 at 10:36:46AM +0200, Oliver Neukum wrote: > > Am Mittwoch, den 07.04.2021, 12:28 +0200 schrieb Johan Hovold: > > Well, the devices report it. It is part of the standard. > > No, the sta

Re: [PATCH 3/4] USB: serial: add support for multi-interface functions

2021-04-08 Thread Oliver Neukum
Am Donnerstag, den 01.04.2021, 09:46 +0200 schrieb Johan Hovold: > On Wed, Mar 31, 2021 at 01:21:15PM +0200, Oliver Neukum wrote: > > Am Mittwoch, den 31.03.2021, 09:08 +0200 schrieb Oliver Neukum: > > on the third hand, the more I look at this, would you mind putting >

Re: [PATCH 1/2] USB:ehci:Add a whitelist for EHCI controllers

2021-04-08 Thread Oliver Neukum
Am Donnerstag, den 08.04.2021, 17:11 +0800 schrieb Longfang Liu: > Some types of EHCI controllers do not have SBRN registers. > By comparing the white list, the operation of reading the SBRN > registers is skipped. > > Subsequent EHCI controller types without SBRN registers can be > directly

Re: [PATCH 2/3] USB: cdc-acm: fix unprivileged TIOCCSERIAL

2021-04-08 Thread Oliver Neukum
Am Mittwoch, den 07.04.2021, 12:28 +0200 schrieb Johan Hovold: > TIOCSSERIAL is a horrid, underspecified, legacy interface which for most > serial devices is only useful for setting the close_delay and > closing_wait parameters. > > A non-privileged user has only ever been able to set the since

Re: [PATCH 3/3] USB: cdc-acm: fix TIOCGSERIAL implementation

2021-04-08 Thread Oliver Neukum
Am Mittwoch, den 07.04.2021, 12:28 +0200 schrieb Johan Hovold: > TIOCSSERIAL is a horrid, underspecified, legacy interface which for most > serial devices is only useful for setting the close_delay and > closing_wait parameters. > > The xmit_fifo_size parameter could be used to set the hardware

Re: [PATCH net-next v4 0/4] usbnet: speed reporting for devices without MDIO

2021-04-07 Thread Oliver Neukum
Am Dienstag, den 06.04.2021, 18:01 + schrieb Grant Grundler: > > Ethernet does not support > > different rates in each direction. So if RX and TX are different, i > > would actually say something is broken. > > Agreed. The question is: Is there data or some heuristics we can use > to

Re: [PATCH 3/4] USB: serial: add support for multi-interface functions

2021-03-31 Thread Oliver Neukum
Am Mittwoch, den 31.03.2021, 09:08 +0200 schrieb Oliver Neukum: > Am Dienstag, den 30.03.2021, 17:22 +0200 schrieb Johan Hovold: > > On Tue, Mar 30, 2021 at 04:44:32PM +0200, Oliver Neukum wrote: > > > Am Dienstag, den 30.03.2021, 16:38 +0200 schrieb Johan Hovold: > >

Re: [PATCH 3/4] USB: serial: add support for multi-interface functions

2021-03-31 Thread Oliver Neukum
Am Dienstag, den 30.03.2021, 17:22 +0200 schrieb Johan Hovold: > On Tue, Mar 30, 2021 at 04:44:32PM +0200, Oliver Neukum wrote: > > Am Dienstag, den 30.03.2021, 16:38 +0200 schrieb Johan Hovold: > > > @@ -1115,6 +1161,8 @@ static void usb_serial_disconnect(struct > > &g

Re: [PATCH 3/4] USB: serial: add support for multi-interface functions

2021-03-30 Thread Oliver Neukum
Am Dienstag, den 30.03.2021, 16:38 +0200 schrieb Johan Hovold: > @@ -1115,6 +1161,8 @@ static void usb_serial_disconnect(struct usb_interface > *interface) > if (serial->type->disconnect) > serial->type->disconnect(serial); > > + release_sibling(serial, interface);

Re: [PATCH 7/7] USB: cdc-acm: always claim data interface

2021-03-22 Thread Oliver Neukum
Am Donnerstag, den 18.03.2021, 16:52 +0100 schrieb Johan Hovold: > Make sure to always claim the data interface and bail out if it's > already bound to another driver or isn't authorised. Hi, Thanks for the fixes. All previous ones are good work. this one is problematic I am afraid.

Re: [PATCH 6/7] USB: cdc-acm: use negation for NULL checks

2021-03-22 Thread Oliver Neukum
Am Donnerstag, den 18.03.2021, 16:52 +0100 schrieb Johan Hovold: > Use negation consistently throughout the driver for NULL checks. > > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH 5/7] USB: cdc-acm: clean up probe error labels

2021-03-22 Thread Oliver Neukum
d-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH 4/7] USB: cdc-acm: drop redundant driver-data reset

2021-03-22 Thread Oliver Neukum
Am Donnerstag, den 18.03.2021, 16:51 +0100 schrieb Johan Hovold: > There's no need to clear the interface driver data on failed probe (and > driver core will clear it anyway). > > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH 3/7] USB: cdc-acm: drop redundant driver-data assignment

2021-03-22 Thread Oliver Neukum
Am Donnerstag, den 18.03.2021, 16:51 +0100 schrieb Johan Hovold: > The interface driver data has already been set by > usb_driver_claim_interface() so drop the redundant subsequent > assignment. > > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: [PATCH 2/7] USB: cdc-acm: fix use-after-free after probe failure

2021-03-22 Thread Oliver Neukum
t; releasing already freed resources. > > Fixes: c93d81955005 ("usb: cdc-acm: fix error handling in acm_probe()") > Cc: sta...@vger.kernel.org # 3.9 > Cc: Alexey Khoroshilov > Signed-off-by: Johan Hovold ] Acked-by: Oliver Neukum

Re: [PATCH 1/7] USB: cdc-acm: fix double free on probe failure

2021-03-22 Thread Oliver Neukum
Drop the first erroneous free that was left when fixing a tty-port > resource leak. > > Fixes: cae2bc768d17 ("usb: cdc-acm: Decrement tty port's refcount if probe() > fail") > Cc: sta...@vger.kernel.org # 4.19 > Cc: Jaejoong Kim > Signed-off-by: Johan Hovold Acked-by: Oliver Neukum

Re: usb: cdc-acm: BUG kmalloc-128 Poison overwritten

2021-03-08 Thread Oliver Neukum
Am Montag, den 08.03.2021, 09:50 +0100 schrieb Bruno Thomsen: > > Tested-by: Bruno Thomsen > > I have not observed any oops with patches applied. Patches have seen > more than 10 weeks of runtime testing across multiple devices. Hi, that is good news. I shall send them upstream.

Re: usb: cdc-acm: BUG kmalloc-128 Poison overwritten

2021-02-25 Thread Oliver Neukum
s Oliver From 307097e80657ca44ac99da8efc8397070b1aff3f Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Thu, 18 Feb 2021 13:42:40 +0100 Subject: [PATCH 1/2] cdc-wdm: untangle a circular dependency between callback and softint We have a cycle of callbacks scheduling works which submit URBs w

Re: [PATCH] usbnet: ipheth: fix connectivity with iOS 14

2021-02-22 Thread Oliver Neukum
Am Sonntag, den 21.02.2021, 10:42 + schrieb Sam Bingner: > There seems to be a problem with this patch: > > Whenever the iPhone sends a packet to the tethered device that is 1500 bytes > long, it gets the error "ipheth 1-1:4.2: ipheth_rcvbulk_callback: urb status: > -79" on the connected

Re: usb: cdc-acm: BUG kmalloc-128 Poison overwritten

2021-02-22 Thread Oliver Neukum
Am Donnerstag, den 18.02.2021, 16:52 +0100 schrieb Bruno Thomsen: > Den fre. 12. feb. 2021 kl. 16.33 skrev Bruno Thomsen > : > > Hi, > > > > I have been experience random kernel oops in the cdc-acm driver on > > imx7 (arm arch). Normally it happens during the first 1-3min runtime > > after

Re: [PATCH 2/2] net: usbnet: use new tasklet API

2021-02-01 Thread Oliver Neukum
Am Samstag, den 23.01.2021, 18:32 +0100 schrieb Emil Renner Berthing: > From: Emil Renner Berthing > > This converts the driver to use the new tasklet API introduced in > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > Signed-off-by: Emil Renne

Re: [PATCH 1/2] net: usbnet: initialize tasklet using tasklet_init

2021-02-01 Thread Oliver Neukum
Am Samstag, den 23.01.2021, 18:32 +0100 schrieb Emil Renner Berthing: > From: Emil Renner Berthing > > Initialize tasklet using tasklet_init() rather than open-coding it. > > Signed-off-by: Emil Renner Berthing Acked-by: Oliver Neukum

Re: [PATCH] usbnet: fix the indentation of one code snippet

2021-02-01 Thread Oliver Neukum
Am Samstag, den 23.01.2021, 13:11 +0800 schrieb Dongliang Mu: > Every line of code should start with tab (8 characters) > > Signed-off-by: Dongliang Mu Acked-by: Oliver Neukum

Re: [PATCH v2] can: mcba_usb: Fix memory leak when cancelling urb

2021-01-11 Thread Oliver Neukum
Am Montag, den 11.01.2021, 10:49 + schrieb Bui Quang Minh: > In mcba_usb_read_bulk_callback(), when we don't resubmit or fails to > resubmit the urb, we need to deallocate the transfer buffer that is > allocated in mcba_usb_start(). > > Reported-by:

Re: 回复: KASAN: use-after-free Read in service_outstanding_interrupt

2021-01-05 Thread Oliver Neukum
Am Dienstag, den 05.01.2021, 04:50 + schrieb Zhang, Qiang: > > > 发件人: Oliver Neukum > 发送时间: 2021年1月5日 0:28 > 收件人: syzbot; andreyk...@google.com; gre...@linuxfoundation.org; > gustavo...@kernel.org; ingras...@epigenesys.com; le

Re: KASAN: use-after-free Read in service_outstanding_interrupt

2021-01-04 Thread Oliver Neukum
yzkaller.appspotmail.com #syz test: https://github.com/google/kasan.git 5e60366d >From f51e3c5a202f3abc805edd64b21a68d29dd9d60e Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Mon, 4 Jan 2021 17:26:33 +0100 Subject: [PATCH] cdc-wdm: poison URBs upon disconnect We have a chicken and egg

Re: [PATCH] usb/mos7720: process deferred urbs in a workqueue

2020-11-09 Thread Oliver Neukum
Am Donnerstag, den 05.11.2020, 22:17 -0800 schrieb Davidlohr Bueso: > @@ -1888,16 +1732,8 @@ static void mos7720_release(struct usb_serial *serial) > usb_set_serial_data(serial, NULL); > mos_parport->serial = NULL; > > - /* if tasklet currently

Re: [PATCH v3] net: usb: usbnet: update __usbnet_{read|write}_cmd() to use new API

2020-11-02 Thread Oliver Neukum
Am Sonntag, den 01.11.2020, 03:05 +0530 schrieb Anant Thazhemadam: > Currently, __usbnet_{read|write}_cmd() use usb_control_msg(). > However, this could lead to potential partial reads/writes being > considered valid, and since most of the callers of > usbnet_{read|write}_cmd() don't take partial

Re: [PATCH] usb: cdc-acm: fix cooldown mechanism

2020-10-20 Thread Oliver Neukum
le delayed work, fixing the > pointer arithmetic in acm_softint() and set the ACM_ERROR_DELAY when the > cooldown mechanism appear to be needed. > > Fixes: a4e7279cd1d1 ("cdc-acm: introduce a cool down") > Reported-by: Pascal Vizeli > Cc: Oliver Neukum > Signed-off-by: Jerome Brunet Acked-by: Oliver Neukum

[tip: perf/urgent] media: usbtv: Fix refcounting mixup

2020-10-19 Thread tip-bot2 for Oliver Neukum
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 1eaed405fcd22e52a438b619e6ea85539f1c150a Gitweb: https://git.kernel.org/tip/1eaed405fcd22e52a438b619e6ea85539f1c150a Author:Oliver Neukum AuthorDate:Thu, 24 Sep 2020 11:14:10 +02:00

Re: INFO: task hung in hub_port_init

2020-10-06 Thread Oliver Neukum
Am Dienstag, den 06.10.2020, 01:19 -0700 schrieb syzbot: Hi, > HEAD commit:d3d45f82 Merge tag 'pinctrl-v5.9-2' of git://git.kernel.or.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=14c3b3db90 > kernel config:

Re: [PATCH] Bluetooth: btusb: Avoid unnecessary reset upon system resume

2020-09-28 Thread Oliver Neukum
Am Donnerstag, den 24.09.2020, 20:33 -0700 schrieb Abhishek Pandit- Subedi: > Runtime suspend always requires remote wakeup to be set No, not entirely. Btusb requires remote wakeup between open() and close(). On a closed device it is not set to save more power. > and reset > resume isn't used

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-24 Thread Oliver Neukum
Am Mittwoch, den 23.09.2020, 20:02 +0530 schrieb Himadri Pandya: > I meant that it was stupid to change it without properly understanding > the significance of GFP_NOIO in this context. > > So now, do we re-write the wrapper functions with flag passed as a parameter? Hi, I hope I set you in CC

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-24 Thread Oliver Neukum
Am Mittwoch, den 23.09.2020, 17:48 +0300 schrieb Petko Manolov: > > This internally uses kmemdup() with GFP_KERNEL. > > You cannot make this change. The API does not support it. > > I am afraid we will have to change the API first, before more > > such changes are done. > > One possible fix is

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Oliver Neukum
Am Mittwoch, den 23.09.2020, 19:36 +0530 schrieb Himadri Pandya: > On Wed, Sep 23, 2020 at 3:52 PM Oliver Neukum wrote: > > > > Am Mittwoch, den 23.09.2020, 14:35 +0530 schrieb Himadri Pandya: > > GFP_NOIO is used here for a reason. You need to use this helper > >

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Oliver Neukum
th proper > error check. Hence use the wrappers instead of calling usb_control_msg() > directly. > > Signed-off-by: Himadri Pandya Nacked-by: Oliver Neukum > --- > drivers/net/usb/rtl8150.c | 32 ++-- > 1 file changed, 6 insertions(+), 26 deletions(-)

Re: [PATCH] usb: yurex: Rearrange code not to need GFP_ATOMIC

2020-09-21 Thread Oliver Neukum
Am Montag, den 21.09.2020, 14:52 +0200 schrieb Pavel Machek: > Hi! > > > > Task goes to TASK_INTERRUPTIBLE > > > > > if (retval >= 0) > > > timeout = schedule_timeout(YUREX_WRITE_TIMEOUT); > > > > Task turns into Sleeping Beauty until timeout > > Is there way to do the allocations

Re: [PATCH] usb: yurex: Rearrange code not to need GFP_ATOMIC

2020-09-21 Thread Oliver Neukum
Am Sonntag, den 20.09.2020, 10:44 +0200 schrieb Pavel Machek: > Move prepare to wait around, so that normal GFP_KERNEL allocation can > be used. > > Signed-off-by: Pavel Machek (CIP) > Acked-by: Alan Stern Ehm. Please recheck. > diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c

Re: [PATCH v2] usb: serial: Repair FTDI FT232R bricked eeprom

2020-09-09 Thread Oliver Neukum
Am Mittwoch, den 09.09.2020, 13:34 -0600 schrieb James Hilliard: > This patch detects and reverses the effects of the malicious FTDI > Windows driver version 2.12.00(FTDIgate). Hi, this raises questions. Should we do this unconditionally without asking? Does this belong into kernel space? >

Re: [PATCH] cdc-acm: rework notification_buffer resizing

2020-08-04 Thread Oliver Neukum
itch resizing to using krealloc and reassign dr and > reset nb_index. > > Fixes: ea2583529cd1 ("cdc-acm: reassemble fragmented notifications") > > Signed-off-by: Tom Rix Acked-by: Oliver Neukum

Re: [PATCH] cdc-acm: rework notification_buffer resizing

2020-08-04 Thread Oliver Neukum
Am Samstag, den 01.08.2020, 08:21 -0700 schrieb t...@redhat.com: > From: Tom Rix > > Clang static analysis reports this error > > cdc-acm.c:409:3: warning: Use of memory after it is freed > acm_process_notification(acm, (unsigned char *)dr); > > There are three problems, the first one

Re: [PATCH v2] Bluetooth: btusb: Reset port on cmd timeout

2020-06-25 Thread Oliver Neukum
Am Mittwoch, den 24.06.2020, 11:11 -0700 schrieb Abhishek Pandit- Subedi: > QCA_ROME sometimes gets into a state where it is unresponsive to > commands. Since it doesn't have support for a reset gpio, reset the usb > port when this occurs instead. Hi, on first glance this looks like an

Re: KASAN: use-after-free Read in usblp_bulk_read

2020-05-06 Thread Oliver Neukum
Oliver From 5ed23e0029cf10cf8dbdd790a190d7e2113560ae Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 6 May 2020 11:05:41 +0200 Subject: [PATCH] usblp: poison URBs upon disconnect syzkaller reported an UB that should have been killed to be active. We do not understand it, but this sh

Re: KASAN: slab-out-of-bounds Read in hfa384x_usbin_callback

2020-05-06 Thread Oliver Neukum
Am Freitag, den 20.03.2020, 12:28 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:e17994d1 usb: core: kcov: collect coverage from usb comple.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KASAN: slab-out-of-bounds Write in betop_probe

2020-05-05 Thread Oliver Neukum
Am Montag, den 10.02.2020, 17:16 -0800 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:e5cd56e9 usb: gadget: add raw-gadget interface > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KASAN: slab-out-of-bounds Read in hfa384x_usbin_callback

2020-05-05 Thread Oliver Neukum
c:3026 > Read of size 19671 at addr 8881d226413c by task swapper/0/0 #syz test: https://github.com/google/kasan.git e17994d1From 6dbcac8c4b645600161feafc5576657905f15d65 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Tue, 5 May 2020 13:46:26 +0200 Subject: [PATCH] hfa384x_usb: fix

Re: general protection fault in go7007_usb_probe

2020-05-04 Thread Oliver Neukum
b51423e908be7a5 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 22 Apr 2020 13:49:55 +0200 Subject: [PATCH] go7007: add sanity checking for endpoints A malicious USB device may lack endpoints the driver assumes to exist Accessing them leads to NULL pointer accesses. This patch introduces s

Re: [PATCH] xhci: Prevent runtime suspend all the time with XHCI_RESET_ON_RESUME quirk

2020-05-04 Thread Oliver Neukum
Am Montag, den 04.05.2020, 17:19 +0800 schrieb Kai-Heng Feng: > Etron EJ168 USB 3.0 Host Controller stops working after S3, if it was > runtime suspended previously: > [ 370.080359] pci :02:00.0: can't change power state from D3cold to D0 > (config space inaccessible) Apparently this

Re: general protection fault in go7007_usb_probe

2020-04-30 Thread Oliver Neukum
db1e217b9615cc4 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 22 Apr 2020 13:49:55 +0200 Subject: [PATCH] go7007: add only insanity checking A malicious USB device may lack endpoints the driver assumes to exist Accessing them leads to NULL pointer accesses. This patch introduces sanity c

Re: KASAN: use-after-free Read in usblp_bulk_read

2020-04-30 Thread Oliver Neukum
Am Dienstag, den 21.04.2020, 08:35 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:0fa84af8 Merge tag 'usb-serial-5.7-rc1' of https://git.ker.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KMSAN: uninit-value in ax88172a_bind

2019-10-17 Thread Oliver Neukum
acdad35e6bbca...@syzkaller.appspotmail.com #syz test: https://github.com/google/kmsan.git fa169025 From a6fd7a04a330a8bfad836b20843ea5fe26e0ae38 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Thu, 17 Oct 2019 15:12:33 +0200 Subject: [PATCH] asix: fix information leak on short answers If a mal

Re: [RFC PATCH 20/22] thunderbolt: Add support for USB tunnels

2019-10-03 Thread Oliver Neukum
Am Dienstag, den 01.10.2019, 14:38 +0300 schrieb Mika Westerberg: > From: Rajmohan Mani > > USB4 added a capability to tunnel USB 3.x protocol over the USB4 > fabric. USB4 device routers may include integrated SuperSpeed HUB or a > function or both. USB tunneling follows PCIe so that the tunnel

Re: [RFC PATCH 06/22] thunderbolt: Add support for lane bonding

2019-10-03 Thread Oliver Neukum
Am Mittwoch, den 02.10.2019, 17:30 +0300 schrieb Mika Westerberg: > On Wed, Oct 02, 2019 at 04:21:06PM +0200, Oliver Neukum wrote: > > Am Dienstag, den 01.10.2019, 15:53 +0300 schrieb Mika Westerberg: > > > > > > > > Are we only going to be all

Re: [RFC PATCH 06/22] thunderbolt: Add support for lane bonding

2019-10-02 Thread Oliver Neukum
Am Dienstag, den 01.10.2019, 15:53 +0300 schrieb Mika Westerberg: > > > > Are we only going to be allowed to "bond" two links together? Or will > > we be doing more than 2 in the future? If more, then we might want to > > think of a different way to specify these... > > AFAICT only two lanes

Re: [RFC PATCH 05/22] thunderbolt: Add helper macros to iterate over switch ports

2019-10-02 Thread Oliver Neukum
Am Dienstag, den 01.10.2019, 14:38 +0300 schrieb Mika Westerberg: > @@ -1975,10 +1972,8 @@ void tb_switch_suspend(struct tb_switch *sw) > if (err) > return; > > - for (i = 1; i <= sw->config.max_port_number; i++) { > - if

Re: [RFC PATCH 17/22] thunderbolt: Add initial support for USB4

2019-10-01 Thread Oliver Neukum
Am Dienstag, den 01.10.2019, 18:07 +0300 schrieb Mika Westerberg: Hi, > OK, but does that break existing .configs? I mean if you have already > CONFIG_THUNDERBOLT in your .config/defconfig does it now just get > dropped silently? People will have to look at this new stuff anyway. > For example

Re: WARNING in _chaoskey_fill/usb_submit_urb

2019-09-30 Thread Oliver Neukum
s://github.com/google/kasan.git e0bd8d79 From b80b39a2565a80f16ce007982babe753e225ea83 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Mon, 30 Sep 2019 15:19:13 +0200 Subject: [PATCH] USB: chaoskey: fix error case of a timeout In case of a timeout communication with the device needs to be ended fr

Re: WARNING in _chaoskey_fill/usb_submit_urb

2019-09-30 Thread Oliver Neukum
ps://github.com/google/kasan.git e0bd8d79From 27b0085768b55f2ed8faf4f1254023a03dc3eb24 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Mon, 30 Sep 2019 15:19:13 +0200 Subject: [PATCH] USB: chaoskey: fix error case of a timeout In case of a timeout communication with the device needs to be ended fr

Re: 4f5368b5541a902f6596558b05f5c21a9770dd32 causes regression

2019-09-30 Thread Oliver Neukum
Am Mittwoch, den 25.09.2019, 21:48 +0200 schrieb Daniel Vetter: > which undoes any side-effect of the patch you're pointing at. I am > rather surprised though that this results in a hard-lookup for you, > did you confirm the bisect by reverting that commit on top of latest > upstream? Hi, yes, a

4f5368b5541a902f6596558b05f5c21a9770dd32 causes regression

2019-09-25 Thread Oliver Neukum
Hi, I am seeing a hard lockup during boot with this patch. I am using only the laptop's internal display. The last message I see is: kvm: disabled by BIOS Regards Oliver devices are: 00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core

Re: [PATCH 0/2] Reset realtek bluetooth devices during user suspend

2019-09-18 Thread Oliver Neukum
Am Dienstag, den 17.09.2019, 14:27 -0700 schrieb Abhishek Pandit- Subedi: > On a Realtek USB bluetooth device, I wanted a simple and consistent way > to put the device in reset during suspend (2 reasons: to save power and The device really uses less power if you reset it before suspendening it?

Re: divide error in usbnet_update_max_qlen

2019-09-17 Thread Oliver Neukum
ps://github.com/google/kasan.git f0df5c1bFrom 57c2443b2a7678a6f7f6437f741f49f06a5104fb Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Tue, 17 Sep 2019 11:51:55 +0200 Subject: [PATCH] usbnet: sanity checking of packet sizes Malicious devices can set this to zero and we divide by it. Introduce s

Re: WARNING in hso_free_net_device

2019-09-09 Thread Oliver Neukum
Am Donnerstag, den 05.09.2019, 22:05 -0400 schrieb Hui Peng: > > On 9/5/2019 7:24 AM, Andrey Konovalov wrote: > > On Thu, Sep 5, 2019 at 4:20 AM Hui Peng wrote: > > > > > > Can you guys have a look at the attached patch? > > > > Let's try it: > > > > #syz test:

Re: [PATCH] usb: storage: Add ums-cros-aoa driver

2019-09-03 Thread Oliver Neukum
Am Dienstag, den 03.09.2019, 11:19 +0200 schrieb Greg KH: > On Tue, Sep 03, 2019 at 10:46:14AM +0200, Oliver Neukum wrote: > > Am Montag, den 02.09.2019, 18:47 +0200 schrieb Greg KH: > > > > > > This should work just fine today. Add a new device id to the "

Re: [PATCH] usb: storage: Add ums-cros-aoa driver

2019-09-03 Thread Oliver Neukum
Am Montag, den 02.09.2019, 18:47 +0200 schrieb Greg KH: > > This should work just fine today. Add a new device id to the "new_id" > file and then tell the driver to bind. That's pretty much the same as a > "force_bind", right? That looks like a race condition by design to me. Regards

Re: [PATCH] HID: quirks: Disable runtime suspend on Microsoft Corp. Basic Optical Mouse v2.0

2019-08-22 Thread Oliver Neukum
Am Donnerstag, den 22.08.2019, 17:17 +0800 schrieb Kai-Heng Feng: > The optical sensor of the mouse gets turned off when it's runtime > suspended, so moving the mouse can't wake the mouse up, despite that > USB remote wakeup is successfully set. > > Introduce a new quirk to prevent the mouse from

Re: KMSAN: uninit-value in smsc75xx_bind

2019-08-13 Thread Oliver Neukum
Am Freitag, den 09.08.2019, 01:48 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:beaab8a3 fix KASAN build > git tree: kmsan [..] > Call Trace: > __dump_stack lib/dump_stack.c:77 [inline] > dump_stack+0x191/0x1f0 lib/dump_stack.c:113 >

Re: KASAN: slab-out-of-bounds Read in usbnet_generic_cdc_bind

2019-08-13 Thread Oliver Neukum
Am Montag, den 12.08.2019, 14:27 +0200 schrieb Andrey Konovalov: > On > This one is funny, we do sizeof(struct usb_cdc_mdlm_desc *) instead of > sizeof(struct usb_cdc_mdlm_desc) and the same for > usb_cdc_mdlm_detail_desc in cdc_parse_cdc_header(). You are right. Old copy & paste error

Re: WARNING in usbhid_raw_request/usb_submit_urb

2019-08-13 Thread Oliver Neukum
Am Dienstag, den 13.08.2019, 12:26 +0800 schrieb Hillf Danton: > [respin with the mess in Cc list cleaned up] > Followup of commit e3e14de50dff ("HID: fix start/stop cycle in usbhid driver") > > --- a/drivers/hid/usbhid/hid-core.c > +++ b/drivers/hid/usbhid/hid-core.c > @@ -1214,6 +1214,8 @@

Re: KASAN: use-after-free Read in device_release_driver_internal

2019-08-07 Thread Oliver Neukum
Am Dienstag, den 06.08.2019, 14:50 +0200 schrieb Andrey Konovalov: > On Tue, Aug 6, 2019 at 2:36 PM Oliver Neukum wrote: > > > > Am Donnerstag, den 01.08.2019, 14:47 -0400 schrieb Alan Stern: > > > > > > I think this must be caused by an unbalanced refcount. T

Re: KASAN: use-after-free Read in cpia2_usb_disconnect

2019-07-04 Thread Oliver Neukum
Am Mittwoch, den 03.07.2019, 10:10 -0700 schrieb Eric Biggers: > > Who are you talking to? If you want syzbot to test your patch, follow the > directions at > https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches Thanks. I am trying this out now. Regards

Re: KASAN: use-after-free Read in cpia2_usb_disconnect

2019-07-03 Thread Oliver Neukum
8881cf6c4e50 by task kworker/1:1/22 Please try this: >From a0a73298fc23acb95e7b6487e960be707563eb34 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 8 May 2019 12:36:40 +0200 Subject: [PATCH] cpia2_usb: first wake up, then free in disconnect Kasan reported a use after free in cpia2_us

Re: [PATCH] usb: image: microtek: Unneeded variable: "err". Return "0" on line 616

2019-07-02 Thread Oliver Neukum
ck as it is part > of DEF_SCSI_QCMD > > Signed-off-by: Hariprasad Kelam Acked-by: Oliver Neukum

Re: [RFC] deadlock with flush_work() in UAS

2019-07-01 Thread Oliver Neukum
Am Mittwoch, den 26.06.2019, 10:38 -0400 schrieb Alan Stern: > On Wed, 26 Jun 2019, Oliver Neukum wrote: > > > Am Montag, den 24.06.2019, 10:22 -0400 schrieb Alan Stern: > > > But that pattern makes no sense; a driver would never use it. The > > > driver

Re: [RFC] deadlock with flush_work() in UAS

2019-06-26 Thread Oliver Neukum
Am Montag, den 24.06.2019, 10:22 -0400 schrieb Alan Stern: > But that pattern makes no sense; a driver would never use it. The > driver would just do the reset itself. Correct. But UAS and storage themselves still need to use WQ_MEM_RECLAIM for their workqueues, don't they? Regards

Re: [RFC] deadlock with flush_work() in UAS

2019-06-24 Thread Oliver Neukum
Am Donnerstag, den 20.06.2019, 07:10 -0700 schrieb Tejun Heo: > Hello, > > On Tue, Jun 18, 2019 at 11:59:39AM -0400, Alan Stern wrote: > > > > Even if you disagree, perhaps we should have a global workqueue with a > > > > permanently set noio flag. It could be shared among multiple drivers > > >

Re: [IMX] [DRM]: suspend/resume support

2019-06-18 Thread Oliver Neukum
Am Montag, den 17.06.2019, 19:19 +0530 schrieb Pintu Agarwal: > Currently, I am trying to understand what needs to be taken care > during suspend/resume. You need to take care of * wakeup sources * not requiring services of devices higher up in the tree. > With some reference, I figured out

Re: KASAN: use-after-free Read in device_del

2019-06-06 Thread Oliver Neukum
ve any reproducer for this crash yet. Will this do? Regards Oliver From 6867abc1701f18892d32e8aeaf644901e9bcbf82 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 5 Jun 2019 13:49:21 +0200 Subject: [PATCH] usb: hso: initialize so that we can tear down in the err

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-28 Thread Oliver Neukum
Am Donnerstag, den 23.05.2019, 10:01 -0400 schrieb Alan Stern: > On Wed, 22 May 2019, Oliver Neukum wrote: > > > On Mi, 2019-05-22 at 10:56 -0400, Alan Stern wrote: > > > On Wed, 22 May 2019, Oliver Neukum wrote: > > > > > > > I agree with the probl

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-23 Thread Oliver Neukum
On So, 2019-05-19 at 22:56 -0700, Christoph Hellwig wrote: > Folks, you can't just pass arbitary GFP_ flags to dma allocation > routines, beause very often they are not just wrappers around > the page allocator. > > So no, you can't just fine grained control the flags, but the > existing code is

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-22 Thread Oliver Neukum
On Mi, 2019-05-22 at 10:56 -0400, Alan Stern wrote: > On Wed, 22 May 2019, Oliver Neukum wrote: > > > I agree with the problem, but I fail to see why this issue would be > > specific to USB. Shouldn't this be done in the device core layer? > > Only for drivers that

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-22 Thread Oliver Neukum
On Di, 2019-05-21 at 10:00 -0400, Alan Stern wrote: > > Changing configurations amounts to much the same as disconnecting, > because both operations destroy all the existing interfaces. > > Disconnect can arise in two different ways. > > Physical hot-unplug: All I/O operations will

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-21 Thread Oliver Neukum
On Mo, 2019-05-20 at 10:16 -0400, Alan Stern wrote: > On Mon, 20 May 2019, Christoph Hellwig wrote: > > > GFP_KERNEL if you can block, GFP_ATOMIC if you can't for a good reason, > > that is the allocation is from irq context or under a spinlock. If you > > think you have a case where you think

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-21 Thread Oliver Neukum
On Mo, 2019-05-20 at 07:23 -0700, Christoph Hellwig wrote: > On Mon, May 20, 2019 at 10:16:57AM -0400, Alan Stern wrote: > > What if the allocation requires the kernel to swap some old pages out > > to the backing store, but the backing store is on the device that the > > driver is managing?

Re: [RFC v2 3/5] clk: bcm2835: use firmware interface to update pllb

2019-05-20 Thread Oliver Neukum
On Mo, 2019-05-20 at 12:47 +0200, Nicolas Saenz Julienne wrote: > + * For more information on the firmware interface check: > + * https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface > + */ > +struct bcm2835_firmware_prop { > + u32 id; > + u32 val; > + u32

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-20 Thread Oliver Neukum
On So, 2019-05-19 at 22:56 -0700, Christoph Hellwig wrote: > Folks, you can't just pass arbitary GFP_ flags to dma allocation > routines, beause very often they are not just wrappers around > the page allocator. > > So no, you can't just fine grained control the flags, but the > existing code is

Re: [PATCH] usb/hcd: Send a uevent signaling that the host controller has died

2019-04-11 Thread Oliver Neukum
On Mi, 2019-04-10 at 14:35 -0600, Raul E Rangel wrote: > This change will send a CHANGE event to udev with the DEAD environment > variable set when the HC dies. I chose this instead of any of the other > udev events because it's representing a state change in the host > controller. The only other

Re: [PATCH v3] HID: core: move Usage Page concatenation to Main item

2019-03-27 Thread Oliver Neukum
On Di, 2019-03-26 at 21:03 +0100, Nicolas Saenz Julienne wrote: > --- a/drivers/hid/hid-core.c > +++ b/drivers/hid/hid-core.c > @@ -218,13 +218,14 @@ static unsigned hid_lookup_collection(struct hid_parser > *parser, unsigned type) > * Add a usage to the temporary parser table. > */ > >

Re: [PATCH] usb: uas: fix usb subsystem hang after power off hub port

2019-03-08 Thread Oliver Neukum
On Fr, 2019-03-08 at 09:13 +, kento.a.kobaya...@sony.com wrote: > The usb_reset_and_verify_device included in usb_reset_device fails > with -ENODEV after power off hub port, and the -ENODEV error will > be reported to uas_eh_bus_reset_handler and upper layer, so it > doesn't need to do rebind

Re: [PATCH v2] USB: serial: cp210x: Fix GPIO in autosuspend

2019-02-18 Thread Oliver Neukum
On So, 2019-02-17 at 18:59 +0100, Karoly Pados wrote: > Current GPIO code in cp210x fails to take USB autosuspend into account, > making it practically impossible to use GPIOs with autosuspend enabled > without user configuration. Fix this like for ftdi_sio in a previous patch. > Tested on a

Re: [PATCH 2/2] RTL8153-BD is used in Dell DA300 type-C dongle. It should be added to the whitelist of devices to activate MAC address pass through.

2019-02-18 Thread Oliver Neukum
On Mo, 2019-02-18 at 11:48 +0800, David Chen wrote: > From: David Chen > > Per confirming with Realtek all devices containing RTL8153-BD should > activate MAC pass through and there won't use pass through bit on efuse > like in RTL8153-AD. > > Signed-off-by: David Chen > --- >

Re: [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header

2019-01-11 Thread Oliver Neukum
On Fr, 2019-01-11 at 10:10 +0100, Greg KH wrote: > On Thu, Jan 10, 2019 at 01:10:25PM +0530, Sabyasachi Gupta wrote: > > Remove unusual_sddr55.h which is included more than once > > > > Signed-off-by: Sabyasachi Gupta > > --- > > drivers/usb/storage/sddr55.c | 1 - > > 1 file changed, 1

Re: [PATCH] drivers/usb/storage/jumpshot.c: Remove duplicate header

2019-01-09 Thread Oliver Neukum
On Do, 2019-01-10 at 13:03 +0530, Sabyasachi Gupta wrote: > Remove unusual_jumpshot.h which is included more than once. > > Signed-off-by: Sabyasachi Gupta > --- > drivers/usb/storage/jumpshot.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/usb/storage/jumpshot.c

Re: [PATCH v3] usb: hub: add retry routine after intr URB submit error

2019-01-07 Thread Oliver Neukum
On Mo, 2019-01-07 at 13:59 -0500, Alan Stern wrote: > On Mon, 7 Jan 2019, Greg KH wrote: > > > > What ever happened to this patch? Is it still needed? Oliver and Alan, > > any objections about it anymore? > > I have just one very minor nit to pick (see below). Mostly I've been > waiting to

Re: [PATCH RFC 4/5] usb: cdc-acm: Enable serdev support

2019-01-07 Thread Oliver Neukum
On Fr, 2019-01-04 at 12:21 +0100, Andreas Färber wrote: > Switch from tty_port_register_device() to tty_port_register_device_serdev() > and from tty_unregister_device() to tty_port_unregister_device(). > > On removal of a serdev driver sometimes count mismatch warnings were seen: > > ttyACM

  1   2   3   4   5   6   7   8   9   10   >