From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f77.google.com (mail-oo1-f77.google.com [209.85.161.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5C7219CC0C for ; Thu, 19 Mar 2026 07:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773904835; cv=none; b=PlcbRSR8+3BrbGbM8LCySGJiQdLL7NERLnKOzA2N/cpjM9AAKzbVbzpwtPgdTzWAESqpMfI4Gtg/38ncyPJz+LKErportiiqNDkcwfXbt15ee5oSY6g7nz4MetpgaL0dtBhRVhQODr+34NGTVsSDy2DxXXWiJ+5h7sNPFeLfrZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773904835; c=relaxed/simple; bh=YKjjtME7rxF5k9RWhVGFqCXZSxcKd0GrxETeZpAb70A=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=ko41Cinj5QlQXVDioHRRP77LqrDwlF1M/ZsermiMLILRgfIMVQwxz8Br0EWe9OIa6N6E1s+OeKncjDGfVZHhgiSVbFDmIHgS0zzZ8+bRxYFveTbEmYFAct/jdd7Q8lwCAZL2htDDCw4U5O2S1C4380r3lCHsps+gYXmBCpueJ9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.161.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oo1-f77.google.com with SMTP id 006d021491bc7-67bf2b72878so6498669eaf.2 for ; Thu, 19 Mar 2026 00:20:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773904832; x=1774509632; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9aR0bqkLCoE8PHisrJQXhVoZ6+9vbPWrqpSwj++hyjA=; b=BL2jFgbBVSGKMdQcAEyDrGXWdxVZaZnaquaAUDZpb3E3d2yieMP6iAdS2fFKwQMImz myrghOUG8h69mmRj1dXbFckFKeA3ou24plGJBYudL88JRfHcjYYd+sGoESueuY90nlSU 6fx7ByVFwCUjeGTmh6kjJOHbJ7pwImXX10kToRfCOhxWk1y8Qk7CoLf648maNx0wUB72 mAB5wScMMMrSUuP58bpkSmwb9w9H6VktEpC/fQpHpkmzrK5ir2qeiGY6SbVZ+YUO85bJ Gtdq0SC/g/Cj8bhgB3RMJriipCgudYNMrsBG1Xd63+5uQQRPImiOnTOzpkoMuqv5CJDY RN0Q== X-Forwarded-Encrypted: i=1; AJvYcCX8FWN/GMR8qNzcIzH8MrpaF53CBUJPfBpXME0Kk2FGSByP7isXJsiPaUAIFzq7Sn62TebwcIQKLT3Hlaw=@vger.kernel.org X-Gm-Message-State: AOJu0YwRc5fO78OM+NeTCsv+7k7KZkDm1r4NybWntbkC6iqGMqcvXBve fwZZPcwkA+QZKmADqp5bonfTJ9JOWdEPC5Kobllgt/Gb5+7z+5yUUiOoQ4X5UEIs2wn06Ru9s+i s2l8uOVFRxVEx9qPOeYzUEV1QZQ3tAf8V4vii5/hOeQy4yVPV/JOxGZc/aXg= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:4d08:b0:67b:ba75:3e96 with SMTP id 006d021491bc7-67c0da958b8mr3876705eaf.7.1773904832592; Thu, 19 Mar 2026 00:20:32 -0700 (PDT) Date: Thu, 19 Mar 2026 00:20:32 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69bba3c0.050a0220.227207.002b.GAE@google.com> Subject: [syzbot] [mm?] kernel BUG in collapse_scan_file From: syzbot To: Liam.Howlett@oracle.com, akpm@linux-foundation.org, baohua@kernel.org, baolin.wang@linux.alibaba.com, david@kernel.org, dev.jain@arm.com, lance.yang@linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, ljs@kernel.org, npache@redhat.com, ryan.roberts@arm.com, syzkaller-bugs@googlegroups.com, ziy@nvidia.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 95c541ddfb08 Add linux-next specific files for 20260316 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=15ccc216580000 kernel config: https://syzkaller.appspot.com/x/.config?x=ed431987028345c6 dashboard link: https://syzkaller.appspot.com/bug?extid=8961cb270ae74b4129fb compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f778da580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12cc006a580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/c40f27ad73d8/disk-95c541dd.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/bd811888f684/vmlinux-95c541dd.xz kernel image: https://storage.googleapis.com/syzbot-assets/3b72363d7dbd/bzImage-95c541dd.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+8961cb270ae74b4129fb@syzkaller.appspotmail.com node ffff88805d558b00 offset 0 parent ffff88805d558840 shift 0 count 3 values 0 array ffff88807a8195c0 list ffff88805d558b18 ffff88805d558b18 marks 0 0 0 ------------[ cut here ]------------ kernel BUG at ./include/linux/xarray.h:1441! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 6001 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:XAS_INVALID include/linux/xarray.h:1441 [inline] RIP: 0010:collapse_file mm/khugepaged.c:2055 [inline] RIP: 0010:collapse_scan_file+0x4f98/0x5230 mm/khugepaged.c:2404 Code: ff 4c 89 e7 48 c7 c6 60 b2 dc 8b e8 82 62 f1 fe 90 0f 0b 48 85 db 0f 84 03 01 00 00 e8 71 e5 8f ff 48 89 df e8 a9 20 7b 09 90 <0f> 0b e8 61 e5 8f ff 48 89 df 48 c7 c6 60 b2 dc 8b e8 52 62 f1 fe RSP: 0018:ffffc90003826e20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88805d558b00 RCX: a13f20bd39c5a100 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003827130 R08: ffffc90003826ba7 R09: 1ffff92000704d74 R10: dffffc0000000000 R11: fffff52000704d75 R12: ffffea0001b678f0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc90003827010 FS: 000055557e3c2500(0000) GS:ffff888125437000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000b000 CR3: 000000007ac66000 CR4: 00000000003526f0 Call Trace: collapse_single_pmd+0x22b/0x4510 mm/khugepaged.c:2437 madvise_collapse+0x34c/0x820 mm/khugepaged.c:2859 madvise_vma_behavior+0x1094/0x4460 mm/madvise.c:1362 madvise_walk_vmas+0x573/0xae0 mm/madvise.c:1711 madvise_do_behavior+0x386/0x540 mm/madvise.c:1927 do_madvise+0x1fa/0x2e0 mm/madvise.c:2020 __do_sys_madvise mm/madvise.c:2029 [inline] __se_sys_madvise mm/madvise.c:2027 [inline] __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:2027 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f90d419c799 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd50711398 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f90d4415fa0 RCX: 00007f90d419c799 RDX: 0000000000000019 RSI: 0000000000600003 RDI: 0000200000000000 RBP: 00007f90d4232c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f90d4415fac R14: 00007f90d4415fa0 R15: 00007f90d4415fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:XAS_INVALID include/linux/xarray.h:1441 [inline] RIP: 0010:collapse_file mm/khugepaged.c:2055 [inline] RIP: 0010:collapse_scan_file+0x4f98/0x5230 mm/khugepaged.c:2404 Code: ff 4c 89 e7 48 c7 c6 60 b2 dc 8b e8 82 62 f1 fe 90 0f 0b 48 85 db 0f 84 03 01 00 00 e8 71 e5 8f ff 48 89 df e8 a9 20 7b 09 90 <0f> 0b e8 61 e5 8f ff 48 89 df 48 c7 c6 60 b2 dc 8b e8 52 62 f1 fe RSP: 0018:ffffc90003826e20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88805d558b00 RCX: a13f20bd39c5a100 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003827130 R08: ffffc90003826ba7 R09: 1ffff92000704d74 R10: dffffc0000000000 R11: fffff52000704d75 R12: ffffea0001b678f0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc90003827010 FS: 000055557e3c2500(0000) GS:ffff888125537000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8156602000 CR3: 000000007ac66000 CR4: 00000000003526f0 --- 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 syzkaller@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