WARNING in snd_pcm_plugin_build_mulaw

5 views
Skip to first unread message

syzbot

unread,
Aug 28, 2020, 4:43:22 AM8/28/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: f6d5cb9e Linux 4.19.142
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14bfd0d1900000
kernel config: https://syzkaller.appspot.com/x/.config?x=30067df04d3254aa
dashboard link: https://syzkaller.appspot.com/bug?extid=313082e3b7ca7ddfa35d
compiler: gcc (GCC) 10.1.0-syz 20200507

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

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

WARNING: CPU: 0 PID: 27079 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: 27079 Comm: syz-executor.1 Not tainted 4.19.142-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 fa 22 88 e8 a9 c5 c1 fb 0f 0b 49 c7 c4 fa ff ff ff e9 df e8 ff ff e8 27 b9 d6 fb 48 c7 c7 e0 fa 22 88 e8 8a c5 c1 fb <0f> 0b 41 bc fa ff ff ff e9 85 fd ff ff e8 09 b9 d6 fb 48 c7 c7 e0
RSP: 0018:ffff88804519f7d8 EFLAGS: 00010286
RAX: 0000000000000024 RBX: ffff88804519f8c0 RCX: 0000000000000000
RDX: 0000000000017ae4 RSI: ffffffff8154d001 RDI: ffffed1008a33eed
RBP: 1ffff11008a33efd R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88804519f8e0
R13: ffff88804519f900 R14: 0000000000000000 R15: ffff88804519f900
snd_pcm_plug_format_plugins+0xb70/0x1360 sound/core/oss/pcm_plugin.c:518
snd_pcm_oss_change_params_locked+0x2a88/0x35c0 sound/core/oss/pcm_oss.c:970
snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1102 [inline]
snd_pcm_oss_get_active_substream+0x164/0x1c0 sound/core/oss/pcm_oss.c:1119
snd_pcm_oss_get_formats+0x75/0x340 sound/core/oss/pcm_oss.c:1831
snd_pcm_oss_set_format sound/core/oss/pcm_oss.c:1872 [inline]
snd_pcm_oss_ioctl+0x145f/0x3380 sound/core/oss/pcm_oss.c:2632
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5b9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f51b9766c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000015cc0 RCX: 000000000045d5b9
RDX: 0000000020000000 RSI: 00000000c0045005 RDI: 0000000000000003
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffc8e20005f R14: 00007f51b97679c0 R15: 000000000118cf4c
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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.

syzbot

unread,
Sep 7, 2020, 2:19:18 AM9/7/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c37da90e Linux 4.19.143
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12be4245900000
kernel config: https://syzkaller.appspot.com/x/.config?x=d162ec57805c4e4d
dashboard link: https://syzkaller.appspot.com/bug?extid=313082e3b7ca7ddfa35d
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d5880d900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=179ae245900000

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

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 ]---

syzbot

unread,
Oct 7, 2020, 6:03:12 AM10/7/20
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit 569e1b621797a9cdba8369f45fc5612ce1bec323
Author: Takashi Iwai <ti...@suse.de>
Date: Tue Sep 1 13:18:02 2020 +0000

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

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12b15c77900000
start commit: c37da90e Linux 4.19.143
git tree: linux-4.19.y
If the result looks correct, please mark the issue as fixed by replying with:

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

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages