general protection fault in mremap
Subsystems (2)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xz
The issue was bisected to:
commit d5c8aec0542e2d79b64de9089b88fabdebe05c1e
Author: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000
mm/mremap: initial refactor of move_vma()
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W
---
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 [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection
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
#syz test
mm/mremap.c +2 -1
@@ -1561,11 +1561,12 @@ static unsigned long expand_vma_in_place(struct vma_remap_struct *vrm)* adjacent to the expanded vma and otherwise * compatible. */ - vma = vrm->vma =vma_merge_extend (&vmi, vma, vrm->delta); + vma =vma_merge_extend (&vmi, vma, vrm->delta);if (!vma) {vrm_uncharge (vrm);return -ENOMEM ; } + vrm->vma = vma;vrm_stat_account (vrm, vrm->delta);
syzbot
syzbotsyzbot tried to test the proposed patch but the build/boot failed:
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
patch is already applied
Tested on:
commit: f4d2ef48 Merge tag 'kbuild-v6.15' of git://git.kernel... git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc
compiler:
patch: https://syzkaller.appspot.com/x/patch.diff?x=1529dd98580000
Quoted 5 lines · syzbot
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
patch is already applied
Not at the commit you reported on syzbot...!
Thanks for trying Edward, but I guess maybe would have been better to just point it at the fix commit, though having said that, I tried this last time and the bot couldn't find a working setup after I think 2 attempts, so I checked _manually_ and confirmed fixed, see [0].
[0]: https://lore.kernel.org/all/[email protected]/
So no need to further test. If we get a report post-the-fix after all this even with my manual checking then we can deal with it. But we won't, because this is resolved.
Thanks!
Quoted 11 lines
Tested on:
commit: f4d2ef48 Merge tag 'kbuild-v6.15' of git://git.kernel... git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cccompiler:
patch: https://syzkaller.appspot.com/x/patch.diff?x=1529dd98580000
I did actually try to mark this fixed, but apparently syz fix doesn't work or doesn't prevent other syzbots from duplicating reports.
Anyway, this is fixed in commit 36eed5400805 ("mm/mremap: do not set vrm->vma NULL immediately prior to checking it"), was fixed a long time ago, as soon as reported, and it's been a matter of waiting for this to land in Linus's tree.
This is now fixed, upstream, and this report is - as a result - redundant.
Thanks, Lorenzo
Quoted 146 lines · syzbot
Hello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xzThe issue was bisected to:
commit
d5c8aec0542e2d79b64de9089b88fabdebe05c1eAuthor: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000mm/mremap: initial refactor of
move_vma()bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]Fixes d5c8aec0542e ("mm/mremap: initial refactor of move_vma()")Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisectionIf the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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-reportIf you want to undo deduplication, reply with:
#syz undup
Hi Lorenzo,
Thanks for looking at the report!
Quoted 3 lines · Lorenzo Stoakes' via syzkaller-bugs
I did actually try to mark this fixed, but apparently syz fix doesn't work or doesn't prevent other syzbots from duplicating reports.
This part is not very clear - why would #syz fix: title not work well here?
Quoted 9 lines
Anyway, this is fixed in commit
36eed5400805("mm/mremap: do not setvrm->vmaNULL immediately prior to checking it"), was fixed a long time ago, as soon as reported, and it's been a matter of waiting for this to land in Linus's tree.This is now fixed, upstream, and this report is - as a result - redundant.
Thanks, Lorenzo
Signature · 1 line
Aleksandr
Quoted 150 lines · syzbot
Quoted 141 lines
Hello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xzThe issue was bisected to:
commit
d5c8aec0542e2d79b64de9089b88fabdebe05c1eAuthor: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000mm/mremap: initial refactor of
move_vma()bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]Fixes d5c8aec0542e ("mm/mremap: initial refactor of move_vma()")Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisectionIf the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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)Quoted 5 lines
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-reportIf you want to undo deduplication, reply with:
#syz undup--
Quoted 11 lines · Aleksandr Nogikh
Hi Lorenzo,
Thanks for looking at the report!
Quoted 3 lines · Lorenzo Stoakes' via syzkaller-bugs
I did actually try to mark this fixed, but apparently syz fix doesn't work or doesn't prevent other syzbots from duplicating reports.
This part is not very clear - why would #syz fix: title not work well here?
Sorry for not being clear. What I mean is that I already did this on another thread with the same, duplicate, report - and then received this one afterwards.
This suggests to me that this does nothing, or does nothing useful at least if other bots will just keep on reporting the same thing.
I appreciate that recognising that it is the same issue might not be trivial, but obviously it's not a hugely great use of my time to repeatedly chase this stuff up when the fix is already upstream and I've already -manually- confirmed it works.
My patience with it was somewhat eroded from my experience of telling syzbot in the previous thread [0] to re-test, twice, and it failing to do so due to broken presumably VM images, leading to me having to manually test the same fix I already tested and fixed a while ago etc. etc.
[0]: https://lore.kernel.org/all/[email protected]/
We do very much appreciate syzbot reports, don't get me wrong here, but I do also have to partition my time somewhat :)
So I'm afraid I can't promise to always do syz fix updates on this basis.
Cheers, Lorenzo
Quoted 165 lines
Quoted 10 lines
Anyway, this is fixed in commit
36eed5400805("mm/mremap: do not setvrm->vmaNULL immediately prior to checking it"), was fixed a long time ago, as soon as reported, and it's been a matter of waiting for this to land in Linus's tree.This is now fixed, upstream, and this report is - as a result - redundant.
Thanks, Lorenzo
--
AleksandrQuoted 150 lines · syzbot
Quoted 141 lines
Hello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xzThe issue was bisected to:
commit
d5c8aec0542e2d79b64de9089b88fabdebe05c1eAuthor: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000mm/mremap: initial refactor of
move_vma()bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]Fixes d5c8aec0542e ("mm/mremap: initial refactor of move_vma()")Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisectionIf the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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)Quoted 5 lines
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-reportIf you want to undo deduplication, reply with:
#syz undup--
Quoted 12 lines · Lorenzo Stoakes
Quoted 10 lines · Aleksandr Nogikh
Hi Lorenzo,
Thanks for looking at the report!
Quoted 3 lines · Lorenzo Stoakes' via syzkaller-bugs
I did actually try to mark this fixed, but apparently syz fix doesn't work or doesn't prevent other syzbots from duplicating reports.
Quoted 8 lines
Quoted 1 line
This part is not very clear - why would #syz fix: title not work well here?
Sorry for not being clear. What I mean is that I already did this on another thread with the same, duplicate, report - and then received this one afterwards.
This suggests to me that this does nothing, or does nothing useful at least if other bots will just keep on reporting the same thing.
When syzbot receives the #syz fix command, it keeps the bug open until the fixing commit has reached all the kernel trees it fuzzes. After that, if the bug is seen again, it's reported as a separate issue with the (2) suffix, then (3), etc.
If the bug manifested itself with different crash titles, marking just one report as fixed won't affect others indeed - if syzbot knew they were related, it would not have reported them separately.
What was the other thread/bug in this case? Maybe we could adjust our kernel crash log parsing rules to prevent similar duplicates.
Quoted 6 lines
I appreciate that recognising that it is the same issue might not be trivial, but obviously it's not a hugely great use of my time to repeatedly chase this stuff up when the fix is already upstream and I've already -manually- confirmed it works.
Quoted 6 lines
My patience with it was somewhat eroded from my experience of telling syzbot in the previous thread [0] to re-test, twice, and it failing to do so due to broken presumably VM images, leading to me having to manually test the same fix I already tested and fixed a while ago etc. etc.
FWIW the "unregister_netdevice: waiting for batadv0 to become free. Usage count = 3" bug is discussed here:
https://lore.kernel.org/all/CANp29Y5RjJD3FK8zciRL92f0+tXEaZ=DbzSF3JrnVRGyDmag2A@mail.gmail.com/t/#u
This is an actual bug in v6.15-rc1 that's plaguing Linux kernel fuzzing on syzbot at the moment.
Quoted 5 lines
We do very much appreciate syzbot reports, don't get me wrong here, but I do also have to partition my time somewhat :)
So I'm afraid I can't promise to always do syz fix updates on this basis.
Sure.
Also please feel free to ping us whenever syzbot's behavior is annoying you :)
Signature · 1 line
Aleksandr
Quoted 168 lines
Cheers, Lorenzo
Quoted 165 lines
Quoted 10 lines
Anyway, this is fixed in commit
36eed5400805("mm/mremap: do not setvrm->vmaNULL immediately prior to checking it"), was fixed a long time ago, as soon as reported, and it's been a matter of waiting for this to land in Linus's tree.This is now fixed, upstream, and this report is - as a result - redundant.
Thanks, Lorenzo
--
AleksandrQuoted 150 lines · syzbot
Quoted 141 lines
Hello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xzThe issue was bisected to:
commit
d5c8aec0542e2d79b64de9089b88fabdebe05c1eAuthor: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000mm/mremap: initial refactor of
move_vma()bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]Fixes d5c8aec0542e ("mm/mremap: initial refactor of move_vma()")Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisectionIf the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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)Quoted 5 lines
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-reportIf you want to undo deduplication, reply with:
#syz undup--
Quoted 23 lines · Aleksandr Nogikh
Quoted 12 lines · Lorenzo Stoakes
Quoted 10 lines · Aleksandr Nogikh
Hi Lorenzo,
Thanks for looking at the report!
Quoted 3 lines · Lorenzo Stoakes' via syzkaller-bugs
I did actually try to mark this fixed, but apparently syz fix doesn't work or doesn't prevent other syzbots from duplicating reports.
Quoted 8 lines
Quoted 1 line
This part is not very clear - why would #syz fix: title not work well here?
Sorry for not being clear. What I mean is that I already did this on another thread with the same, duplicate, report - and then received this one afterwards.
This suggests to me that this does nothing, or does nothing useful at least if other bots will just keep on reporting the same thing.
Quoted 8 lines
When syzbot receives the #syz fix command, it keeps the bug open until the fixing commit has reached all the kernel trees it fuzzes. After that, if the bug is seen again, it's reported as a separate issue with the (2) suffix, then (3), etc.
If the bug manifested itself with different crash titles, marking just one report as fixed won't affect others indeed - if syzbot knew they were related, it would not have reported them separately.
Yeah this is what I suspected. I mean you could take file/line, but then that'll vary at different merge commits potentially and it's clearly a non-trivial problem.
Quoted 3 lines
What was the other thread/bug in this case? Maybe we could adjust our kernel crash log parsing rules to prevent similar duplicates.
The [0] referenced below. But not sure how easy it'd be to recognise.
Quoted 14 lines
Quoted 7 lines
I appreciate that recognising that it is the same issue might not be trivial, but obviously it's not a hugely great use of my time to repeatedly chase this stuff up when the fix is already upstream and I've already -manually- confirmed it works.
Quoted 6 lines
My patience with it was somewhat eroded from my experience of telling syzbot in the previous thread [0] to re-test, twice, and it failing to do so due to broken presumably VM images, leading to me having to manually test the same fix I already tested and fixed a while ago etc. etc.
Quoted 7 lines
FWIW the "
unregister_netdevice: waiting for batadv0 to become free. Usage count = 3" bug is discussed here:https://lore.kernel.org/all/CANp29Y5RjJD3FK8zciRL92f0+tXEaZ=DbzSF3JrnVRGyDmag2A@mail.gmail.com/t/#u
This is an actual bug in v6.15-rc1 that's plaguing Linux kernel fuzzing on syzbot at the moment.
Ugh well in that case apologies, I assumed some VM setup issue :)
Quoted 10 lines
Quoted 6 lines
We do very much appreciate syzbot reports, don't get me wrong here, but I do also have to partition my time somewhat :)
So I'm afraid I can't promise to always do syz fix updates on this basis.
Sure.
Also please feel free to ping us whenever syzbot's behavior is annoying you :)
Cheers, you guys have always been responsive even when I grumble inanely :)
Though you might get quite a few emails :P
Mostly syzbot is really useful and has caught multiple very real things, but when it is noisy it can be pretty noisy :)
Hopefully we can help sort out tractable problems, I guess we have to accept a certain amount of noise though as a biproduct.
But sure, will raise issues moving forward also!
Cheers, Lorenzo
Quoted 172 lines
--
AleksandrQuoted 168 lines
Cheers, Lorenzo
Quoted 165 lines
Quoted 10 lines
Anyway, this is fixed in commit
36eed5400805("mm/mremap: do not setvrm->vmaNULL immediately prior to checking it"), was fixed a long time ago, as soon as reported, and it's been a matter of waiting for this to land in Linus's tree.This is now fixed, upstream, and this report is - as a result - redundant.
Thanks, Lorenzo
--
AleksandrQuoted 150 lines · syzbot
Quoted 141 lines
Hello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xzThe issue was bisected to:
commit
d5c8aec0542e2d79b64de9089b88fabdebe05c1eAuthor: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000mm/mremap: initial refactor of
move_vma()bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]Fixes d5c8aec0542e ("mm/mremap: initial refactor of move_vma()")Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisectionIf the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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)Quoted 5 lines
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-reportIf you want to undo deduplication, reply with:
#syz undup--
Quoted 39 lines · Lorenzo Stoakes
Quoted 23 lines · Aleksandr Nogikh
Quoted 12 lines · Lorenzo Stoakes
Quoted 10 lines · Aleksandr Nogikh
Hi Lorenzo,
Thanks for looking at the report!
Quoted 3 lines · Lorenzo Stoakes' via syzkaller-bugs
I did actually try to mark this fixed, but apparently syz fix doesn't work or doesn't prevent other syzbots from duplicating reports.
Quoted 8 lines
Quoted 1 line
This part is not very clear - why would #syz fix: title not work well here?
Sorry for not being clear. What I mean is that I already did this on another thread with the same, duplicate, report - and then received this one afterwards.
This suggests to me that this does nothing, or does nothing useful at least if other bots will just keep on reporting the same thing.
Quoted 8 lines
When syzbot receives the #syz fix command, it keeps the bug open until the fixing commit has reached all the kernel trees it fuzzes. After that, if the bug is seen again, it's reported as a separate issue with the (2) suffix, then (3), etc.
If the bug manifested itself with different crash titles, marking just one report as fixed won't affect others indeed - if syzbot knew they were related, it would not have reported them separately.
Yeah this is what I suspected. I mean you could take file/line, but then that'll vary at different merge commits potentially and it's clearly a non-trivial problem.
Quoted 1 line
Quoted 4 lines
Quoted 2 lines
What was the other thread/bug in this case? Maybe we could adjust our kernel crash log parsing rules to prevent similar duplicates.
The [0] referenced below. But not sure how easy it'd be to recognise.
Ah, right, it was already referenced in your email. Sorry, I didn't notice.
So I've taken a closer look at these two reports - it turns out that the essential difference is that one was found on syzbot's gcc-based instances and another was found on the clang-based ones. That leads to slightly different function names, which confused syzbot.
I've filed https://github.com/google/syzkaller/issues/5940 to discuss how to best address it.
Quoted 38 lines
Quoted 15 lines
Quoted 8 lines
I appreciate that recognising that it is the same issue might not be trivial, but obviously it's not a hugely great use of my time to repeatedly chase this stuff up when the fix is already upstream and I've already -manually- confirmed it works.
Quoted 6 lines
My patience with it was somewhat eroded from my experience of telling syzbot in the previous thread [0] to re-test, twice, and it failing to do so due to broken presumably VM images, leading to me having to manually test the same fix I already tested and fixed a while ago etc. etc.
Quoted 7 lines
FWIW the "
unregister_netdevice: waiting for batadv0 to become free. Usage count = 3" bug is discussed here:https://lore.kernel.org/all/CANp29Y5RjJD3FK8zciRL92f0+tXEaZ=DbzSF3JrnVRGyDmag2A@mail.gmail.com/t/#u
This is an actual bug in v6.15-rc1 that's plaguing Linux kernel fuzzing on syzbot at the moment.
Ugh well in that case apologies, I assumed some VM setup issue :)
Quoted 10 lines
Quoted 6 lines
We do very much appreciate syzbot reports, don't get me wrong here, but I do also have to partition my time somewhat :)
So I'm afraid I can't promise to always do syz fix updates on this basis.
Sure.
Also please feel free to ping us whenever syzbot's behavior is annoying you :)
Cheers, you guys have always been responsive even when I grumble inanely :)
Quoted 7 lines
Though you might get quite a few emails :P
Mostly syzbot is really useful and has caught multiple very real things, but when it is noisy it can be pretty noisy :)
Hopefully we can help sort out tractable problems, I guess we have to accept a certain amount of noise though as a biproduct.
Yes, we will unlikely ever reach 0% noise, but we could at least address the most repetitive problems.
Quoted 2 lines
But sure, will raise issues moving forward also!
Thanks!
Quoted 175 lines
Cheers, Lorenzo
Quoted 172 lines
--
AleksandrQuoted 168 lines
Cheers, Lorenzo
Quoted 165 lines
Quoted 10 lines
Anyway, this is fixed in commit
36eed5400805("mm/mremap: do not setvrm->vmaNULL immediately prior to checking it"), was fixed a long time ago, as soon as reported, and it's been a matter of waiting for this to land in Linus's tree.This is now fixed, upstream, and this report is - as a result - redundant.
Thanks, Lorenzo
--
AleksandrQuoted 150 lines · syzbot
Quoted 141 lines
Hello,
syzbot found the following issue on:
HEAD commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ab27cf980000 kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8ecd2318067e/disk-a2cc6ff5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/05691b82062c/vmlinux-a2cc6ff5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4698994e99d4/bzImage-a2cc6ff5.xzThe issue was bisected to:
commit
d5c8aec0542e2d79b64de9089b88fabdebe05c1eAuthor: Lorenzo Stoakes <[email protected]> Date: Mon Mar 10 20:50:37 2025 +0000mm/mremap: initial refactor of
move_vma()bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ff2a74580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13ff2a74580000 console output: https://syzkaller.appspot.com/x/log.txt?x=15ff2a74580000IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]Fixes d5c8aec0542e ("mm/mremap: initial refactor of move_vma()")Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5820 Comm: syz-executor115 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46ffb182e9 Code: 48 83 c4 28 c3 e8 17 1a 00 00 0f 1f 80 00 00 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:00007fff0b8738c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007fff0b8738d0 RCX: 00007f46ffb182e9 RDX: 0000000000003000 RSI: 0000000000001000 RDI: 0000200000ffc000 RBP: 0000000000000001 R08: 0000200000ffa000 R09: 00007f46ffb80031 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f46ffb83618 R13: 00007fff0b873aa8 R14: 0000000000000001 R15: 0000000000000001 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vrm_uncharge mm/mremap.c:964 [inline] RIP: 0010:expand_vma_in_place mm/mremap.c:1566 [inline] RIP: 0010:expand_vma mm/mremap.c:1621 [inline] RIP: 0010:mremap_at mm/mremap.c:1682 [inline] RIP: 0010:do_mremap mm/mremap.c:1727 [inline] RIP: 0010:__do_sys_mremap+0x1392/0x15c0 mm/mremap.c:1784 Code: 0f 85 45 02 00 00 48 8b 04 24 c6 84 24 70 01 00 00 01 48 01 85 68 02 00 00 eb 9a e8 18 34 af ff 48 b8 04 00 00 00 00 fc ff df <80> 38 00 0f 85 a7 01 00 00 48 8b 2c 25 20 00 00 00 31 ff 81 e5 00 RSP: 0018:ffffc900039dfd20 EFLAGS: 00010293 RAX: dffffc0000000004 RBX: ffff88802b765a00 RCX: ffffffff821183c6 RDX: ffff88805c7b8000 RSI: ffffffff820c0cb8 RDI: 0000000000000005 RBP: ffff8880341fb780 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: 0000000000002000 R13: 1ffff9200073bfaa R14: 0000200000ffc000 R15: ffff88802b765b70 FS: 00005555814db380(0000) GS:ffff8881249b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0b8728e0 CR3: 000000007802e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 83 c4 28 add $0x28,%rsp 4: c3 ret 5: e8 17 1a 00 00 call 0x1a21 a: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisectionIf the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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)Quoted 5 lines
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-reportIf you want to undo deduplication, reply with:
#syz undup--
syzbot
syzbotsyzbot suspects this issue was fixed by commit:
syzbot suspects this issue was fixed by commit:
commit 36eed5400805b294f1df39b0e3ebc5b7971b3c16
Author: Lorenzo Stoakes <[email protected]> Date: Sun Mar 30 16:20:48 2025 +0000
mm/mremap: do not set vrm->vma NULL immediately prior to checking it
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=118356f4580000 start commit: a2cc6ff5ec8f Merge tag 'firewire-updates-6.15' of git://gi.. git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=adffebefc9feb9d6 dashboard link: https://syzkaller.appspot.com/bug?extid=5250c4727db03e3436cc syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1693d404580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178ac94c580000
If the result looks correct, please mark the issue as fixed by replying with:
#syz fix: mm/mremap: do not set vrm->vma NULL immediately prior to checking it
For information about bisection process see: https://goo.gl/tpsmEJ#bisection