Hello,
syzbot found the following issue on:
HEAD commit: 27895588a299 BACKPORT: f2fs: compress: fix inconsistent up..
git tree: android14-6.1
console+strace:
https://syzkaller.appspot.com/x/log.txt?x=177a19e4580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=686f10664ad3cd36
dashboard link:
https://syzkaller.appspot.com/bug?extid=4779ad89e68887151620
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=1560884c580000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=10fa19e4580000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/ae4996792edb/disk-27895588.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/1ebb43cb3bf4/vmlinux-27895588.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/0c1955ddbc46/bzImage-27895588.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+4779ad...@syzkaller.appspotmail.com
------------[ cut here ]------------
kernel BUG at mm/memory.c:4062!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 299 Comm: syz-executor184 Not tainted 6.1.128-syzkaller-00010-g27895588a299 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:do_swap_page+0x17cd/0x1ea0 mm/memory.c:4062
Code: 48 8b 74 24 10 48 8d 94 24 20 01 00 00 48 8b 4c 24 20 4c 8b 44 24 50 e8 61 6f 32 02 eb 24 e8 1a 56 c4 ff 0f 0b e8 13 56 c4 ff <0f> 0b e8 0c 56 c4 ff e9 4b f7 ff ff e8 02 56 c4 ff eb 38 e8 fb 55
RSP: 0018:ffffc90000de7780 EFLAGS: 00010293
RAX: ffffffff81b13ecd RBX: 0000000000020000 RCX: ffff888110e10000
RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000000000
RBP: ffffc90000de7910 R08: ffffffff81b13212 R09: fffff9400092efe9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000de7a80
R13: dffffc0000000000 R14: ffffea0004977f40 R15: 50000000000a0415
FS: 000055556899d380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c8070f0d0 CR3: 00000001238cb000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
handle_pte_fault mm/memory.c:5161 [inline]
__handle_mm_fault mm/memory.c:5299 [inline]
handle_mm_fault+0x1b32/0x30e0 mm/memory.c:5439
faultin_page mm/gup.c:1009 [inline]
__get_user_pages+0x377/0xf20 mm/gup.c:1233
populate_vma_page_range mm/gup.c:1590 [inline]
__mm_populate+0x375/0x570 mm/gup.c:1704
do_mlock+0x57a/0x680 mm/mlock.c:611
__do_sys_mlock mm/mlock.c:619 [inline]
__se_sys_mlock mm/mlock.c:617 [inline]
__x64_sys_mlock+0x60/0x70 mm/mlock.c:617
x64_sys_call+0x434/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:150
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f8c8069e769
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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:00007fff371adee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 0000400000000000 RCX: 00007f8c8069e769
RDX: 00007f8c8069e769 RSI: 0000000000800000 RDI: 0000400000000000
RBP: 00007f8c806e0162 R08: 0000000000000140 R09: 0000000000000140
R10: 0000000000000140 R11: 0000000000000246 R12: 00007f8c806e5c7c
R13: 00007f8c806e00ca R14: 0000000000000001 R15: 0000000000000001
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:do_swap_page+0x17cd/0x1ea0 mm/memory.c:4062
Code: 48 8b 74 24 10 48 8d 94 24 20 01 00 00 48 8b 4c 24 20 4c 8b 44 24 50 e8 61 6f 32 02 eb 24 e8 1a 56 c4 ff 0f 0b e8 13 56 c4 ff <0f> 0b e8 0c 56 c4 ff e9 4b f7 ff ff e8 02 56 c4 ff eb 38 e8 fb 55
RSP: 0018:ffffc90000de7780 EFLAGS: 00010293
RAX: ffffffff81b13ecd RBX: 0000000000020000 RCX: ffff888110e10000
RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000000000
RBP: ffffc90000de7910 R08: ffffffff81b13212 R09: fffff9400092efe9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000de7a80
R13: dffffc0000000000 R14: ffffea0004977f40 R15: 50000000000a0415
FS: 000055556899d380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c8070f0d0 CR3: 00000001238cb000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup