syzbot


general protection fault in __purge_vmap_area_lazy

Status: auto-closed as invalid on 2022/05/11 18:33
Reported-by: syzbot+d6048fdc896df814a3eb@syzkaller.appspotmail.com
First crash: 1057d, last: 1057d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __purge_vmap_area_lazy kernel 1 1536d 1532d 0/28 auto-closed as invalid on 2020/12/18 14:12

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue
EXT4-fs error (device loop5): ext4_quota_enable:5846: comm syz-executor.5: Bad quota inode # 3
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 18531 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
EXT4-fs warning (device loop5): ext4_enable_quotas:5883: Failed to enable quota tracking (type=0, err=-116). Please run e2fsck to fix.
RIP: 0010:__purge_vmap_area_lazy+0x9d/0x280 mm/vmalloc.c:671
Code: a9 a0 94 0b 48 8d 68 c0 48 85 c0 0f 84 96 01 00 00 49 be 00 00 00 00 00 fc ff df 48 89 eb e8 1a 02 d2 ff 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 92 01 00 00 48 8b 03 48 8d 7b 08 49 39 c4 4c
RSP: 0018:ffff8880128978b0 EFLAGS: 00010206
RAX: 00000000165644f0 RBX: 00000000b2b22780 RCX: ffffc90006c87000
RDX: 0000000000001cd0 RSI: ffffffff81908356 RDI: ffff888000c5bb40
RBP: ffff8880a6e3e780 R08: 0000000000000001 R09: fffffbfff1a4a47c
R10: ffffffff8d2523e7 R11: 0000000000000000 R12: ffffc9000b4f7000
R13: ffffc9000e177000 R14: dffffc0000000000 R15: 0000000000000002
EXT4-fs (loop5): Cannot turn on quotas: error -116
FS:  00007f09cf6b6700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e01acd3d60 CR3: 0000000096ae7000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue
Call Trace:
 vm_unmap_aliases mm/vmalloc.c:1113 [inline]
 vm_unmap_aliases+0x415/0x510 mm/vmalloc.c:1076
 change_page_attr_set_clr+0x247/0xc60 arch/x86/mm/pageattr.c:1497
 change_page_attr_clear arch/x86/mm/pageattr.c:1560 [inline]
 set_memory_ro+0x78/0xa0 arch/x86/mm/pageattr.c:1789
 bpf_prog_lock_ro include/linux/filter.h:714 [inline]
 bpf_prog_select_runtime+0xb2/0x620 kernel/bpf/core.c:1587
 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1273
 bpf_prepare_filter+0x183/0x370 net/core/filter.c:1321
 __get_filter+0x1d4/0x270 net/core/filter.c:1490
 sk_attach_filter+0x1c/0x170 net/core/filter.c:1505
 sock_setsockopt+0x138d/0x2060 net/core/sock.c:893
 __sys_setsockopt+0x203/0x240 net/socket.c:2009
 __do_sys_setsockopt net/socket.c:2024 [inline]
 __se_sys_setsockopt net/socket.c:2021 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2021
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f09d0d40e99
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f09cf6b6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f09d0e53f60 RCX: 00007f09d0d40e99
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007f09d0d9aff1 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020fbe000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffea109bbef R14: 00007f09cf6b6300 R15: 0000000000022000
Modules linked in:
usb usb5: usbfs: process 18545 (syz-executor.0) did not claim interface 0 before use
usb usb5: usbfs: process 18548 (syz-executor.3) did not claim interface 0 before use
mkiss: ax0: crc mode is auto.
usb usb5: usbfs: process 18576 (syz-executor.3) did not claim interface 0 before use
EXT4-fs (loop1): revision level too high, forcing read-only mode
EXT4-fs (loop1): orphan cleanup on readonly fs
usb usb5: usbfs: process 18589 (syz-executor.3) did not claim interface 0 before use
EXT4-fs error (device loop1): ext4_quota_enable:5846: comm syz-executor.1: Bad quota inode # 3
mkiss: ax0: crc mode is auto.
EXT4-fs (loop5): revision level too high, forcing read-only mode
EXT4-fs (loop5): orphan cleanup on readonly fs
EXT4-fs error (device loop5): ext4_quota_enable:5846: comm syz-executor.5: Bad quota inode # 3
EXT4-fs warning (device loop1): ext4_enable_quotas:5883: Failed to enable quota tracking (type=0, err=-116). Please run e2fsck to fix.
EXT4-fs warning (device loop5): ext4_enable_quotas:5883: Failed to enable quota tracking (type=0, err=-116). Please run e2fsck to fix.
EXT4-fs (loop5): Cannot turn on quotas: error -116
EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue
usb usb5: usbfs: process 18616 (syz-executor.3) did not claim interface 0 before use
usb usb5: usbfs: usb_submit_urb returned -22
mkiss: ax0: crc mode is auto.
EXT4-fs (loop1): Cannot turn on quotas: error -116
EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue
---[ end trace f4c0e1632ef6d673 ]---
usb usb5: usbfs: process 18637 (syz-executor.3) did not claim interface 0 before use
RIP: 0010:__purge_vmap_area_lazy+0x9d/0x280 mm/vmalloc.c:671
Code: a9 a0 94 0b 48 8d 68 c0 48 85 c0 0f 84 96 01 00 00 49 be 00 00 00 00 00 fc ff df 48 89 eb e8 1a 02 d2 ff 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 92 01 00 00 48 8b 03 48 8d 7b 08 49 39 c4 4c
usb usb5: usbfs: usb_submit_urb returned -22
RSP: 0018:ffff8880128978b0 EFLAGS: 00010206
RAX: 00000000165644f0 RBX: 00000000b2b22780 RCX: ffffc90006c87000
EXT4-fs (loop1): revision level too high, forcing read-only mode
RDX: 0000000000001cd0 RSI: ffffffff81908356 RDI: ffff888000c5bb40
EXT4-fs (loop1): orphan cleanup on readonly fs
EXT4-fs error (device loop1): ext4_quota_enable:5846: comm syz-executor.1: Bad quota inode # 3
RBP: ffff8880a6e3e780 R08: 0000000000000001 R09: fffffbfff1a4a47c
R10: ffffffff8d2523e7 R11: 0000000000000000 R12: ffffc9000b4f7000
R13: ffffc9000e177000 R14: dffffc0000000000 R15: 0000000000000002
EXT4-fs warning (device loop1): ext4_enable_quotas:5883: Failed to enable quota tracking (type=0, err=-116). Please run e2fsck to fix.
EXT4-fs (loop1): Cannot turn on quotas: error -116
FS:  00007f09cf6b6700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c003915000 CR3: 0000000096ae7000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	a9 a0 94 0b 48       	test   $0x480b94a0,%eax
   5:	8d 68 c0             	lea    -0x40(%rax),%ebp
   8:	48 85 c0             	test   %rax,%rax
   b:	0f 84 96 01 00 00    	je     0x1a7
  11:	49 be 00 00 00 00 00 	movabs $0xdffffc0000000000,%r14
  18:	fc ff df
  1b:	48 89 eb             	mov    %rbp,%rbx
  1e:	e8 1a 02 d2 ff       	callq  0xffd2023d
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 92 01 00 00    	jne    0x1c7
  35:	48 8b 03             	mov    (%rbx),%rax
  38:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  3c:	49 39 c4             	cmp    %rax,%r12
  3f:	4c                   	rex.WR

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/11 18:33 linux-4.19.y 3f8a27f9e27b 1884f55a .config console log report info ci2-linux-4-19 general protection fault in __purge_vmap_area_lazy
* Struck through repros no longer work on HEAD.