syzbot


KCSAN: data-race in block_uevent / inc_diskseq

Status: moderation: reported on 2023/12/09 00:07
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+121b850089bbda64dcd9@syzkaller.appspotmail.com
First crash: 165d, last: 8d18h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in block_uevent / inc_diskseq

write to 0xffff88814e3b7a20 of 8 bytes by task 15672 on cpu 0:
 inc_diskseq+0x2c/0x40 block/genhd.c:1467
 disk_force_media_change+0x9f/0xe0 block/disk-events.c:297
 loop_configure+0x70d/0xca0 drivers/block/loop.c:1066
 lo_ioctl+0x682/0x12e0
 blkdev_ioctl+0x375/0x460 block/ioctl.c:634
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:857
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88814e3b7a20 of 8 bytes by task 22944 on cpu 1:
 block_uevent+0x31/0x50 block/genhd.c:1201
 dev_uevent+0x2e9/0x360 drivers/base/core.c:2591
 uevent_show+0x102/0x1e0 drivers/base/core.c:2647
 dev_attr_show+0x39/0x90 drivers/base/core.c:2350
 sysfs_kf_seq_show+0x179/0x250 fs/sysfs/file.c:59
 kernfs_seq_show+0x78/0x90 fs/kernfs/file.c:205
 seq_read_iter+0x2bc/0x8f0 fs/seq_file.c:230
 kernfs_fop_read_iter+0xc8/0x2e0 fs/kernfs/file.c:279
 call_read_iter include/linux/fs.h:2079 [inline]
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x5ab/0x6a0 fs/read_write.c:476
 ksys_read+0xeb/0x1a0 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:627
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000002347 -> 0x0000000000002348

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 22944 Comm: udevd Not tainted 6.8.0-rc4-syzkaller-00034-g8d3dea210042 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (33):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/15 08:31 upstream 8d3dea210042 d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/02/12 13:05 upstream 841c35169323 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/02/03 07:16 upstream 56897d51886f 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/01/19 14:54 upstream 9d1694dc91ce 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/01/05 16:09 upstream 1f874787ed9a 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/28 18:05 upstream f5837722ffec fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/24 21:06 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/24 02:59 upstream 3f82f1c3a036 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/19 20:24 upstream 2cf4f94d8e86 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/15 19:47 upstream 3f7168591ebf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/13 08:24 upstream eaadbbaaff74 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/05 23:34 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/12/05 06:28 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/24 16:05 upstream f1a09972a45a 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/23 10:16 upstream 9b6de136b5f0 fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/12 06:15 upstream 1b907d050735 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/11 13:31 upstream 3ca112b71f35 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/06 03:33 upstream 77fa2fbe87fc 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/05 15:40 upstream 1c41041124bd 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/05 06:51 upstream aea6bf908d73 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/11/03 12:16 upstream 8f6f76a6a29f c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/27 17:56 upstream 750b95887e56 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/27 11:58 upstream 3a568e3a961b bf285f0c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/22 21:28 upstream 1acfd2bd3f0d 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/18 14:40 upstream 06dc10eae55b 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/12 23:01 upstream e8c127b05766 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/11 05:08 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/08 16:04 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/06 19:08 upstream 7de25c855b63 ea12a918 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/04 11:57 upstream cbf3a2cb156a b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/10/03 22:24 upstream 5e62ed3b1c8a 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/09/27 11:59 upstream 0e945134b680 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2023/09/11 16:42 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
* Struck through repros no longer work on HEAD.