syzbot


KCSAN: data-race in block_uevent / inc_diskseq (2)

Status: upstream: reported on 2024/06/19 12:27
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+c147f9175ec6cc7bd73b@syzkaller.appspotmail.com
First crash: 155d, last: 2h36m
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly block report (Oct 2024) 0 (1) 2024/10/16 15:35
[syzbot] Monthly block report (Jul 2024) 0 (1) 2024/07/15 11:51
[syzbot] [block?] KCSAN: data-race in block_uevent / inc_diskseq (2) 2 (3) 2024/06/19 18:49
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in block_uevent / inc_diskseq block 37 251d 348d 0/28 auto-obsoleted due to no activity on 2024/04/18 10:08

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

write to 0xffff888102166a20 of 8 bytes by task 3321 on cpu 1:
 inc_diskseq+0x2c/0x40 block/genhd.c:1494
 disk_force_media_change+0x9f/0xf0 block/disk-events.c:297
 __loop_clr_fd drivers/block/loop.c:1168 [inline]
 lo_release+0x2ca/0x400 drivers/block/loop.c:1738
 bdev_release+0x3c6/0x420
 blkdev_release+0x15/0x20 block/fops.c:635
 __fput+0x17a/0x6d0 fs/file_table.c:450
 __fput_sync+0x96/0xc0 fs/file_table.c:535
 __do_sys_close fs/open.c:1550 [inline]
 __se_sys_close+0x109/0x1b0 fs/open.c:1535
 __x64_sys_close+0x1f/0x30 fs/open.c:1535
 x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888102166a20 of 8 bytes by task 3014 on cpu 0:
 block_uevent+0x31/0x50 block/genhd.c:1233
 dev_uevent+0x2f3/0x380 drivers/base/core.c:2680
 uevent_show+0x11e/0x210 drivers/base/core.c:2738
 dev_attr_show+0x3a/0xa0 drivers/base/core.c:2430
 sysfs_kf_seq_show+0x17c/0x250 fs/sysfs/file.c:59
 kernfs_seq_show+0x7c/0x90 fs/kernfs/file.c:205
 seq_read_iter+0x2d1/0x930 fs/seq_file.c:230
 kernfs_fop_read_iter+0xc0/0x310 fs/kernfs/file.c:279
 new_sync_read fs/read_write.c:484 [inline]
 vfs_read+0x5dc/0x700 fs/read_write.c:565
 ksys_read+0xe8/0x1b0 fs/read_write.c:708
 __do_sys_read fs/read_write.c:717 [inline]
 __se_sys_read fs/read_write.c:715 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:715
 x64_sys_call+0x2874/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x000000000000009f -> 0x00000000000000a2

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3014 Comm: udevd Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 04:12 upstream 8f7c8b88bda4 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/19 03:46 upstream 23acd177540d 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/18 18:03 upstream adc218676eef e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/18 00:11 upstream 4a5df3796467 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/07 23:39 upstream ff7afaeca1a1 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/03 06:32 upstream 11066801dd4b f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/31 15:43 upstream 0fc810ae3ae1 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/31 09:48 upstream 4236f913808c 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/24 13:30 upstream c2ee9f594da8 0d144d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/17 15:39 upstream c964ced77262 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/16 04:06 upstream 2f87d0916ce0 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/10 02:20 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/09 22:43 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/07 04:23 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/03 18:55 upstream 7ec462100ef9 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/10/03 01:06 upstream f23aa4c0761a 02f9582a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/28 19:08 upstream ad46e8f95e93 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/20 13:25 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/20 05:16 upstream 2004cef11ea0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/19 08:23 upstream 4a39ac5b7d62 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/18 18:02 upstream bdf56c7580d2 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/08 11:29 upstream d1f2d51b711a 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/05 11:47 upstream c763c4339688 464ac2ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/09/01 13:12 upstream 431c1646e1f8 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/31 06:19 upstream 20371ba12063 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/25 21:17 upstream 5be63fc19fca d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/23 05:21 upstream aa0743a22936 ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/05 09:46 upstream de9c2c66ad8e e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/05 03:46 upstream a5dbd76a8942 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/04 06:47 upstream defaf1a2113a 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/08/03 00:50 upstream 1c4246294c98 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/30 20:23 upstream 22f546873149 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/29 13:08 upstream dc1c8034e31b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/26 01:12 upstream 1722389b0d86 3f86dfed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/25 11:25 upstream c33ffdb70cc6 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/22 18:35 upstream 933069701c1b df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/21 03:20 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/14 08:00 upstream d0d0cd380055 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/07/02 18:12 upstream 1dfe225e9af5 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/06/19 00:43 upstream 3d54351c64e8 639d6cdf .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.