syzbot


WARNING in vmap_pages_range_noflush (2)

Status: upstream: reported C repro on 2022/08/21 05:34
Subsystems: net bpf
[Documentation on labels]
Reported-by: syzbot+616ff0452fec30f4dcfd@syzkaller.appspotmail.com
Fix commit: mm/gup.c: Fix return value for __gup_longterm_locked()
Patched on: [ci-upstream-linux-next-kasan-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-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 783d, last: 777d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] mm/gup.c: Fix return value for __gup_longterm_locked() 4 (4) 2022/08/23 09:05
[PATCH] mm/gup.c: Fix return value for __gup_longterm_locked() 3 (3) 2022/08/22 15:23
[syzbot] WARNING in vmap_pages_range_noflush (2) 0 (1) 2022/08/21 05:34
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in vmap_pages_range_noflush bpf 3 1070d 1181d 0/28 auto-closed as invalid on 2022/03/02 14:18

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3614 at mm/vmalloc.c:476 vmap_pages_pte_range mm/vmalloc.c:476 [inline]
WARNING: CPU: 1 PID: 3614 at mm/vmalloc.c:476 vmap_pages_pmd_range mm/vmalloc.c:500 [inline]
WARNING: CPU: 1 PID: 3614 at mm/vmalloc.c:476 vmap_pages_pud_range mm/vmalloc.c:518 [inline]
WARNING: CPU: 1 PID: 3614 at mm/vmalloc.c:476 vmap_pages_p4d_range mm/vmalloc.c:536 [inline]
WARNING: CPU: 1 PID: 3614 at mm/vmalloc.c:476 vmap_small_pages_range_noflush mm/vmalloc.c:558 [inline]
WARNING: CPU: 1 PID: 3614 at mm/vmalloc.c:476 vmap_pages_range_noflush+0x992/0xb90 mm/vmalloc.c:587
Modules linked in:
CPU: 1 PID: 3614 Comm: syz-executor206 Not tainted 6.0.0-rc1-next-20220817-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:vmap_pages_pte_range mm/vmalloc.c:476 [inline]
RIP: 0010:vmap_pages_pmd_range mm/vmalloc.c:500 [inline]
RIP: 0010:vmap_pages_pud_range mm/vmalloc.c:518 [inline]
RIP: 0010:vmap_pages_p4d_range mm/vmalloc.c:536 [inline]
RIP: 0010:vmap_small_pages_range_noflush mm/vmalloc.c:558 [inline]
RIP: 0010:vmap_pages_range_noflush+0x992/0xb90 mm/vmalloc.c:587
Code: c7 c7 e0 fa f8 89 c6 05 aa 6c 0d 0c 01 e8 c7 10 7e 07 0f 0b e9 48 fe ff ff e8 ba d7 bf ff 0f 0b e9 1d ff ff ff e8 ae d7 bf ff <0f> 0b e9 11 ff ff ff e8 a2 d7 bf ff 4c 8b 7c 24 20 4c 89 ff e8 45
RSP: 0018:ffffc9000398faa8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88806fbbad48 RCX: 0000000000000000
RDX: ffff88801f1f0000 RSI: ffffffff81bc3da2 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 8000000000000163 R14: dffffc0000000000 R15: ffffc9000d9a9000
FS:  0000555555c6f300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000002111f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vmap_pages_range mm/vmalloc.c:621 [inline]
 vmap+0x1b4/0x330 mm/vmalloc.c:2837
 xdp_umem_addr_map net/xdp/xdp_umem.c:51 [inline]
 xdp_umem_reg net/xdp/xdp_umem.c:223 [inline]
 xdp_umem_create+0xcf7/0x1180 net/xdp/xdp_umem.c:252
 xsk_setsockopt+0x73e/0x9e0 net/xdp/xsk.c:1100
 __sys_setsockopt+0x2d6/0x690 net/socket.c:2252
 __do_sys_setsockopt net/socket.c:2263 [inline]
 __se_sys_setsockopt net/socket.c:2260 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2260
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f848f588b29
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdd237dcc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f848f588b29
RDX: 0000000000000004 RSI: 000000000000011b RDI: 0000000000000003
RBP: 00007f848f54ccd0 R08: 0000000000000020 R09: 0000000000000000
R10: 0000000020000040 R11: 0000000000000246 R12: 00007f848f54cd60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (250):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/17 15:39 linux-next 95d10484d66e 4e72d229 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/23 04:09 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/23 03:33 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/23 01:17 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 22:12 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 20:14 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 17:11 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 14:16 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 11:29 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 10:05 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 08:21 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 07:21 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 05:03 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 01:42 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/22 00:02 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 22:30 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 20:50 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 19:25 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 18:09 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 15:57 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 13:00 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 05:24 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/21 00:40 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 23:07 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 21:36 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 20:14 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 16:25 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 14:20 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 12:56 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 04:35 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/20 03:34 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 21:07 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 20:01 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 17:22 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 16:09 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 10:23 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 09:02 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 08:39 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 06:33 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 05:27 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 03:35 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 02:20 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/19 00:55 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
2022/08/17 05:25 linux-next 95d10484d66e 4e72d229 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vmap_pages_range_noflush
* Struck through repros no longer work on HEAD.