syzbot


WARNING in snd_info_get_line

Status: fixed on 2020/08/28 16:06
Reported-by: syzbot+4db5df155d3adf0981b9@syzkaller.appspotmail.com
Fix commit: 0c9d4b18bb8a ALSA: info: Drop WARN_ON() from buffer NULL sanity check
First crash: 1580d, last: 1568d
Fix bisection: fixed by (bisect log) :
commit 0c9d4b18bb8af4fa94e8db5fa4f465bdc2dbaddd
Author: Takashi Iwai <tiwai@suse.de>
Date: Fri Jul 17 08:40:23 2020 +0000

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

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in snd_info_get_line sound C done 36 1574d 1579d 15/28 fixed on 2020/09/16 22:51
linux-4.14 WARNING in snd_info_get_line C error 23 1568d 1580d 0/1 upstream: reported C repro on 2020/07/16 16:52

Sample crash report:
audit: type=1400 audit(1594919813.384:8): avc:  denied  { execmem } for  pid=6446 comm="syz-executor211" 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: 6446 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: 1 PID: 6446 Comm: syz-executor211 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:ffff8880a65e7978 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880a7fb4400 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8154cd91 RDI: ffffed1014cbcf21
RBP: 0000000000000080 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808a721780
R13: dffffc0000000000 R14: ffff88809968d348 R15: ffff8880a7fb4400
 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:00007ffc59adbd48 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..

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/16 17:18 linux-4.19.y 17a87580a885 b090c643 .config console log report syz C ci2-linux-4-19
2020/07/16 13:17 linux-4.19.y 17a87580a885 b090c643 .config console log report syz C ci2-linux-4-19
2020/07/29 03:44 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/29 01:20 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/28 22:40 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/28 02:15 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/28 02:09 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/27 20:27 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/27 15:43 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/26 07:56 linux-4.19.y 20b3a3dfdf6c 1f7cc1ca .config console log report ci2-linux-4-19
2020/07/26 07:53 linux-4.19.y 20b3a3dfdf6c 1f7cc1ca .config console log report ci2-linux-4-19
2020/07/23 23:59 linux-4.19.y 20b3a3dfdf6c 70c104a1 .config console log report ci2-linux-4-19
2020/07/23 07:30 linux-4.19.y 20b3a3dfdf6c 340ea530 .config console log report ci2-linux-4-19
2020/07/21 22:23 linux-4.19.y 17a87580a885 e562dd8a .config console log report ci2-linux-4-19
2020/07/21 22:23 linux-4.19.y 17a87580a885 e562dd8a .config console log report ci2-linux-4-19
2020/07/21 22:23 linux-4.19.y 17a87580a885 e562dd8a .config console log report ci2-linux-4-19
2020/07/21 12:54 linux-4.19.y 17a87580a885 d88894e6 .config console log report ci2-linux-4-19
2020/07/19 19:34 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/18 23:06 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/18 06:31 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/17 18:56 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/17 06:02 linux-4.19.y 17a87580a885 54b3c45e .config console log report ci2-linux-4-19
2020/07/16 16:56 linux-4.19.y 17a87580a885 b090c643 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.