syzbot


KCSAN: data-race in data_push_tail / vsnprintf

Status: auto-closed as invalid on 2022/02/26 00:52
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 628d, last: 315d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in data_push_tail / vsnprintf (3) 8 94d 193d 0/24 auto-closed as invalid on 2022/10/04 16:48
upstream KCSAN: data-race in data_push_tail / vsnprintf (2) 1 251d 251d 0/24 auto-closed as invalid on 2022/05/01 03:50

Sample crash report:
vhci_hcd: cannot find a urb of seqnum 0 max seqnum 23
==================================================================
BUG: KCSAN: data-race in data_push_tail / vsnprintf

write to 0xffffffff86dcf2a5 of 1 bytes by task 29670 on cpu 1:
 vsnprintf+0xe8f/0xed0
 vscnprintf+0x29/0x80 lib/vsprintf.c:2908
 printk_sprint kernel/printk/printk.c:2075 [inline]
 vprintk_store+0x638/0xbb0 kernel/printk/printk.c:2185
 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2228
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2255
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x97 kernel/printk/printk.c:2265
 vhci_rx_loop+0x605/0x9a0 drivers/usb/usbip/vhci_rx.c:265
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

read to 0xffffffff86dcf2a0 of 8 bytes by task 29672 on cpu 0:
 data_make_reusable kernel/printk/printk_ringbuffer.c:587 [inline]
 data_push_tail+0x138/0x470 kernel/printk/printk_ringbuffer.c:672
 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1043
 prb_reserve+0x920/0xbf0 kernel/printk/printk_ringbuffer.c:1549
 vprintk_store+0x560/0xbb0 kernel/printk/printk.c:2175
 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2228
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2255
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x97 kernel/printk/printk.c:2265
 vhci_recv_ret_submit drivers/usb/usbip/vhci_rx.c:69 [inline]
 vhci_rx_pdu drivers/usb/usbip/vhci_rx.c:242 [inline]
 vhci_rx_loop+0x2d6/0x9a0 drivers/usb/usbip/vhci_rx.c:265
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x000000010003b851 -> 0x0000006465646573

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29672 Comm: vhci_rx Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (36):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/22 00:51 upstream 9b57f4589857 214351e1 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2022/01/18 00:11 upstream 0c947b893d69 731a2d23 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2022/01/15 08:58 upstream 112450df61b7 723cfaf0 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2022/01/12 13:54 upstream daadb3bd0e8d 44d1319a .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2022/01/06 06:34 upstream 49ef78e59b07 6acc789a .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/12/31 21:34 upstream 4f3d93c6eaff 36bd2e48 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/12/24 11:11 upstream 7a29b11da965 6caa12e4 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/11/26 02:05 upstream b501b85957de 63eeac02 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/11/13 10:29 upstream 66f4beaa6c1d 75b04091 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/11/11 15:18 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/10/27 22:12 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/10/18 18:25 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/10/17 08:34 upstream d999ade1cc86 0c5d9412 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/09/22 04:52 upstream 92477dd1faa6 169724fe .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/09/20 10:18 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/09/07 11:12 upstream 4b93c544e90e 6ca60148 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/09/03 03:08 upstream 7ba88a2a09f4 f62a5829 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/08/16 02:16 upstream ecf93431963a 2489ab88 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/08/05 09:19 upstream 251a1524293d 7f7bb950 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/06/26 22:31 upstream 625acffd7ae2 9d2ab5df .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/06/20 09:07 upstream 913ec3c22ef4 aba2b2fb .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/06/19 16:49 upstream 9ed13a17e38e aba2b2fb .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/29 12:28 upstream 6799d4f2da49 858ea628 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/27 14:12 upstream d7c5303fbc8a 858ea628 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/20 02:28 upstream c3d0e3fd41b7 a343ba6b .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/17 20:41 upstream d07f6ca923ea a2eb125d .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/10 23:06 upstream 6efb943b8616 ca873091 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/10 03:40 upstream 9819f682e48c bc5434be .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/09 10:00 upstream b741596468b0 bc5434be .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/05/08 13:08 upstream dd860052c99b bc5434be .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/04/28 06:31 upstream e359bce39d90 77e2b668 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/04/25 09:51 upstream 2a1d7946fa53 36c88236 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/04/10 01:57 upstream 4e04e7513b0f 6a81331a .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/04/04 09:14 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/03/30 13:00 upstream 1e43c377a79f 6a81331a .config log report info KCSAN: data-race in data_push_tail / vsnprintf
ci2-upstream-kcsan-gce 2021/03/14 15:24 upstream 88fe49249c99 4a003785 .config log report info KCSAN: data-race in data_push_tail / vsnprintf
* Struck through repros no longer work on HEAD.