syzbot


general protection fault in vm_mmap_pgoff

Status: auto-obsoleted due to no activity on 2022/12/24 23:40
Reported-by: syzbot+8cb8ec03bc4460433c77@syzkaller.appspotmail.com
First crash: 601d, last: 601d

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
 alloc_pages_current+0x193/0x2a0 mm/mempolicy.c:2197
 alloc_pages include/linux/gfp.h:532 [inline]
 pte_alloc_one+0x16/0x190 arch/x86/mm/pgtable.c:35
general protection fault: 0000 [#1] PREEMPT SMP KASAN
 __pte_alloc+0x21/0x340 mm/memory.c:665
CPU: 1 PID: 19197 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
 __get_locked_pte+0x55a/0x680 mm/memory.c:1705
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
 get_locked_pte include/linux/mm.h:1722 [inline]
 insert_page mm/memory.c:1728 [inline]
 vm_insert_page+0x29b/0x9c0 mm/memory.c:1789
RIP: 0010:__list_del_entry_valid+0x81/0xf0 lib/list_debug.c:51
Code: 0f 84 30 52 85 04 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 31 52 85 04 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 e8 51 85 04 49 8d 7d
RSP: 0018:ffff888056fc74e8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880b43dedc0 RCX: ffffffff814bdebb
 remap_vmalloc_range_partial+0x1c2/0x250 mm/vmalloc.c:2276
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b43df0e8
 vb2_vmalloc_mmap+0x45/0x150 drivers/media/common/videobuf2/videobuf2-vmalloc.c:180
RBP: ffff8880b43df0e0 R08: 0000000000000001 R09: fffffbfff15cead8
R10: ffffffff8ae756c3 R11: 0000000000000000 R12: 0000000000000000
 vb2_mmap+0x4b1/0x6a0 drivers/media/common/videobuf2/videobuf2-core.c:1998
R13: 0000000000000000 R14: ffff8880b43df040 R15: ffff8880b43df0e8
FS:  00007f8bc61c8700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
 v4l2_mmap+0x146/0x1f0 drivers/media/v4l2-core/v4l2-dev.c:401
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 call_mmap include/linux/fs.h:1826 [inline]
 mmap_region+0xc94/0x16b0 mm/mmap.c:1757
CR2: 00007fbbaabf1000 CR3: 00000000af593000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 do_mmap+0x8e8/0x1080 mm/mmap.c:1530
Call Trace:
 do_mmap_pgoff include/linux/mm.h:2329 [inline]
 vm_mmap_pgoff+0x197/0x200 mm/util.c:357
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 cbs_destroy+0x81/0x280 net/sched/sch_cbs.c:448
 qdisc_create+0xb70/0x1130 net/sched/sch_api.c:1204
 ksys_mmap_pgoff+0x298/0x5a0 mm/mmap.c:1580
 tc_modify_qdisc+0x50d/0x1a80 net/sched/sch_api.c:1572
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa6efbe2279
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa6ee536168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fa6efcf5050 RCX: 00007fa6efbe2279
RDX: 0000000000000002 RSI: 0000000000096000 RDI: 0000000020ffd000
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
RBP: 00007fa6ee5361d0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc360eb77f R14: 00007fa6ee536300 R15: 0000000000022000
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f8bc7853279
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8bc61c8168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f8bc7965f80 RCX: 00007f8bc7853279
RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000005
RBP: 00007f8bc61c81d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc55f7199f R14: 00007f8bc61c8300 R15: 0000000000022000
Modules linked in:
---[ end trace c5ad7c3732e6b1de ]---
RIP: 0010:__list_del_entry_valid+0x81/0xf0 lib/list_debug.c:51
Code: 0f 84 30 52 85 04 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 31 52 85 04 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 e8 51 85 04 49 8d 7d
RSP: 0018:ffff888056fc74e8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880b43dedc0 RCX: ffffffff814bdebb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b43df0e8
RBP: ffff8880b43df0e0 R08: 0000000000000001 R09: fffffbfff15cead8
R10: ffffffff8ae756c3 R11: 0000000000000000 R12: 0000000000000000
Remapping vmalloc memory, error: -12
R13: 0000000000000000 R14: ffff8880b43df040 R15: ffff8880b43df0e8
FS:  00007f8bc61c8700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbbaabf1000 CR3: 00000000af593000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0f 84 30 52 85 04    	je     0x4855236
   6:	48 b8 00 02 00 00 00 	movabs $0xdead000000000200,%rax
   d:	00 ad de
  10:	49 39 c4             	cmp    %rax,%r12
  13:	0f 84 31 52 85 04    	je     0x485524a
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	75 51                	jne    0x81
  30:	49 8b 14 24          	mov    (%r12),%rdx
  34:	48 39 ea             	cmp    %rbp,%rdx
  37:	0f 85 e8 51 85 04    	jne    0x4855225
  3d:	49                   	rex.WB
  3e:	8d                   	.byte 0x8d
  3f:	7d                   	.byte 0x7d

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/26 23:40 linux-4.19.y 3f8a27f9e27b e5a303f1 .config console log report info ci2-linux-4-19 general protection fault in vm_mmap_pgoff
* Struck through repros no longer work on HEAD.