[moderation] [alsa?] general protection fault in loopback_jiffies_timer_pos_update

6 views
Skip to first unread message

syzbot

unread,
Aug 12, 2023, 9:36:06 AM8/12/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 14f9643dc90a Merge tag 'wq-for-6.5-rc5-fixes' of git://git..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=10e8ac1da80000
kernel config: https://syzkaller.appspot.com/x/.config?x=d68e24deab17dfcf
dashboard link: https://syzkaller.appspot.com/bug?extid=6aad6e679ee12eb17d28
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: i386
CC: [alsa-...@alsa-project.org linux-...@vger.kernel.org pe...@perex.cz ti...@suse.com]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1c5ee1b665b9/disk-14f9643d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/794cadbcd66d/vmlinux-14f9643d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9cf279cfe5d1/bzImage-14f9643d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6aad6e...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Nov 6, 2023, 8:26:18 AM11/6/23
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages