syzbot


kernel BUG in rmap_walk_file

Status: auto-closed as invalid on 2022/01/28 16:17
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+f38817d1b5a023cba3ae@syzkaller.appspotmail.com
First crash: 995d, last: 902d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in rmap_walk_file 1 1129d 1129d 0/1 auto-closed as invalid on 2021/07/15 10:56
upstream kernel BUG in hugepage_add_anon_rmap mm 2 784d 780d 22/26 fixed on 2023/02/24 13:50
linux-4.19 kernel BUG in do_page_add_anon_rmap 1 1046d 1046d 0/1 auto-closed as invalid on 2021/10/06 19:06

Sample crash report:
vma ffff88800016a528 start 0000000000000000 end 0000000000000000
next 0000000000000000 prev 0000000000000000 mm 0000000000000000
prot 0 anon_vma 0000000000000000 vm_ops 0000000000000000
pgoff 0 file 0000000000000000 private_data 0000000000000000
flags: 0x0()
------------[ cut here ]------------
kernel BUG at mm/rmap.c:2346!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10149 Comm: kworker/u4:9 Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
RIP: 0010:rmap_walk_file+0x5ca/0x610 mm/rmap.c:2346
Code: 29 e8 48 c1 f8 06 48 89 44 24 10 4c 8b 74 24 20 e9 0e fc ff ff 49 ff ce 4c 89 f5 eb b7 e8 5e 56 c1 ff 4c 89 f7 e8 56 cf f8 ff <0f> 0b e8 4f 56 c1 ff 4c 89 e7 48 c7 c6 40 fc 5b 8a e8 80 be f8 ff
RSP: 0018:ffffc900048ae998 EFLAGS: 00010296
RAX: 0000000000000102 RBX: ffffffff81c1c030 RCX: 1416b6bd55096600
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900048aea58 R08: ffffffff81695fe2 R09: ffffed10173857a8
R10: ffffed10173857a8 R11: 0000000000000000 R12: fffffffffffffff2
R13: ffffc900048aea60 R14: ffff88800016a528 R15: ffffc900048aea70
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2f68bab3a4 CR3: 000000014c782000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rmap_walk mm/rmap.c:2370 [inline]
 page_mkclean+0x32c/0x460 mm/rmap.c:1003
 clear_page_dirty_for_io+0x392/0x960 mm/page-writeback.c:2727
 mpage_submit_page fs/ext4/inode.c:2078 [inline]
 mpage_process_page_bufs+0x7cf/0xae0 fs/ext4/inode.c:2212
 mpage_prepare_extent_to_map+0xa4e/0xe90 fs/ext4/inode.c:2624
 ext4_writepages+0xc2d/0x4080 fs/ext4/inode.c:2752
 do_writepages+0x49d/0x760 mm/page-writeback.c:2364
 __writeback_single_inode+0xd4/0x590 fs/fs-writeback.c:1616
 writeback_sb_inodes+0xd29/0x29e0 fs/fs-writeback.c:1881
 __writeback_inodes_wb fs/fs-writeback.c:1950 [inline]
 wb_writeback+0x515/0x9b0 fs/fs-writeback.c:2055
 wb_check_old_data_flush fs/fs-writeback.c:2155 [inline]
 wb_do_writeback fs/fs-writeback.c:2208 [inline]
 wb_workfn+0xad5/0x1430 fs/fs-writeback.c:2237
 process_one_work+0x853/0x1140 kernel/workqueue.c:2297
 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444
 kthread+0x453/0x480 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30
Modules linked in:
---[ end trace d653113985634ee8 ]---
RIP: 0010:rmap_walk_file+0x5ca/0x610 mm/rmap.c:2346
Code: 29 e8 48 c1 f8 06 48 89 44 24 10 4c 8b 74 24 20 e9 0e fc ff ff 49 ff ce 4c 89 f5 eb b7 e8 5e 56 c1 ff 4c 89 f7 e8 56 cf f8 ff <0f> 0b e8 4f 56 c1 ff 4c 89 e7 48 c7 c6 40 fc 5b 8a e8 80 be f8 ff
RSP: 0018:ffffc900048ae998 EFLAGS: 00010296
RAX: 0000000000000102 RBX: ffffffff81c1c030 RCX: 1416b6bd55096600
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900048aea58 R08: ffffffff81695fe2 R09: ffffed10173857a8
R10: ffffed10173857a8 R11: 0000000000000000 R12: fffffffffffffff2
R13: ffffc900048aea60 R14: ffff88800016a528 R15: ffffc900048aea70
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff1eb4803a4 CR3: 000000008169c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/30 16:17 upstream f25a5481af12 098b5d53 .config console log report info ci-upstream-kasan-gce-smack-root kernel BUG in rmap_walk_file
2021/08/04 05:42 upstream d5ad8ec3cfb5 6c236867 .config console log report info ci-upstream-kasan-gce-root kernel BUG in rmap_walk_file
2021/07/29 09:20 upstream 4010a528219e 9a4781d4 .config console log report info ci-upstream-kasan-gce kernel BUG in rmap_walk_file
* Struck through repros no longer work on HEAD.