syzbot


kernel BUG in do_page_add_anon_rmap

Status: auto-closed as invalid on 2021/10/06 19:06
Reported-by: syzbot+e0d9c032c01721a1ce1c@syzkaller.appspotmail.com
First crash: 1101d, last: 1101d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in rmap_walk_file mm 3 957d 1046d 0/28 auto-closed as invalid on 2022/01/28 16:17
upstream kernel BUG in hugepage_add_anon_rmap mm 2 839d 835d 22/28 fixed on 2023/02/24 13:50

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/rmap.c:1070!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1575 Comm: khugepaged Not tainted 4.19.193-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__page_check_anon_rmap mm/rmap.c:1070 [inline]
RIP: 0010:do_page_add_anon_rmap+0x95f/0xbd0 mm/rmap.c:1136
Code: c6 60 d4 72 88 48 89 ef e8 3e 08 fa ff 0f 0b e8 87 7f d2 ff 48 c7 c6 20 d0 72 88 48 89 ef e8 28 08 fa ff 0f 0b e8 71 7f d2 ff <0f> 0b e8 6a 7f d2 ff 4c 89 ee 4c 89 e7 e8 ff fe 03 00 49 89 c5 e9
RSP: 0018:ffff8880b2e37388 EFLAGS: 00010293
RAX: ffff8880b285e280 RBX: ffff8880001063a0 RCX: 1ffff11014661964
RDX: 0000000000000000 RSI: ffffffff818ff9bf RDI: ffff88804f2639d0
RBP: ffffea00026b4ac0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000007 R11: 0000000000000000 R12: ffff88804f263948
R13: 00000000016d0000 R14: ffffea00026b4ac8 R15: ffff8880aa4c8000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556cf47692e8 CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 remove_migration_pte+0x96a/0xff0 mm/migrate.c:269
 rmap_walk_anon+0x435/0xb90 mm/rmap.c:1833
 rmap_walk+0x124/0x190 mm/rmap.c:1903
 remove_migration_ptes mm/migrate.c:300 [inline]
 __unmap_and_move mm/migrate.c:1111 [inline]
 unmap_and_move mm/migrate.c:1189 [inline]
 migrate_pages+0xe3d/0x2fe0 mm/migrate.c:1419
 compact_zone+0x15b2/0x2900 mm/compaction.c:1624
 compact_zone_order+0x107/0x180 mm/compaction.c:1730
 try_to_compact_pages+0x687/0x970 mm/compaction.c:1779
 __alloc_pages_direct_compact+0xba/0x350 mm/page_alloc.c:3589
 __alloc_pages_slowpath mm/page_alloc.c:4145 [inline]
 __alloc_pages_nodemask+0x8fb/0x2890 mm/page_alloc.c:4419
 __alloc_pages include/linux/gfp.h:496 [inline]
 __alloc_pages_node include/linux/gfp.h:509 [inline]
 khugepaged_alloc_page+0x8a/0x180 mm/khugepaged.c:776
 collapse_huge_page mm/khugepaged.c:978 [inline]
 khugepaged_scan_pmd mm/khugepaged.c:1231 [inline]
 khugepaged_scan_mm_slot mm/khugepaged.c:1773 [inline]
 khugepaged_do_scan mm/khugepaged.c:1854 [inline]
 khugepaged+0x2b3f/0x4930 mm/khugepaged.c:1899
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 1af2dafb46a6e9c7 ]---
RIP: 0010:__page_check_anon_rmap mm/rmap.c:1070 [inline]
RIP: 0010:do_page_add_anon_rmap+0x95f/0xbd0 mm/rmap.c:1136
Code: c6 60 d4 72 88 48 89 ef e8 3e 08 fa ff 0f 0b e8 87 7f d2 ff 48 c7 c6 20 d0 72 88 48 89 ef e8 28 08 fa ff 0f 0b e8 71 7f d2 ff <0f> 0b e8 6a 7f d2 ff 4c 89 ee 4c 89 e7 e8 ff fe 03 00 49 89 c5 e9
RSP: 0018:ffff8880b2e37388 EFLAGS: 00010293
RAX: ffff8880b285e280 RBX: ffff8880001063a0 RCX: 1ffff11014661964
RDX: 0000000000000000 RSI: ffffffff818ff9bf RDI: ffff88804f2639d0
RBP: ffffea00026b4ac0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000007 R11: 0000000000000000 R12: ffff88804f263948
R13: 00000000016d0000 R14: ffffea00026b4ac8 R15: ffff8880aa4c8000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556cf47692e8 CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/08 19:06 linux-4.19.y 1722257b8ece 5c2fe346 .config console log report info ci2-linux-4-19 kernel BUG in do_page_add_anon_rmap
* Struck through repros no longer work on HEAD.