syzbot


KCSAN: data-race in shmem_getattr / shmem_getpage_gfp (2)

Status: auto-closed as invalid on 2021/06/03 02:49
Subsystems: mm
[Documentation on labels]
First crash: 1083d, last: 1083d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shmem_getattr / shmem_getpage_gfp (6) mm 2 783d 790d 0/26 auto-closed as invalid on 2022/03/29 04:30
upstream KCSAN: data-race in shmem_getattr / shmem_getpage_gfp mm 1 1585d 1585d 0/26 auto-closed as invalid on 2020/02/21 18:37
upstream KCSAN: data-race in shmem_getattr / shmem_getpage_gfp (5) mm 2 832d 842d 0/26 auto-closed as invalid on 2022/02/08 18:20
upstream KCSAN: data-race in shmem_getattr / shmem_getpage_gfp (4) mm 1 885d 885d 0/26 auto-closed as invalid on 2021/12/17 11:16
upstream KCSAN: data-race in shmem_getattr / shmem_getpage_gfp (3) mm 3 962d 999d 0/26 auto-closed as invalid on 2021/10/01 07:46

Sample crash report:
loop5: detected capacity change from 0 to 180
==================================================================
BUG: KCSAN: data-race in shmem_getattr / shmem_getpage_gfp

write to 0xffff888120cf92b8 of 8 bytes by task 1817 on cpu 1:
 shmem_getpage_gfp+0xf80/0x1410 mm/shmem.c:1937
 shmem_getpage mm/shmem.c:155 [inline]
 shmem_file_read_iter+0x1a2/0x5c0 mm/shmem.c:2607
 call_read_iter include/linux/fs.h:2110 [inline]
 do_iter_readv_writev+0x2e8/0x360 fs/read_write.c:738
 do_iter_read+0x109/0x4b0 fs/read_write.c:801
 vfs_iter_read+0x4c/0x70 fs/read_write.c:843
 lo_read_simple drivers/block/loop.c:360 [inline]
 do_req_filebacked drivers/block/loop.c:636 [inline]
 loop_handle_cmd drivers/block/loop.c:2045 [inline]
 loop_queue_work+0xdfb/0x1330 drivers/block/loop.c:2063
 kthread_worker_fn+0x280/0x4d0 kernel/kthread.c:735
 loop_kthread_worker_fn+0x3e/0x50 drivers/block/loop.c:932
 kthread+0x1d0/0x1f0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff888120cf92b8 of 8 bytes by task 1792 on cpu 0:
 shmem_getattr+0x41/0x250 mm/shmem.c:1043
 vfs_getattr_nosec+0x141/0x2e0 fs/stat.c:97
 vfs_getattr+0x4d/0x60 fs/stat.c:134
 loop_get_status+0x23e/0x310 drivers/block/loop.c:1457
 loop_get_status64 drivers/block/loop.c:1565 [inline]
 lo_ioctl+0x1af/0x11f0 drivers/block/loop.c:1710
 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585
 block_ioctl+0x6d/0x80 fs/block_dev.c:1671
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:1069 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1792 Comm: syz-executor.5 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/29 02:40 upstream 68a32ba14177 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_getattr / shmem_getpage_gfp
* Struck through repros no longer work on HEAD.