syzbot


KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio

Status: auto-closed as invalid on 2022/08/15 13:18
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 147d, last: 147d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio

read-write to 0xffff888237d279e8 of 1 bytes by task 1861 on cpu 1:
 pagevec_add include/linux/pagevec.h:75 [inline]
 pagevec_add_and_need_flush mm/swap.c:234 [inline]
 deactivate_file_folio+0x82/0x1a0 mm/swap.c:654
 invalidate_mapping_pagevec+0x490/0x5d0 mm/truncate.c:535
 invalidate_mapping_pages+0x23/0x30 mm/truncate.c:567
 invalidate_bdev+0x67/0x80 block/bdev.c:88
 ext4_put_super+0x510/0x810 fs/ext4/super.c:1279
 generic_shutdown_super+0xd5/0x240 fs/super.c:462
 kill_block_super+0x4a/0x90 fs/super.c:1394
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1186
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 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+0x46/0xb0

read to 0xffff888237d279e8 of 1 bytes by task 1825 on cpu 0:
 pagevec_count include/linux/pagevec.h:62 [inline]
 __lru_add_drain_all+0x196/0x3e0 mm/swap.c:828
 lru_add_drain_all+0xc/0x10 mm/swap.c:849
 invalidate_bdev+0x56/0x80 block/bdev.c:87
 ext4_put_super+0x510/0x810 fs/ext4/super.c:1279
 generic_shutdown_super+0xd5/0x240 fs/super.c:462
 kill_block_super+0x4a/0x90 fs/super.c:1394
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1186
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 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+0x46/0xb0

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1825 Comm: syz-executor.2 Not tainted 5.19.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/11 13:10 upstream 32346491ddf2 f3f217ff .config log report info KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio
* Struck through repros no longer work on HEAD.