syzbot


general protection fault in __queue_work (2)

Status: auto-closed as invalid on 2022/05/12 22:08
Reported-by: syzbot+d610115289cd0233ba9b@syzkaller.appspotmail.com
First crash: 321d, last: 321d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __queue_work 3 1365d 1364d 0/24 auto-closed as invalid on 2019/09/02 09:35
linux-4.19 general protection fault in __queue_work syz done 1 582d 830d 1/1 fixed on 2021/05/29 15:40
linux-4.14 general protection fault in __queue_work syz error 1 693d 844d 0/1 upstream: reported syz repro on 2020/08/07 22:48
upstream general protection fault in __queue_work (2) C done 7043 230d 998d 0/24 auto-obsoleted due to no activity on 2022/11/16 06:42
linux-4.19 KASAN: use-after-free Read in __queue_work syz done 5 477d 849d 1/1 fixed on 2021/09/10 09:12
linux-4.14 KASAN: use-after-free Read in __queue_work syz error 4 85d 849d 0/1 upstream: reported syz repro on 2020/08/03 15:06
upstream KASAN: use-after-free Read in __queue_work (3) syz done done 83 15d 844d 0/24 upstream: reported syz repro on 2020/08/08 21:27

Sample crash report:
EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2814 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline]
RIP: 0010:perf_trace_lock_acquire+0x9d/0x530 include/trace/events/lock.h:13
Code: 04 f1 f1 04 f2 c7 40 08 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 48 8d 46 18 48 89 85 40 ff ff ff 48 c1 e8 03 <80> 3c 10 00 0f 85 4f 03 00 00 49 8b 7d 18 48 c7 c0 80 14 6a 88 48
RSP: 0018:ffff8880ba107b38 EFLAGS: 00010006
RAX: 0000000000000006 RBX: ffff8880ab4d87a8 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000018 RDI: ffffffff89f6d420
RBP: ffff8880ba107c20 R08: 0000000000000000 R09: 0000000000000001
R10: ffff88813bfc2943 R11: 0000000000000000 R12: ffffffff89f6d420
R13: 0000000000000018 R14: 0000000000000000 R15: ffff8880ba107bf8
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c029cb7000 CR3: 0000000009e6d000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0x298/0x3c0 kernel/locking/lockdep.c:3907
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
 spin_lock include/linux/spinlock.h:329 [inline]
 __queue_work+0x320/0x1100 kernel/workqueue.c:1416
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
 expire_timers+0x97/0x4e0 kernel/time/timer.c:1371
 __run_timers kernel/time/timer.c:1696 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:806 [inline]
RIP: 0010:__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
RIP: 0010:_raw_spin_lock_irqsave+0x2d/0xc0 kernel/locking/spinlock.c:152
Code: 80 82 f1 89 41 54 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 55 48 89 fd 80 3c 10 00 75 7f 48 83 3d 47 35 d8 01 00 74 71 9c 58 <0f> 1f 44 00 00 48 ba 00 00 00 00 00 fc ff df 49 89 c4 48 c7 c0 90
RSP: 0018:ffff888051127580 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000286 RBX: 0000000000000000 RCX: ffffffff8d3dcb88
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffffffff8d3dcb88
RBP: ffffffff8d3dcb88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dead000000000200
R13: ffff888013c00000 R14: 0000000000000010 R15: dffffc0000000000
 __debug_check_no_obj_freed lib/debugobjects.c:776 [inline]
 debug_check_no_obj_freed+0xb5/0x490 lib/debugobjects.c:817
 free_pages_prepare mm/page_alloc.c:1056 [inline]
 __free_pages_ok+0x22d/0xd30 mm/page_alloc.c:1279
 release_pages+0xab5/0x15a0 mm/swap.c:768
 tlb_flush_mmu_free mm/memory.c:261 [inline]
 zap_pte_range mm/memory.c:1417 [inline]
 zap_pmd_range mm/memory.c:1463 [inline]
 zap_pud_range mm/memory.c:1492 [inline]
 zap_p4d_range mm/memory.c:1513 [inline]
 unmap_page_range+0x221f/0x2c50 mm/memory.c:1534
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 exit_mm kernel/exit.c:549 [inline]
 do_exit+0xaec/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0c30fd2eb9
Code: Bad RIP value.
RSP: 002b:00007f0c2f948218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007f0c310e5f68 RCX: 00007f0c30fd2eb9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f0c310e5f6c
RBP: 00007f0c310e5f60 R08: 000001000fcf0111 R09: 0000000000000000
R10: 0000000000000160 R11: 0000000000000246 R12: 00007f0c310e5f6c
R13: 00007fff9edf660f R14: 00007f0c2f948300 R15: 0000000000022000
Modules linked in:
---[ end trace 7a3319258fd7e056 ]---
RIP: 0010:trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline]
RIP: 0010:perf_trace_lock_acquire+0x9d/0x530 include/trace/events/lock.h:13
Code: 04 f1 f1 04 f2 c7 40 08 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 48 8d 46 18 48 89 85 40 ff ff ff 48 c1 e8 03 <80> 3c 10 00 0f 85 4f 03 00 00 49 8b 7d 18 48 c7 c0 80 14 6a 88 48
RSP: 0018:ffff8880ba107b38 EFLAGS: 00010006
RAX: 0000000000000006 RBX: ffff8880ab4d87a8 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000018 RDI: ffffffff89f6d420
RBP: ffff8880ba107c20 R08: 0000000000000000 R09: 0000000000000001
R10: ffff88813bfc2943 R11: 0000000000000000 R12: ffffffff89f6d420
R13: 0000000000000018 R14: 0000000000000000 R15: ffff8880ba107bf8
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c30fd2e8f CR3: 0000000009e6d000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	04 f1                	add    $0xf1,%al
   2:	f1                   	icebp
   3:	04 f2                	add    $0xf2,%al
   5:	c7 40 08 00 f3 f3 f3 	movl   $0xf3f3f300,0x8(%rax)
   c:	65 48 8b 04 25 28 00 	mov    %gs:0x28,%rax
  13:	00 00
  15:	48 89 45 d0          	mov    %rax,-0x30(%rbp)
  19:	31 c0                	xor    %eax,%eax
  1b:	48 8d 46 18          	lea    0x18(%rsi),%rax
  1f:	48 89 85 40 ff ff ff 	mov    %rax,-0xc0(%rbp)
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 10 00          	cmpb   $0x0,(%rax,%rdx,1) <-- trapping instruction
  2e:	0f 85 4f 03 00 00    	jne    0x383
  34:	49 8b 7d 18          	mov    0x18(%r13),%rdi
  38:	48 c7 c0 80 14 6a 88 	mov    $0xffffffff886a1480,%rax
  3f:	48                   	rex.W

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2022/01/12 22:07 linux-4.19.y 3f8a27f9e27b 44d1319a .config log report info general protection fault in __queue_work
* Struck through repros no longer work on HEAD.