syzbot


WARNING in snd_pcm_plugin_build_mulaw

Status: fixed on 2020/09/25 01:17
Subsystems: sound
[Documentation on labels]
Reported-by: syzbot+23b22dc2e0b81cbfcc95@syzkaller.appspotmail.com
Fix commit: 949a1ebe8cea ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check
First crash: 1308d, last: 1307d
Cause bisection: introduced by (bisect log) :
commit f3ca3f5b0966cfc2737178cca8a7a65b09991898
Author: Fabio Estevam <festevam@gmail.com>
Date: Fri Mar 27 15:57:21 2020 +0000

  dt-bindings: sound: cs42l51: Remove unneeded I2C unit name

Crash: WARNING in snd_pcm_plugin_build_mulaw (log)
Repro: C syz .config
  
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.4 00/62] 4.4.236-rc1 review 66 (66) 2020/09/12 08:08
[PATCH 4.9 00/71] 4.9.236-rc1 review 75 (75) 2020/09/12 08:06
[PATCH 5.8 000/186] 5.8.8-rc1 review 198 (198) 2020/09/10 13:47
[PATCH 5.4 000/129] 5.4.64-rc1 review 135 (135) 2020/09/09 16:40
[PATCH 4.14 00/65] 4.14.197-rc1 review 70 (70) 2020/09/09 16:39
[PATCH 4.19 00/88] 4.19.144-rc1 review 99 (99) 2020/09/09 16:39
WARNING in snd_pcm_plugin_build_mulaw 2 (3) 2020/09/01 12:20
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in snd_pcm_plugin_build_mulaw C done 2 1298d 1308d 1/1 fixed on 2020/10/08 10:22

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6863 at sound/core/oss/mulaw.c:332 snd_pcm_plugin_build_mulaw+0x6b2/0x7e0 sound/core/oss/mulaw.c:332
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6863 Comm: syz-executor868 Not tainted 5.9.0-rc2-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+0x18f/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:231
 __warn.cold+0x20/0x4a kernel/panic.c:600
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234
 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:snd_pcm_plugin_build_mulaw+0x6b2/0x7e0 sound/core/oss/mulaw.c:332
Code: ff e8 a2 28 5e fb 0f 0b 41 bc fa ff ff ff e9 fc fe ff ff e8 90 28 5e fb 0f 0b 41 bc fa ff ff ff e9 ea fe ff ff e8 7e 28 5e fb <0f> 0b 41 bc fa ff ff ff e9 d8 fe ff ff e8 ec 40 9e fb e9 7b fa ff
RSP: 0018:ffffc90001517910 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc900015179f8 RCX: ffffffff86161229
RDX: ffff88809471c000 RSI: ffffffff86161692 RDI: 0000000000000005
RBP: 1ffff920002a2f24 R08: 0000000000000000 R09: ffffffff8ab2364f
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90001517a18
R13: ffffc90001517a38 R14: 0000000000000000 R15: ffffc90001517a18
 snd_pcm_plug_format_plugins+0xb76/0x1360 sound/core/oss/pcm_plugin.c:494
 snd_pcm_oss_change_params_locked+0x3015/0x3430 sound/core/oss/pcm_oss.c:952
 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1084 [inline]
 snd_pcm_oss_make_ready+0xe6/0x2e0 sound/core/oss/pcm_oss.c:1143
 snd_pcm_oss_sync+0x2e0/0x800 sound/core/oss/pcm_oss.c:1642
 snd_pcm_oss_release+0x276/0x300 sound/core/oss/pcm_oss.c:2546
 __fput+0x285/0x920 fs/file_table.c:281
 task_work_run+0xdd/0x190 kernel/task_work.c:141
 exit_task_work include/linux/task_work.h:25 [inline]
 do_exit+0xb7d/0x29f0 kernel/exit.c:806
 do_group_exit+0x125/0x310 kernel/exit.c:903
 __do_sys_exit_group kernel/exit.c:914 [inline]
 __se_sys_exit_group kernel/exit.c:912 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:912
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440038
Code: Bad RIP value.
RSP: 002b:00007ffd5c7994d8 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
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/28 21:43 upstream 15bc20c6af4c d5a3ae1f .config console log report syz C ci-upstream-kasan-gce-root
2020/08/28 21:41 upstream 15bc20c6af4c d5a3ae1f .config console log report syz C ci-upstream-kasan-gce
2020/08/28 10:00 upstream 15bc20c6af4c 816e0689 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/29 13:00 linux-next b36c969764ab d5a3ae1f .config console log report syz C ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.