syzbot


KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn (4)

Status: auto-closed as invalid on 2022/08/13 14:33
Subsystems: mm
[Documentation on labels]
First crash: 652d, last: 600d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn (3) mm 1 747d 747d 0/26 auto-closed as invalid on 2022/03/19 14:36
upstream KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn (2) mm 2 831d 839d 0/26 auto-closed as invalid on 2021/12/25 22:36
upstream KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn mm 1 944d 944d 0/26 auto-closed as invalid on 2021/09/03 07:09

Sample crash report:
EXT4-fs (loop3): unmounting filesystem.
==================================================================
BUG: KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn

write to 0xffff888237c279e8 of 1 bytes by task 1828 on cpu 0:
 pagevec_reinit include/linux/pagevec.h:57 [inline]
 pagevec_lru_move_fn+0x4d6/0x500 mm/swap.c:214
 lru_add_drain_cpu+0x155/0x260 mm/swap.c:616
 lru_add_drain+0x21/0x60 mm/swap.c:706
 __pagevec_release+0x3a/0x70 mm/swap.c:997
 pagevec_release include/linux/pagevec.h:82 [inline]
 folio_batch_release include/linux/pagevec.h:146 [inline]
 invalidate_mapping_pagevec+0x53f/0x5d0 mm/truncate.c:543
 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 0xffff888237c279e8 of 1 bytes by task 1830 on cpu 1:
 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: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1830 Comm: syz-executor.3 Not tainted 5.19.0-rc5-syzkaller-00228-ge5524c2a1fc4-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.
EXT4-fs (loop3): unmounting filesystem.

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/09 14:26 upstream e5524c2a1fc4 b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn
2022/06/08 02:29 upstream 9886142c7a22 b2706118 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn
2022/05/18 21:05 upstream ef1302160bfb 50c53f39 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __lru_add_drain_all / pagevec_lru_move_fn
* Struck through repros no longer work on HEAD.