syzbot


WARNING in snd_pcm_plugin_build_mulaw

Status: fixed on 2020/10/08 10:22
Reported-by: syzbot+313082e3b7ca7ddfa35d@syzkaller.appspotmail.com
Fix commit: 569e1b621797 ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check
First crash: 1336d, last: 1326d
Fix bisection: fixed by (bisect log) :
commit 569e1b621797a9cdba8369f45fc5612ce1bec323
Author: Takashi Iwai <tiwai@suse.de>
Date: Tue Sep 1 13:18:02 2020 +0000

  ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in snd_pcm_plugin_build_mulaw sound C done 4 1334d 1332d 15/26 fixed on 2020/09/25 01:17

Sample crash report:
audit: type=1400 audit(1599459437.406:8): avc:  denied  { execmem } for  pid=6471 comm="syz-executor116" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6488 at sound/core/oss/mulaw.c:332 snd_pcm_plugin_build_mulaw.cold+0x11/0x7c sound/core/oss/mulaw.c:332
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 6488 Comm: syz-executor116 Not tainted 4.19.143-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2fe lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x61 kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:snd_pcm_plugin_build_mulaw.cold+0x11/0x7c sound/core/oss/mulaw.c:332
Code: c7 c7 e0 fe 22 88 e8 d9 b6 c1 fb 0f 0b 49 c7 c4 fa ff ff ff e9 df e8 ff ff e8 a7 aa d6 fb 48 c7 c7 e0 fe 22 88 e8 ba b6 c1 fb <0f> 0b 41 bc fa ff ff ff e9 85 fd ff ff e8 89 aa d6 fb 48 c7 c7 e0
RSP: 0018:ffff88809723f8c8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff88809723f9b0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8154d001 RDI: ffffed1012e47f0b
------------[ cut here ]------------
RBP: 1ffff11012e47f1b R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809723f9d0
R13: ffff88809723f9f0 R14: 0000000000000000 R15: ffff88809723f9f0
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6489 at sound/core/oss/mulaw.c:332 snd_pcm_plugin_build_mulaw.cold+0x11/0x7c sound/core/oss/mulaw.c:332
 snd_pcm_plug_format_plugins+0xb70/0x1360 sound/core/oss/pcm_plugin.c:518
Modules linked in:
CPU: 1 PID: 6489 Comm: syz-executor116 Not tainted 4.19.143-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 snd_pcm_oss_change_params_locked+0x2a88/0x35c0 sound/core/oss/pcm_oss.c:970
RIP: 0010:snd_pcm_plugin_build_mulaw.cold+0x11/0x7c sound/core/oss/mulaw.c:332
Code: c7 c7 e0 fe 22 88 e8 d9 b6 c1 fb 0f 0b 49 c7 c4 fa ff ff ff e9 df e8 ff ff e8 a7 aa d6 fb 48 c7 c7 e0 fe 22 88 e8 ba b6 c1 fb <0f> 0b 41 bc fa ff ff ff e9 85 fd ff ff e8 89 aa d6 fb 48 c7 c7 e0
RSP: 0018:ffff88809588f8c8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff88809588f9b0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8154d001 RDI: ffffed1012b11f0b
RBP: 1ffff11012b11f1b R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809588f9d0
 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1102 [inline]
 snd_pcm_oss_make_ready+0xe6/0x2e0 sound/core/oss/pcm_oss.c:1161
R13: ffff88809588f9f0 R14: 0000000000000000 R15: ffff88809588f9f0
 snd_pcm_oss_sync+0x1de/0x800 sound/core/oss/pcm_oss.c:1722
FS:  00000000026b7880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 snd_pcm_oss_release+0x26c/0x300 sound/core/oss/pcm_oss.c:2561
CR2: 00000000006cb090 CR3: 00000000946cf000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 __fput+0x2ce/0x890 fs/file_table.c:278
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
Call Trace:
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xbb2/0x2b70 kernel/exit.c:887
 snd_pcm_plug_format_plugins+0xb70/0x1360 sound/core/oss/pcm_plugin.c:518
 do_group_exit+0x125/0x310 kernel/exit.c:990
 __do_sys_exit_group kernel/exit.c:1001 [inline]
 __se_sys_exit_group kernel/exit.c:999 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:999
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 snd_pcm_oss_change_params_locked+0x2a88/0x35c0 sound/core/oss/pcm_oss.c:970
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440038
Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00
RSP: 002b:00007ffec33666f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440038
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004bf870 R08: 00000000000000e7 R09: ffffffffffffffd0
 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1102 [inline]
 snd_pcm_oss_make_ready+0xe6/0x2e0 sound/core/oss/pcm_oss.c:1161
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
 snd_pcm_oss_sync+0x1de/0x800 sound/core/oss/pcm_oss.c:1722
R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000
 snd_pcm_oss_release+0x26c/0x300 sound/core/oss/pcm_oss.c:2561
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xbb2/0x2b70 kernel/exit.c:887
 do_group_exit+0x125/0x310 kernel/exit.c:990
 __do_sys_exit_group kernel/exit.c:1001 [inline]
 __se_sys_exit_group kernel/exit.c:999 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:999
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440038
Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00
RSP: 002b:00007ffec33666f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440038
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004bf870 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000
irq event stamp: 11282
hardirqs last  enabled at (11281): [<ffffffff873d9df4>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline]
hardirqs last  enabled at (11281): [<ffffffff873d9df4>] _raw_spin_unlock_irq+0x24/0x80 kernel/locking/spinlock.c:192
hardirqs last disabled at (11282): [<ffffffff81005edf>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (9138): [<ffffffff8760069a>] __do_softirq+0x69a/0x9a0 kernel/softirq.c:318
softirqs last disabled at (9117): [<ffffffff813f36f5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (9117): [<ffffffff813f36f5>] irq_exit+0x215/0x260 kernel/softirq.c:412
---[ end trace 7da57833739bf566 ]---
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/07 06:19 linux-4.19.y c37da90efff5 abf9ba4f .config console log report syz C ci2-linux-4-19
2020/08/28 08:42 linux-4.19.y f6d5cb9e2c06 816e0689 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.