syzbot


KCSAN: data-race in random_recv_done / virtio_read (2)

Status: auto-obsoleted due to no activity on 2022/11/08 08:46
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 296d, last: 121d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in random_recv_done / virtio_read 23 348d 357d 0/24 auto-closed as invalid on 2022/03/26 07:07

Sample crash report:
==================================================================
BUG: KCSAN: data-race in random_recv_done / virtio_read

read to 0xffff8881012f24cc of 4 bytes by task 23173 on cpu 0:
 copy_data drivers/char/hw_random/virtio-rng.c:70 [inline]
 virtio_read+0xc2/0x430 drivers/char/hw_random/virtio-rng.c:92
 rng_get_data drivers/char/hw_random/core.c:191 [inline]
 rng_dev_read+0x1b4/0x630 drivers/char/hw_random/core.c:228
 do_iter_read+0x2d5/0x760 fs/read_write.c:798
 vfs_readv fs/read_write.c:916 [inline]
 do_preadv+0x159/0x230 fs/read_write.c:1008
 __do_sys_preadv fs/read_write.c:1058 [inline]
 __se_sys_preadv fs/read_write.c:1053 [inline]
 __x64_sys_preadv+0x54/0x60 fs/read_write.c:1053
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff8881012f24cc of 4 bytes by interrupt on cpu 1:
 random_recv_done+0x58/0x80 drivers/char/hw_random/virtio-rng.c:45
 vring_interrupt+0x14c/0x170 drivers/virtio/virtio_ring.c:2462
 __handle_irq_event_percpu+0x92/0x400 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0x60/0xf0 kernel/irq/handle.c:210
 handle_edge_irq+0x17e/0x5a0 kernel/irq/chip.c:819
 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline]
 handle_irq arch/x86/kernel/irq.c:231 [inline]
 __common_interrupt+0x60/0x100 arch/x86/kernel/irq.c:250
 common_interrupt+0x9a/0xc0 arch/x86/kernel/irq.c:240
 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:640
 check_kcov_mode kernel/kcov.c:168 [inline]
 write_comp_data kernel/kcov.c:229 [inline]
 __sanitizer_cov_trace_const_cmp8+0x33/0xa0 kernel/kcov.c:304
 _compound_head include/linux/page-flags.h:255 [inline]
 PageSwapBacked include/linux/page-flags.h:502 [inline]
 mm_counter_file include/linux/mm.h:1997 [inline]
 mm_counter include/linux/mm.h:2006 [inline]
 copy_present_pte+0x188/0xa70 mm/memory.c:970
 copy_pte_range+0x3ed/0xc50 mm/memory.c:1085
 copy_pmd_range mm/memory.c:1171 [inline]
 copy_pud_range mm/memory.c:1208 [inline]
 copy_p4d_range mm/memory.c:1232 [inline]
 copy_page_range+0x5ea/0x8f0 mm/memory.c:1330
 dup_mmap+0x6e0/0xa60 kernel/fork.c:699
 dup_mm+0x7c/0x210 kernel/fork.c:1525
 copy_mm+0xce/0x140 kernel/fork.c:1577
 copy_process+0xdc8/0x20e0 kernel/fork.c:2254
 kernel_clone+0x163/0x5c0 kernel/fork.c:2671
 __do_sys_clone kernel/fork.c:2805 [inline]
 __se_sys_clone kernel/fork.c:2789 [inline]
 __x64_sys_clone+0xc3/0xf0 kernel/fork.c:2789
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000000 -> 0x00000040

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1842 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (32):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/10/04 08:38 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/09/22 20:21 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/09/20 12:12 upstream 521a547ced64 7c41a9ba .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/09/18 04:24 upstream a335366bad13 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/09/15 11:05 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/09/13 07:06 upstream e839a756012b f371ed7e .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/09/06 07:41 upstream 53e99dcff61e 9dcd38fc .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/08/31 10:53 upstream dcf8e5633e2e 51e54e30 .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/08/29 07:05 upstream 8379c0b31fbc 07177916 .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/08/27 11:31 upstream e022620b5d05 07177916 .config console log report info [disk image] [vmlinux] KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/08/22 19:57 upstream 1c23f9e627a7 26a13b38 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/08/12 13:05 upstream 7ebfc85e2cd7 402cd70d .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/08/10 15:05 upstream d4252071b97d aaa9eaa0 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/07/17 17:54 upstream 972a278fe60c 95cb00d1 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/07/13 07:32 upstream b047602d579b 5d921b08 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/25 01:25 upstream 38bc4ac43168 a371c43c .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/23 22:56 upstream 92f20ff72066 912f5df7 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/23 15:48 upstream de5c208d533a 912f5df7 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/21 21:14 upstream ca1fdab7fd27 0fc5c330 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/19 13:25 upstream 354c6e071be9 8f633d84 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/17 10:12 upstream 47700948a4ab cb58b3b2 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/16 14:10 upstream 30306f6194ca 1719ee24 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/03 14:29 upstream 50fd82b3a9a9 eee80d3c .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/06/02 04:53 upstream 8eca6b0a647a b4bc6a3d .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/05/27 21:36 upstream 8291eaafed36 a46af346 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/05/26 09:46 upstream d7227785e384 3037caa9 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/05/26 00:32 upstream fdaf9a5840ac 3037caa9 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/05/21 19:12 upstream 6c3f5bec9b40 7268fa62 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/05/20 08:20 upstream b015dcd62b86 cb1ac2e7 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/05/19 20:07 upstream f993aed406ea cb1ac2e7 .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/04/26 22:51 upstream cf424ef014ac 1fa34c1b .config console log report info KCSAN: data-race in random_recv_done / virtio_read
ci2-upstream-kcsan-gce 2022/04/12 10:19 upstream ce522ba9ef7e af01ee7d .config console log report info KCSAN: data-race in random_recv_done / virtio_read
* Struck through repros no longer work on HEAD.