syzbot


KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio

Status: auto-closed as invalid on 2022/08/15 13:18
Subsystems: mm
[Documentation on labels]
First crash: 1088d, last: 1088d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio (3) mm 1 426d 426d 0/29 auto-obsoleted due to no activity on 2024/06/06 20:44
upstream KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio (2) mm 1 836d 836d 0/29 auto-obsoleted due to no activity on 2023/05/01 12:19

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/11 13:10 upstream 32346491ddf2 f3f217ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __lru_add_drain_all / deactivate_file_folio
* Struck through repros no longer work on HEAD.