[v6.6] general protection fault in loopback_jiffies_timer_pos_update

0 views
Skip to first unread message

syzbot

unread,
Aug 21, 2025, 9:56:31 PM8/21/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bb9c90ab9c5a Linux 6.6.102
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15aa76f0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7b989b97a0687b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=c073e705e8e5c8f8c003
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/44e2224124c3/disk-bb9c90ab.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/33e0aef7ff42/vmlinux-bb9c90ab.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0515bc436228/bzImage-bb9c90ab.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c073e7...@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: 0 Comm: swapper/0 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:loopback_jiffies_timer_pos_update+0x13c/0x1250 sound/drivers/aloop.c:619
Code: fb 49 f9 44 89 f8 83 e0 02 44 89 7c 24 3c 75 0a e8 79 f7 49 f9 45 31 ff eb 27 e8 6f f7 49 f9 49 8d 5d 48 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 86 3e a1 f9 4d 89 f7 4c 2b 3b 4c 89
RSP: 0018:ffffc90000007ac8 EFLAGS: 00010006
RAX: 0000000000000009 RBX: 0000000000000048 RCX: ffffffff8ca93380
RDX: 0000000000000100 RSI: 0000000000000002 RDI: 0000000000000000
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000000f48 R12: 0000000000000002
R13: 0000000000000000 R14: 00000000ffffd239 R15: 0000000000000003
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2e36ca CR3: 0000000061d78000 CR4: 00000000003506f0
Call Trace:
<IRQ>
loopback_jiffies_timer_function+0x62/0x250 sound/drivers/aloop.c:662
call_timer_fn+0x16e/0x530 kernel/time/timer.c:1700
expire_timers kernel/time/timer.c:1751 [inline]
__run_timers+0x52d/0x7d0 kernel/time/timer.c:2022
run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2035
handle_softirqs+0x280/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xc7/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:pv_native_safe_halt+0x13/0x20 arch/x86/kernel/paravirt.c:148
Code: cc cc cc cc cc cc cc f3 0f 1e fa 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 66 90 0f 00 2d e3 e6 3a 00 f3 0f 1e fa fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 66 0f 1f 00 55 41 57 41 56
RSP: 0018:ffffffff8ca07d80 EFLAGS: 000002c6
RAX: 6355c4849314c800 RBX: ffffffff8161914b RCX: 6355c4849314c800
RDX: 0000000000000001 RSI: ffffffff8aaab9c0 RDI: ffffffff8afc66c0
RBP: ffffffff8ca07eb8 R08: ffff8880b8e36d4b R09: 1ffff110171c6da9
R10: dffffc0000000000 R11: ffffed10171c6daa R12: ffffffff8e4a8828
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffffffff1952670
arch_safe_halt arch/x86/include/asm/paravirt.h:108 [inline]
default_idle+0x13/0x20 arch/x86/kernel/process.c:753
default_idle_call+0x6c/0xa0 kernel/sched/idle.c:97
cpuidle_idle_call kernel/sched/idle.c:170 [inline]
do_idle+0x1eb/0x510 kernel/sched/idle.c:282
cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:380
rest_init+0x2e2/0x300 init/main.c:732
arch_call_rest_init+0xe/0x10 init/main.c:829
start_kernel+0x459/0x4e0 init/main.c:1074
x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555
x86_64_start_kernel+0x60/0x60 arch/x86/kernel/head64.c:536
secondary_startup_64_no_verify+0x179/0x17b
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:loopback_jiffies_timer_pos_update+0x13c/0x1250 sound/drivers/aloop.c:619
Code: fb 49 f9 44 89 f8 83 e0 02 44 89 7c 24 3c 75 0a e8 79 f7 49 f9 45 31 ff eb 27 e8 6f f7 49 f9 49 8d 5d 48 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 86 3e a1 f9 4d 89 f7 4c 2b 3b 4c 89
RSP: 0018:ffffc90000007ac8 EFLAGS: 00010006
RAX: 0000000000000009 RBX: 0000000000000048 RCX: ffffffff8ca93380
RDX: 0000000000000100 RSI: 0000000000000002 RDI: 0000000000000000
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000000f48 R12: 0000000000000002
R13: 0000000000000000 R14: 00000000ffffd239 R15: 0000000000000003
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2e36ca CR3: 0000000061d78000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
0: fb sti
1: 49 f9 rex.WB stc
3: 44 89 f8 mov %r15d,%eax
6: 83 e0 02 and $0x2,%eax
9: 44 89 7c 24 3c mov %r15d,0x3c(%rsp)
e: 75 0a jne 0x1a
10: e8 79 f7 49 f9 call 0xf949f78e
15: 45 31 ff xor %r15d,%r15d
18: eb 27 jmp 0x41
1a: e8 6f f7 49 f9 call 0xf949f78e
1f: 49 8d 5d 48 lea 0x48(%r13),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 86 3e a1 f9 call 0xf9a13ebe
38: 4d 89 f7 mov %r14,%r15
3b: 4c 2b 3b sub (%rbx),%r15
3e: 4c rex.WR
3f: 89 .byte 0x89


---
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 report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

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

syzbot

unread,
Aug 23, 2025, 9:52:29 AM8/23/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: bb9c90ab9c5a Linux 6.6.102
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12c527bc580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7b989b97a0687b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=c073e705e8e5c8f8c003
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15196a34580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/44e2224124c3/disk-bb9c90ab.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/33e0aef7ff42/vmlinux-bb9c90ab.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0515bc436228/bzImage-bb9c90ab.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c073e7...@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: 1 PID: 6053 Comm: syz.1.22 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:loopback_jiffies_timer_pos_update+0x13c/0x1250 sound/drivers/aloop.c:619
Code: fb 49 f9 44 89 f8 83 e0 02 44 89 7c 24 3c 75 0a e8 79 f7 49 f9 45 31 ff eb 27 e8 6f f7 49 f9 49 8d 5d 48 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 86 3e a1 f9 4d 89 f7 4c 2b 3b 4c 89
RSP: 0018:ffffc900038471a8 EFLAGS: 00010006
RAX: 0000000000000009 RBX: 0000000000000048 RCX: ffff88802dba8000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000708e38 R12: 0000000000000006
R13: 0000000000000000 R14: 00000000ffffba9d R15: 0000000000000003
FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5314456ff0 CR3: 000000002f7c3000 CR4: 00000000003506e0
Call Trace:
<TASK>
loopback_pointer+0xf8/0x1a0 sound/drivers/aloop.c:871
snd_pcm_update_hw_ptr0+0x178/0x1a40 sound/core/pcm_lib.c:304
snd_pcm_update_hw_ptr sound/core/pcm_lib.c:496 [inline]
__snd_pcm_lib_xfer+0x50f/0x1c40 sound/core/pcm_lib.c:2262
snd_pcm_oss_write3+0x1bc/0x320 sound/core/oss/pcm_oss.c:1252
snd_pcm_plug_write_transfer+0x2b8/0x4a0 sound/core/oss/pcm_plugin.c:630
snd_pcm_oss_write2 sound/core/oss/pcm_oss.c:1384 [inline]
snd_pcm_oss_sync1+0x285/0x6e0 sound/core/oss/pcm_oss.c:1626
snd_pcm_oss_sync+0x7d4/0xc20 sound/core/oss/pcm_oss.c:1692
snd_pcm_oss_release+0x102/0x240 sound/core/oss/pcm_oss.c:2589
__fput+0x234/0x970 fs/file_table.c:384
task_work_run+0x1ce/0x250 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0x90b/0x23c0 kernel/exit.c:883
do_group_exit+0x21b/0x2d0 kernel/exit.c:1024
get_signal+0x12fc/0x1400 kernel/signal.c:2902
arch_do_signal_or_restart+0x96/0x780 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0e78f8ebe9
Code: Unable to access opcode bytes at 0x7f0e78f8ebbf.
RSP: 002b:00007f0e785dd0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f0e791b6368 RCX: 00007f0e78f8ebe9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f0e791b6368
RBP: 00007f0e791b6360 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0e791b63f8 R14: 00007ffd5903c010 R15: 00007ffd5903c0f8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:loopback_jiffies_timer_pos_update+0x13c/0x1250 sound/drivers/aloop.c:619
Code: fb 49 f9 44 89 f8 83 e0 02 44 89 7c 24 3c 75 0a e8 79 f7 49 f9 45 31 ff eb 27 e8 6f f7 49 f9 49 8d 5d 48 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 86 3e a1 f9 4d 89 f7 4c 2b 3b 4c 89
RSP: 0018:ffffc900038471a8 EFLAGS: 00010006
RAX: 0000000000000009 RBX: 0000000000000048 RCX: ffff88802dba8000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000708e38 R12: 0000000000000006
R13: 0000000000000000 R14: 00000000ffffba9d R15: 0000000000000003
FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5314456ff0 CR3: 000000002f7c3000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
0: fb sti
1: 49 f9 rex.WB stc
3: 44 89 f8 mov %r15d,%eax
6: 83 e0 02 and $0x2,%eax
9: 44 89 7c 24 3c mov %r15d,0x3c(%rsp)
e: 75 0a jne 0x1a
10: e8 79 f7 49 f9 call 0xf949f78e
15: 45 31 ff xor %r15d,%r15d
18: eb 27 jmp 0x41
1a: e8 6f f7 49 f9 call 0xf949f78e
1f: 49 8d 5d 48 lea 0x48(%r13),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 86 3e a1 f9 call 0xf9a13ebe
38: 4d 89 f7 mov %r14,%r15
3b: 4c 2b 3b sub (%rbx),%r15
3e: 4c rex.WR
3f: 89 .byte 0x89


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages