WARNING in snd_info_get_line

13 views
Skip to first unread message

syzbot

unread,
Jul 16, 2020, 9:18:15 AM7/16/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 17a87580 Linux 4.19.133
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=130fdbe0900000
kernel config: https://syzkaller.appspot.com/x/.config?x=79a039577e78d289
dashboard link: https://syzkaller.appspot.com/bug?extid=4db5df155d3adf0981b9
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1508d1c7100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=123e7af7100000

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

audit: type=1400 audit(1594905362.617:8): avc: denied { execmem } for pid=6457 comm="syz-executor187" 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: 6457 at sound/core/info.c:637 snd_info_get_line.cold+0x11/0x20 sound/core/info.c:637
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 6457 Comm: syz-executor187 Not tainted 4.19.133-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_info_get_line.cold+0x11/0x20 sound/core/info.c:637
Code: 31 c0 5b 5d c3 48 89 ef e8 9e df 15 fc eb be 48 89 ef e8 64 e2 15 fc eb d7 e8 9d c2 df fb 48 c7 c7 60 0e 22 88 e8 40 d5 ca fb <0f> 0b c7 44 24 0c 01 00 00 00 e9 9f cf ff ff e8 7d c2 df fb 48 c7
RSP: 0018:ffff8880a4c17978 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880a910e200 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8154cd91 RDI: ffffed1014982f21
RBP: 0000000000000080 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888094784540
R13: dffffc0000000000 R14: ffff8880a8641108 R15: ffff8880a910e200
snd_mixer_oss_proc_write+0xe2/0x530 sound/core/oss/mixer_oss.c:1192
snd_info_text_entry_release+0xfa/0x260 sound/core/info.c:425
close_pdeo.part.0+0xda/0x2f0 fs/proc/inode.c:176
close_pdeo fs/proc/inode.c:401 [inline]
proc_reg_release+0x21e/0x270 fs/proc/inode.c:395
__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:0x43eeb8
Code: Bad RIP value.
RSP: 002b:00007ffed49c2ff8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043eeb8
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be6c8 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Jul 16, 2020, 12:52:18 PM7/16/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b850307b Linux 4.14.184
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14267ad0900000
kernel config: https://syzkaller.appspot.com/x/.config?x=ddc0f08dd6b981c5
dashboard link: https://syzkaller.appspot.com/bug?extid=9d7704c8285bc6d6ee49
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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+9d7704...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 25488 at sound/core/info.c:637 snd_info_get_line+0x1fd/0x2d0 sound/core/info.c:637
Kernel panic - not syncing: panic_on_warn set ...

ALSA: mixer_oss: invalid OSS volume '#!'
CPU: 1 PID: 25488 Comm: syz-executor.3 Not tainted 4.14.184-syzkaller #0
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+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
ALSA: mixer_oss: invalid OSS volume ' x^�\��(�'
__warn.cold+0x2f/0x30 kernel/panic.c:547
ALSA: mixer_oss: invalid OSS volume 'Z�6j�b��'
report_bug+0x20a/0x248 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
ALSA: mixer_oss: invalid OSS volume '��� � �[�v �������D�l� A�P�� '
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
ALSA: mixer_oss: invalid OSS volume 'Q@ut ܹ� �A h FSD;�������5fO_�('
RIP: 0010:snd_info_get_line+0x1fd/0x2d0 sound/core/info.c:637
RSP: 0018:ffff8882173ffab0 EFLAGS: 00010297
RAX: ffff88802bcde080 RBX: ffff88805aee6e40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8882173ffbb0 RDI: ffff88805aee6e40
ALSA: mixer_oss: invalid OSS volume '��ɭ�l����]���o�\��m;�ʎE����p'
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: ffff88802bcde908 R11: ffff88802bcde080 R12: ffff88809ff69540
R13: 0000000000000080 R14: ffff88809baf09c0 R15: ffff88805aee6e40
snd_mixer_oss_proc_write+0xc9/0x480 sound/core/oss/mixer_oss.c:1192
ALSA: mixer_oss: invalid OSS volume 'B��e�_�}wV_o~� �{�f� � �oS��&�'
ALSA: mixer_oss: invalid OSS volume 'Q�=�RT�1��. gҰn�Cہ?Dܴ�'
snd_info_text_entry_release+0xfa/0x260 sound/core/info.c:425
close_pdeo.part.0+0xdd/0x2c0 fs/proc/inode.c:165
ALSA: mixer_oss: invalid OSS volume '�{1hIz6�$��'
close_pdeo+0x125/0x140 fs/proc/inode.c:173
ALSA: mixer_oss: invalid OSS volume ' }x� ~���w8��r. 6� ����[�S:
P� '
proc_reg_release+0xca/0x110 fs/proc/inode.c:376
__fput+0x25f/0x7a0 fs/file_table.c:210
task_work_run+0x113/0x190 kernel/task_work.c:113
ALSA: mixer_oss: invalid OSS volume ']�S��2s��m�F �
�PZ�tO�o��}A� '
tracehook_notify_resume include/linux/tracehook.h:191 [inline]
exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x415d51
ALSA: mixer_oss: invalid OSS volume 'j�t��H��L�Y�}��*9�s���T �g��kn�'
RSP: 002b:00007ffe06021350 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000415d51
RDX: 0000001b30620000 RSI: 000000000000015c RDI: 0000000000000003
RBP: 0000000000000001 R08: 000000008068215c R09: 0000000080682160
R10: 00007ffe06021440 R11: 0000000000000293 R12: 0000000000790138
R13: 00000000002eaa34 R14: ffffffffffffffff R15: 000000000078bf0c

syzbot

unread,
Jul 16, 2020, 1:00:23 PM7/16/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: b850307b Linux 4.14.184
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=154d26cf100000
kernel config: https://syzkaller.appspot.com/x/.config?x=ddc0f08dd6b981c5
dashboard link: https://syzkaller.appspot.com/bug?extid=9d7704c8285bc6d6ee49
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=156e76cf100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=115b293b100000

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

audit: type=1400 audit(1594918715.816:8): avc: denied { execmem } for pid=6333 comm="syz-executor562" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6333 at sound/core/info.c:637 snd_info_get_line+0x1fd/0x2d0 sound/core/info.c:637
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 6333 Comm: syz-executor562 Not tainted 4.14.184-syzkaller #0
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+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x30 kernel/panic.c:547
report_bug+0x20a/0x248 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:snd_info_get_line+0x1fd/0x2d0 sound/core/info.c:637
RSP: 0018:ffff8880819079a0 EFLAGS: 00010297
RAX: ffff88809b7c6600 RBX: ffff88809a153580 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff888081907aa0 RDI: ffff88809a153580
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: ffff88809b7c6e88 R11: ffff88809b7c6600 R12: ffff88809b003580
R13: 0000000000000080 R14: ffff888216308700 R15: ffff88809a153580
snd_mixer_oss_proc_write+0xc9/0x480 sound/core/oss/mixer_oss.c:1192
snd_info_text_entry_release+0xfa/0x260 sound/core/info.c:425
close_pdeo.part.0+0xdd/0x2c0 fs/proc/inode.c:165
close_pdeo+0x125/0x140 fs/proc/inode.c:173
proc_reg_release+0xca/0x110 fs/proc/inode.c:376
__fput+0x25f/0x7a0 fs/file_table.c:210
task_work_run+0x113/0x190 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0x9fb/0x2ae0 kernel/exit.c:858
do_group_exit+0x100/0x2e0 kernel/exit.c:955
SYSC_exit_group kernel/exit.c:966 [inline]
SyS_exit_group+0x19/0x20 kernel/exit.c:964
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x43eeb8
RSP: 002b:00007ffe8933cb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043eeb8
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be6c8 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000

syzbot

unread,
Aug 28, 2020, 11:45:08 AM8/28/20
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit 0c9d4b18bb8af4fa94e8db5fa4f465bdc2dbaddd
Author: Takashi Iwai <ti...@suse.de>
Date: Fri Jul 17 08:40:23 2020 +0000

ALSA: info: Drop WARN_ON() from buffer NULL sanity check

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17921dd5900000
start commit: 17a87580 Linux 4.19.133
git tree: linux-4.19.y
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12ae31e7100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=173df220900000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: ALSA: info: Drop WARN_ON() from buffer NULL sanity check

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