lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <aa686f98-c9a3-6225-18e8-7ca57678ce4a@nitrokey.com>
Date:   Thu, 12 Jan 2023 09:40:59 +0100
From:   Sosthène Guédon <sosthene@...rokey.com>
To:     Valentina Manea <valentina.manea.m@...il.com>,
        Shuah Khan <shuah@...nel.org>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Cc:     Robin Krahl <robin@...rokey.com>
Subject: kernel BUG at mm/usercopy.c when using usbip

Hi!

I have stumbled upon a bug that is triggered reliably by using usbip.

We are using usbip to test our firmware. usbip attach works, but once 
`opgpcard-tools` interacts with the firmware through pcscd, a kernel bug 
happens.
Then usbip stops working, and `lsusb` as well as other tools interacting 
with usb devices hang.
The symptoms are similar to 
https://bugzilla.kernel.org/show_bug.cgi?id=215487 but the kernel bug is 
not the same (see attached dmesg logs).

The bug can be reproduced on arch (Linux archlinux 6.1.4-arch1-1 #1 SMP 
PREEMPT_DYNAMIC Sat, 07 Jan 2023 15:10:07 +0000 x86_64 GNU/Linux
) and debian (Linux nitropc 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 
(2022-10-21) x86_64 GNU/Linux), though the reproduction is not minimal.

To reproduce the bug on Arch Linux, with the packages rust, pcsclite, 
and openpgp-card-tools installed:

- Compile and run the usbip runner from this 
PR: https://github.com/Nitrokey/nitrokey-3-firmware/pull/149 (`cd 
nitrokey-3-firmware/runners/usbip && cargo run --features alpha`)
- Run `usbip attach -r localhost -b 1-1`
- Run `pcscd`
- Run `opgpcard status`

The bug should happen.

-- 
Sosthène Guédon,
Software engineer

Nitrokey GmbH
https://www.nitrokey.com

Email: sosthene@...rokey.com
Phone: +49 30 1205 3434

Rheinstr. 10 C, 14513 Teltow, Germany
CEO / Geschäftsführer: Jan Suhr
Register: AG Potsdam, HRB 32882 P
VAT ID / USt-IdNr.: DE300136599

View attachment "dmesg-error" of type "text/plain" (8665 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ