syzbot


WARNING in hugetlb_vma_assert_locked

Status: upstream: reported C repro on 2025/09/23 09:03
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+f26d7c75c26ec19790e7@syzkaller.appspotmail.com
Fix commit: hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list
Patched on: [ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-root], missing on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kmsan-gce-386-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 29d, last: 27d
Discussions (15)
Title Replies (including bot) Last reply
[PATCH v8] hugetlbfs: move lock assertions after early returns in huge_pmd_unshare() 3 (3) 2025/10/22 14:34
[PATCH v2] hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list 5 (5) 2025/10/22 11:40
[PATCH v6] hugetlbfs: move lock assertions after early returns in huge_pmd_unshare() 3 (3) 2025/10/14 11:35
[PATCH v7] hugetlbfs: move lock assertions after early returns in huge_pmd_unshare() 2 (2) 2025/10/14 11:25
[syzbot] [mm?] WARNING in hugetlb_vma_assert_locked 0 (11) 2025/10/14 04:14
[PATCH v5] hugetlbfs: move lock assertions after early returns in huge_pmd_unshare() 2 (2) 2025/10/14 04:04
[PATCH v5] hugetlbfs: move lock assertions after early returns in huge_pmd_unshare() 2 (2) 2025/10/14 03:29
Re: [PATCH v4] hugetlbfs: check for shareable lock before calling huge_pmd_unshare() 4 (4) 2025/10/13 14:22
Re: [PATCH v4] hugetlbfs: check for shareable lock before calling huge_pmd_unshare() 1 (1) 2025/10/13 09:33
[PATCH v3] hugetlbfs: skip PMD unsharing when shareable lock unavailable 6 (6) 2025/10/13 08:27
Re: [PATCH v2] hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list 1 (1) 2025/10/03 15:09
Re: [PATCH v2] hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list 1 (1) 2025/10/03 15:09
Re: [PATCH v2] hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list 1 (1) 2025/10/03 11:18
[PATCH] hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list 1 (1) 2025/09/25 14:49
[PATCH] hugetlbfs: skip VMAs without shareable locks in hugetlb_vmdelete_list 1 (1) 2025/09/25 14:33
Last patch testing requests (9)
Created Duration User Patch Repo Result
2025/10/14 04:14 25m kartikey406@gmail.com patch linux-next OK log
2025/10/14 03:35 1m kartikey406@gmail.com patch linux-next error
2025/10/14 00:40 33m kartikey406@gmail.com patch linux-next OK log
2025/10/07 06:01 31m kartikey406@gmail.com patch linux-next OK log
2025/10/03 16:11 26m kartikey406@gmail.com patch linux-next OK log
2025/09/26 00:32 1h53m kartikey406@gmail.com patch linux-next OK log
2025/09/25 23:19 1h15m kartikey406@gmail.com patch linux-next OK log
2025/09/25 13:43 25m kartikey406@gmail.com patch linux-next OK log
2025/09/25 10:40 1h03m kartikey406@gmail.com patch linux-next OK log

Sample crash report:
------------[ cut here ]------------
WARNING: mm/hugetlb.c:368 at hugetlb_vma_assert_locked+0x1dd/0x250 mm/hugetlb.c:368, CPU#0: syz.0.5998/24560
Modules linked in:
CPU: 0 UID: 0 PID: 24560 Comm: syz.0.5998 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:hugetlb_vma_assert_locked+0x1dd/0x250 mm/hugetlb.c:368
Code: 2e e8 17 e8 a1 ff eb 0c e8 10 e8 a1 ff eb 05 e8 09 e8 a1 ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 f4 e7 a1 ff 90 <0f> 0b 90 eb e5 e8 e9 e7 a1 ff 90 0f 0b 90 eb da 48 c7 c1 70 0b e5
RSP: 0018:ffffc9000f07f388 EFLAGS: 00010293
RAX: ffffffff821e312c RBX: 0000000000000000 RCX: ffff888076eddac0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001e0fe74 R12: ffff888033c4cd00
R13: 1ffff1100f17a4d4 R14: dffffc0000000000 R15: 0000000000000080
FS:  00007fd5f48eb6c0(0000) GS:ffff8881257a2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5f48eaf98 CR3: 0000000028882000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 huge_pmd_unshare+0x2c8/0x540 mm/hugetlb.c:7622
 __unmap_hugepage_range+0x6e3/0x1aa0 mm/hugetlb.c:5901
 unmap_hugepage_range+0x32e/0x410 mm/hugetlb.c:6089
 hugetlb_vmdelete_list+0x171/0x1c0 fs/hugetlbfs/inode.c:494
 hugetlb_vmtruncate fs/hugetlbfs/inode.c:641 [inline]
 hugetlbfs_setattr+0x4d1/0x6d0 fs/hugetlbfs/inode.c:879
 notify_change+0xc1a/0xf40 fs/attr.c:546
 do_truncate+0x1a4/0x220 fs/open.c:68
 handle_truncate fs/namei.c:3516 [inline]
 do_open fs/namei.c:3899 [inline]
 path_openat+0x306c/0x3830 fs/namei.c:4054
 do_filp_open+0x1fa/0x410 fs/namei.c:4081
 do_sys_openat2+0x121/0x1c0 fs/open.c:1435
 do_sys_open fs/open.c:1450 [inline]
 __do_sys_open fs/open.c:1458 [inline]
 __se_sys_open fs/open.c:1454 [inline]
 __x64_sys_open+0x11e/0x150 fs/open.c:1454
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd5f398eec9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd5f48eb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fd5f3be5fa0 RCX: 00007fd5f398eec9
RDX: 0000000000000100 RSI: 000000000014927e RDI: 0000200000000340
RBP: 00007fd5f3a11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd5f3be6038 R14: 00007fd5f3be5fa0 R15: 00007ffcc6b35dc8
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/23 13:06 linux-next 846bd2225ec3 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
2025/09/23 10:28 linux-next 846bd2225ec3 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
2025/09/23 09:27 linux-next 846bd2225ec3 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
2025/09/23 08:21 linux-next 846bd2225ec3 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
2025/09/23 07:00 linux-next 846bd2225ec3 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
2025/09/23 05:49 linux-next 846bd2225ec3 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
2025/09/25 09:18 linux-next b5a4da2c459f 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in hugetlb_vma_assert_locked
2025/09/23 02:41 linux-next 846bd2225ec3 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in hugetlb_vma_assert_locked
* Struck through repros no longer work on HEAD.