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: 177d, last: 2d05h
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 273d 370d 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 0xffff88810106da20 of 8 bytes by task 8679 on cpu 0:
 inc_diskseq+0x2c/0x40 block/genhd.c:1491
 disk_force_media_change+0x9f/0xf0 block/disk-events.c:297
 loop_configure+0x626/0xa30 drivers/block/loop.c:1084
 lo_ioctl+0x5f6/0x11c0
 blkdev_ioctl+0x359/0x450 block/ioctl.c:693
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892
 x64_sys_call+0x1690/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:17
 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 0xffff88810106da20 of 8 bytes by task 2998 on cpu 1:
 block_uevent+0x31/0x50 block/genhd.c:1230
 dev_uevent+0x2f3/0x380 drivers/base/core.c:2673
 uevent_show+0x11e/0x210 drivers/base/core.c:2731
 dev_attr_show+0x3a/0xa0 drivers/base/core.c:2423
 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: 0x0000000000000200 -> 0x000000000000020b

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 2998 Comm: udevd Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (46):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/10 22:34 upstream 7cb1b4663150 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/12/08 08:35 upstream 7503345ac5f5 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/12/02 18:44 upstream e70140ba0d2b b499ea68 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/28 11:04 upstream b86545e02e8c 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/26 23:36 upstream 445d9f05fa14 e9a9a9f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
2024/11/24 16:04 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_uevent / inc_diskseq
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.