WARNING in snd_pcm_hw_param_last

8 views
Skip to first unread message

syzbot

unread,
Jan 1, 2018, 1:58:02 PM1/1/18
to alsa-...@alsa-project.org, linux-...@vger.kernel.org, mi...@kernel.org, o-ta...@sakamocchi.jp, pe...@perex.cz, syzkall...@googlegroups.com, ti...@suse.com
Hello,

syzkaller hit the following crash on
30a7acd573899fd8b8ac39236eff6468b195ac7d
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master
compiler: gcc (GCC) 7.1.1 20170620
.config is attached
Raw console output is attached.
syzkaller reproducer is attached. See https://goo.gl/kgGztJ
for information about syzkaller reproducers


IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+a8d726...@syzkaller.appspotmail.com
It will help syzbot understand when the bug is fixed. See footer for
details.
If you forward the report, please keep this part and the footer.

WARNING: CPU: 1 PID: 4856 at sound/core/pcm_lib.c:1681
snd_pcm_hw_param_last+0x28b/0x670 sound/core/pcm_lib.c:1681
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4856 Comm: syz-executor7 Not tainted 4.15.0-rc6+ #245
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
panic+0x1e4/0x41c kernel/panic.c:183
__warn+0x1dc/0x200 kernel/panic.c:547
report_bug+0x211/0x2d0 lib/bug.c:184
fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178
fixup_bug arch/x86/kernel/traps.c:247 [inline]
do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
invalid_op+0x22/0x40 arch/x86/entry/entry_64.S:1079
RIP: 0010:snd_pcm_hw_param_last+0x28b/0x670 sound/core/pcm_lib.c:1681
RSP: 0018:ffff8801d5e07498 EFLAGS: 00010293
RAX: ffff8801d5fe2080 RBX: ffff8801d5587200 RCX: ffffffff841bb75b
RDX: 0000000000000000 RSI: 00000000ffffffea RDI: ffffed003abc0e88
RBP: ffff8801d5e074e0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000a
R13: 00000000ffffffea R14: 0000000000000002 R15: 0000000000000400
snd_pcm_hw_param_near.constprop.27+0x6f5/0x9a0 sound/core/oss/pcm_oss.c:455
snd_pcm_oss_change_params+0xb3d/0x3720 sound/core/oss/pcm_oss.c:878
snd_pcm_oss_get_active_substream+0x10c/0x150 sound/core/oss/pcm_oss.c:1088
snd_pcm_oss_get_channels sound/core/oss/pcm_oss.c:1708 [inline]
snd_pcm_oss_set_channels+0x23e/0x3a0 sound/core/oss/pcm_oss.c:1700
snd_pcm_oss_ioctl+0x1dcc/0x39f0 sound/core/oss/pcm_oss.c:2514
vfs_ioctl fs/ioctl.c:46 [inline]
do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
entry_SYSCALL_64_fastpath+0x23/0x9a
RIP: 0033:0x452ac9
RSP: 002b:00007fa5a61bec58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000071bf58 RCX: 0000000000452ac9
RDX: 0000000020004ff8 RSI: 00800000c0045006 RDI: 0000000000000003
RBP: 00000000000000ef R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ef708
R13: 00000000ffffffff R14: 00007fa5a61bf6d4 R15: 0000000000000002
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug is generated by a dumb bot. It may contain errors.
See https://goo.gl/tpsmEJ for details.
Direct all questions to syzk...@googlegroups.com.

syzbot will keep track of this bug report.
If you forgot to add the Reported-by tag, once the fix for this bug is
merged
into any tree, please reply to this email with:
#syz fix: exact-commit-title
If you want to test a patch for this bug, please reply with:
#syz test: git://repo/address.git branch
and provide the patch inline or as an attachment.
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug
report.
Note: all commands must start from beginning of the line in the email body.
config.txt
raw.log
repro.txt

syzbot

unread,
Jan 2, 2018, 1:13:02 AM1/2/18
to alsa-deve...@alsa-project.org, alsa-...@alsa-project.org, linux-...@vger.kernel.org, mi...@kernel.org, o-ta...@sakamocchi.jp, pe...@perex.cz, syzkall...@googlegroups.com, ti...@suse.com
syzkaller has found reproducer for the following crash on
30a7acd573899fd8b8ac39236eff6468b195ac7d
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master
compiler: gcc (GCC) 7.1.1 20170620
.config is attached
Raw console output is attached.
C reproducer is attached
syzkaller reproducer is attached. See https://goo.gl/kgGztJ
for information about syzkaller reproducers


IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+a8d726...@syzkaller.appspotmail.com
It will help syzbot understand when the bug is fixed.

WARNING: CPU: 0 PID: 3647 at sound/core/pcm_lib.c:1681
snd_pcm_hw_param_last+0x28b/0x670 sound/core/pcm_lib.c:1681
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 3647 Comm: syzkaller312889 Not tainted 4.15.0-rc6+ #245
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
panic+0x1e4/0x41c kernel/panic.c:183
__warn+0x1dc/0x200 kernel/panic.c:547
report_bug+0x211/0x2d0 lib/bug.c:184
fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178
fixup_bug arch/x86/kernel/traps.c:247 [inline]
do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
invalid_op+0x22/0x40 arch/x86/entry/entry_64.S:1079
RIP: 0010:snd_pcm_hw_param_last+0x28b/0x670 sound/core/pcm_lib.c:1681
RSP: 0000:ffff8801d0597340 EFLAGS: 00010293
RAX: ffff8801be9526c0 RBX: ffff8801bf6b1b40 RCX: ffffffff841bb75b
RDX: 0000000000000000 RSI: 00000000ffffffea RDI: ffffed003a0b2e60
RBP: ffff8801d0597388 R08: ffffed003a0b2d97 R09: ffff8801d0596cb0
R10: 0000000000000001 R11: ffffed003a0b2d96 R12: 000000000000000f
R13: 00000000ffffffea R14: 0000000000000007 R15: 0000000000008000
snd_pcm_hw_param_near.constprop.27+0x6f5/0x9a0 sound/core/oss/pcm_oss.c:455
snd_pcm_oss_change_params+0x1833/0x3720 sound/core/oss/pcm_oss.c:973
snd_pcm_oss_make_ready+0xaa/0x130 sound/core/oss/pcm_oss.c:1128
snd_pcm_oss_sync+0x34b/0x830 sound/core/oss/pcm_oss.c:1578
snd_pcm_oss_release+0x20b/0x280 sound/core/oss/pcm_oss.c:2431
__fput+0x327/0x7e0 fs/file_table.c:210
____fput+0x15/0x20 fs/file_table.c:244
task_work_run+0x199/0x270 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0x9bb/0x1ad0 kernel/exit.c:865
do_group_exit+0x149/0x400 kernel/exit.c:968
SYSC_exit_group kernel/exit.c:979 [inline]
SyS_exit_group+0x1d/0x20 kernel/exit.c:977
entry_SYSCALL_64_fastpath+0x23/0x9a
RIP: 0033:0x444509
RSP: 002b:00007ffc1a9636b8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444509
RDX: 0000000000400eb0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 000000000000896d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000401e10 R14: 0000000000000000 R15: 0000000000000000
config.txt
raw.log
repro.txt
repro.c

syzbot

unread,
Jan 2, 2018, 9:05:37 AM1/2/18
to Takashi Iwai, ti...@suse.de, syzkall...@googlegroups.com
> #syz dup: WARNING in snd_pcm_hw_param_first

Your 'dup:' command is accepted, but please keep
syzkall...@googlegroups.com mailing list in CC next time. It serves as
a history of what happened with each bug report. Thank you.

Reply all
Reply to author
Forward
0 new messages