syzbot


general protection fault in loopback_jiffies_timer_pos_update

Status: auto-obsoleted due to no activity on 2023/11/06 13:26
Subsystems: sound
[Documentation on labels]
Reported-by: syzbot+6aad6e679ee12eb17d28@syzkaller.appspotmail.com
First crash: 267d, last: 267d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in loopback_jiffies_timer_pos_update sound 1 590d 586d 0/26 auto-obsoleted due to no activity on 2022/12/18 13:48

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000009: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000048-0x000000000000004f]
CPU: 0 PID: 5465 Comm: kworker/0:7 Not tainted 6.5.0-rc5-syzkaller-00029-g14f9643dc90a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: events cfg80211_wiphy_work
RIP: 0010:loopback_jiffies_timer_pos_update+0xc0e/0xfa0 sound/drivers/aloop.c:619
Code: e0 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 17 7c 88 f9 48 8d 7d 48 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 41 03 00 00 4c 8b 74 24 08 4c 89 f8 31 ff 48 2b
RSP: 0018:ffffc90000007c20 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: ffff888022ecfc00 RCX: 0000000000000100
RDX: 0000000000000009 RSI: ffffffff87fd8c09 RDI: 0000000000000048
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: 0000000000000003
R13: 0000000000000035 R14: 0000000000000002 R15: 0000000100000375
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200ec018 CR3: 0000000073029000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 loopback_jiffies_timer_function+0xdb/0x240 sound/drivers/aloop.c:662
 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700
 expire_timers kernel/time/timer.c:1751 [inline]
 __run_timers+0x764/0xb10 kernel/time/timer.c:2022
 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
 __do_softirq+0x218/0x965 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x70 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 d6 7b 31 f7 48 89 df e8 ae fa 31 f7 f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f <bf> 01 00 00 00 e8 55 9d 23 f7 65 8b 05 a6 2b ce 75 85 c0 74 12 5b
RSP: 0018:ffffc90005affbf8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff888020eb58a8 RCX: 1ffffffff230ed1c
RDX: 0000000000000000 RSI: ffffffff8a6c7520 RDI: ffffffff8ac80620
RBP: 0000000000000293 R08: 0000000000000001 R09: fffffbfff23095dd
R10: ffffffff9184aeef R11: 000000000000004e R12: 0000000000000293
R13: ffff888020eb58a8 R14: ffff888020eb5890 R15: 0000000000000080
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 skb_dequeue+0x126/0x180 net/core/skbuff.c:3633
 ieee80211_iface_work+0x5ea/0xd40 net/mac80211/iface.c:1665
 cfg80211_wiphy_work+0x24e/0x330 net/wireless/core.c:435
 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600
 worker_thread+0x687/0x1110 kernel/workqueue.c:2751
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:loopback_jiffies_timer_pos_update+0xc0e/0xfa0 sound/drivers/aloop.c:619
Code: e0 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 17 7c 88 f9 48 8d 7d 48 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 41 03 00 00 4c 8b 74 24 08 4c 89 f8 31 ff 48 2b
RSP: 0018:ffffc90000007c20 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: ffff888022ecfc00 RCX: 0000000000000100
RDX: 0000000000000009 RSI: ffffffff87fd8c09 RDI: 0000000000000048
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: 0000000000000003
R13: 0000000000000035 R14: 0000000000000002 R15: 0000000100000375
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200ec018 CR3: 0000000073029000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e0 48                	loopne 0x4a
   2:	83 c4 18             	add    $0x18,%esp
   5:	5b                   	pop    %rbx
   6:	5d                   	pop    %rbp
   7:	41 5c                	pop    %r12
   9:	41 5d                	pop    %r13
   b:	41 5e                	pop    %r14
   d:	41 5f                	pop    %r15
   f:	c3                   	ret
  10:	e8 17 7c 88 f9       	call   0xf9887c2c
  15:	48 8d 7d 48          	lea    0x48(%rbp),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 41 03 00 00    	jne    0x375
  34:	4c 8b 74 24 08       	mov    0x8(%rsp),%r14
  39:	4c 89 f8             	mov    %r15,%rax
  3c:	31 ff                	xor    %edi,%edi
  3e:	48                   	rex.W
  3f:	2b                   	.byte 0x2b

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/08 13:25 upstream 14f9643dc90a 3c27dfcd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in loopback_jiffies_timer_pos_update
* Struck through repros no longer work on HEAD.