syzbot


kernel BUG in folio_unlock

Status: auto-obsoleted due to no activity on 2023/06/22 15:13
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+1b2ce6d050776f4403cf@syzkaller.appspotmail.com
First crash: 358d, last: 358d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in folio_unlock 1 (2) 2023/04/27 20:57
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in __filemap_get_folio kernel C done 814 556d 726d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
 faultin_page mm/gup.c:925 [inline]
 __get_user_pages+0x614/0x10e0 mm/gup.c:1147
 populate_vma_page_range+0x2df/0x420 mm/gup.c:1543
 __mm_populate+0x105/0x3b0 mm/gup.c:1652
 mm_populate include/linux/mm.h:3191 [inline]
 vm_mmap_pgoff+0x2c6/0x3b0 mm/util.c:548
 ksys_mmap_pgoff+0x7d/0x5a0 mm/mmap.c:1440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
------------[ cut here ]------------
kernel BUG at mm/filemap.c:1529!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7377 Comm: syz-executor.1 Not tainted 6.3.0-rc7-next-20230421-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:folio_unlock+0xb2/0xd0 mm/filemap.c:1529
Code: e8 63 4b d4 ff 48 89 ef 31 f6 e8 f9 fc ff ff 5b 5d e9 52 4b d4 ff e8 4d 4b d4 ff 48 c7 c6 c0 a7 56 8a 48 89 ef e8 ee e0 0f 00 <0f> 0b 48 89 df e8 74 2a 27 00 e9 7c ff ff ff 66 66 2e 0f 1f 84 00
RSP: 0018:ffffc9001531f7a8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88803c570000 RSI: ffffffff81af9a12 RDI: 0000000000000000
RBP: ffffea0002128000 R08: 0000000000000001 R09: ffffffff8e796e17
R10: fffffbfff1cf2dc2 R11: 0000000000000000 R12: ffffc9001531f8d8
R13: ffffc9001531f8d0 R14: ffffc9001531f8d8 R15: 000000000000001e
FS:  00007fe54afbc700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff0bb831b8 CR3: 0000000023ba2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 collapse_file+0x1f6d/0x5db0 mm/khugepaged.c:2316
 hpage_collapse_scan_file+0xbef/0x1550 mm/khugepaged.c:2415
 madvise_collapse+0x53b/0xca0 mm/khugepaged.c:2877
 madvise_vma_behavior+0x649/0x20a0 mm/madvise.c:1074
 madvise_walk_vmas+0x1c7/0x2b0 mm/madvise.c:1248
 do_madvise.part.0+0x287/0x5e0 mm/madvise.c:1428
 do_madvise mm/madvise.c:1441 [inline]
 __do_sys_madvise mm/madvise.c:1441 [inline]
 __se_sys_madvise mm/madvise.c:1439 [inline]
 __x64_sys_madvise+0x117/0x150 mm/madvise.c:1439
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe54c48c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe54afbc168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fe54c5ac120 RCX: 00007fe54c48c169
RDX: 0000000000000019 RSI: 000000000060005f RDI: 0000000020000000
RBP: 00007fe54c4e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff8070a1ff R14: 00007fe54afbc300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_unlock+0xb2/0xd0 mm/filemap.c:1529
Code: e8 63 4b d4 ff 48 89 ef 31 f6 e8 f9 fc ff ff 5b 5d e9 52 4b d4 ff e8 4d 4b d4 ff 48 c7 c6 c0 a7 56 8a 48 89 ef e8 ee e0 0f 00 <0f> 0b 48 89 df e8 74 2a 27 00 e9 7c ff ff ff 66 66 2e 0f 1f 84 00
RSP: 0018:ffffc9001531f7a8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88803c570000 RSI: ffffffff81af9a12 RDI: 0000000000000000
RBP: ffffea0002128000 R08: 0000000000000001 R09: ffffffff8e796e17
R10: fffffbfff1cf2dc2 R11: 0000000000000000 R12: ffffc9001531f8d8
R13: ffffc9001531f8d0 R14: ffffc9001531f8d8 R15: 000000000000001e
FS:  00007fe54afbc700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd2aa586058 CR3: 0000000023ba2000 CR4: 00000000003506e0
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
2023/04/23 15:13 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in folio_unlock
* Struck through repros no longer work on HEAD.