syzbot


KCSAN: data-race in blkdev_get_by_dev / blkdev_put
Status: moderation: reported on 2021/10/11 20:20
Reported-by: syzbot+8a14637def67055e3e8a@syzkaller.appspotmail.com
First crash: 269d, last: 5d10h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in blkdev_get_by_dev / blkdev_put

write to 0xffff888101bb2128 of 4 bytes by task 2307 on cpu 0:
 blkdev_get_by_dev+0x88b/0x9e0
 blkdev_open+0xac/0x140 block/fops.c:498
 do_dentry_open+0x519/0x830 fs/open.c:824
 vfs_open+0x43/0x50 fs/open.c:958
 do_open fs/namei.c:3476 [inline]
 path_openat+0x16cf/0x1b30 fs/namei.c:3609
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 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+0x44/0xae

read to 0xffff888101bb2128 of 4 bytes by task 1847 on cpu 1:
 blkdev_put+0x3b/0x440 block/bdev.c:902
 blkdev_close+0x32/0x40 block/fops.c:512
 __fput+0x292/0x510 fs/file_table.c:317
 ____fput+0x11/0x20 fs/file_table.c:350
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1847 Comm: syz-executor.5 Not tainted 5.18.0-rc7-syzkaller-00185-g978df3e15846-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (186):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/22 23:59 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/21 00:36 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/20 06:27 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/16 06:40 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/14 01:57 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/13 14:07 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/11 17:19 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/09 15:59 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/09 09:02 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/08 11:59 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/07 22:40 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/04 13:05 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/05/01 04:39 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/27 13:22 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/25 19:58 upstream af2d861d4cd2 152baedd .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/25 07:26 upstream 42740a2ff5d3 131df97d .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/24 16:36 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/22 13:26 upstream 59f0c2447e25 2738b391 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/20 05:41 upstream 559089e0a93d 7d7bc738 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/18 12:13 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/12 04:54 upstream ce522ba9ef7e af01ee7d .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/10 21:08 upstream 1862a69c9174 e22c3da3 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/09 19:10 upstream f1b45d8ccb98 e22c3da3 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/07 17:06 upstream 3e732ebf7316 53c67432 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/05 19:45 upstream ce4c854ee868 0127c10f .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/04/03 15:53 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/30 14:06 upstream d888c83fcec7 42718dd6 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/30 01:20 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/27 05:49 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/25 17:54 upstream 34af78c4e616 89bc8608 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/25 09:23 upstream 52deda9551a0 89bc8608 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/23 06:54 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/19 05:17 upstream 34e047aa16c0 e2d91b1d .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/16 02:27 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/13 21:01 upstream f0e18b03fcaf 9e8eaa75 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/11 03:17 upstream 1db333d9a51f 9e8eaa75 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/10 10:05 upstream 3bf7edc84a9e 9e8eaa75 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/04 19:12 upstream 38f80f42147f 45a13a73 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/03 22:41 upstream 5859a2b19911 45a13a73 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/02 17:07 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/03/02 07:29 upstream 575115360652 45a13a73 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/02/28 20:35 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/02/25 10:07 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/02/23 22:21 upstream 5c1ee569660d 6e821dbf .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/02/22 17:06 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/02/16 23:02 upstream 359303076163 50221962 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2022/02/16 01:44 upstream 705d84a366cf 8b9ca619 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2021/10/10 02:57 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2021/10/07 20:05 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put
ci2-upstream-kcsan-gce 2021/08/31 16:50 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in blkdev_get_by_dev / blkdev_put