syzbot


WARNING in snd_info_get_line
Status: fixed on 2020/09/16 22:51
Reported-by: syzbot+e42d0746c3c3699b6061@syzkaller.appspotmail.com
Fix commit: 60379ba08532 ALSA: info: Drop WARN_ON() from buffer NULL sanity check
First crash: 677d, last: 672d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in snd_info_get_line C done 23 665d 678d 1/1 fixed on 2020/08/28 16:06
linux-4.14 WARNING in snd_info_get_line C error 23 665d 678d 0/1 upstream: reported C repro on 2020/07/16 16:52

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6804 at sound/core/info.c:609 snd_info_get_line+0x3d0/0x450 sound/core/info.c:609
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6804 Comm: syz-executor373 Not tainted 5.8.0-rc5-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+0x1f0/0x31e lib/dump_stack.c:118
 panic+0x264/0x7a0 kernel/panic.c:231
 __warn+0x227/0x250 kernel/panic.c:600
 report_bug+0x1b1/0x2e0 lib/bug.c:198
 handle_bug+0x42/0x80 arch/x86/kernel/traps.c:235
 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:255
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:542
RIP: 0010:snd_info_get_line+0x3d0/0x450 sound/core/info.c:609
Code: 0f 85 84 00 00 00 41 c6 45 00 00 31 ed 89 e8 48 83 c4 40 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 57 8a 3b fb eb 05 e8 50 8a 3b fb <0f> 0b bd 01 00 00 00 eb da 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a3
RSP: 0018:ffffc90001077a38 EFLAGS: 00010293
RAX: ffffffff86390470 RBX: 0000000000000080 RCX: ffff888096156500
RDX: 0000000000000000 RSI: ffffc90001077b10 RDI: ffff8880a1e30600
RBP: ffffc90001077bc8 R08: dffffc0000000000 R09: ffffed10429a6594
R10: ffffed10429a6594 R11: 0000000000000000 R12: ffff8880a2527908
R13: ffffc90001077b10 R14: 1ffff110143c60c0 R15: ffff8880a1e30600
 snd_mixer_oss_proc_write+0x6d/0x670 sound/core/oss/mixer_oss.c:1179
 snd_info_text_entry_release+0xdf/0x1c0 sound/core/info.c:409
 close_pdeo+0x16c/0x310 fs/proc/inode.c:244
 proc_reg_release+0x17c/0x1c0 fs/proc/inode.c:561
 __fput+0x2f0/0x750 fs/file_table.c:281
 task_work_run+0x137/0x1c0 kernel/task_work.c:135
 exit_task_work include/linux/task_work.h:25 [inline]
 do_exit+0x601/0x1f80 kernel/exit.c:805
 do_group_exit+0x161/0x2d0 kernel/exit.c:903
 __do_sys_exit_group+0x13/0x20 kernel/exit.c:914
 __se_sys_exit_group+0x10/0x10 kernel/exit.c:912
 __x64_sys_exit_group+0x37/0x40 kernel/exit.c:912
 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x43eeb8
Code: Bad RIP value.
RSP: 002b:00007ffce5a0e308 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 (36):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2020/07/17 06:38 upstream f8456690ba8e 54b3c45e .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/07/17 06:34 upstream f8456690ba8e 54b3c45e .config log report syz C
ci-upstream-kasan-gce-root 2020/07/17 03:24 upstream f8456690ba8e 54b3c45e .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/07/17 02:59 upstream f8456690ba8e 54b3c45e .config log report syz C
ci-upstream-kasan-gce 2020/07/22 15:08 upstream 4fa640dc5230 128cd85f .config log report
ci-upstream-kasan-gce-smack-root 2020/07/21 22:39 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/21 22:25 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-root 2020/07/21 22:23 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-root 2020/07/21 22:23 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce 2020/07/21 22:15 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce 2020/07/21 22:15 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce 2020/07/21 22:15 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-smack-root 2020/07/21 13:00 upstream 4fa640dc5230 d88894e6 .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/19 19:57 upstream f932d58abc38 9c812472 .config log report
ci-upstream-kasan-gce-smack-root 2020/07/19 19:42 upstream f932d58abc38 9c812472 .config log report
ci-upstream-kasan-gce-smack-root 2020/07/19 19:40 upstream f932d58abc38 9c812472 .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/19 19:38 upstream f932d58abc38 9c812472 .config log report
ci-upstream-kasan-gce 2020/07/19 19:34 upstream f932d58abc38 9c812472 .config log report
ci-upstream-kasan-gce 2020/07/19 19:28 upstream f932d58abc38 9c812472 .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/19 03:34 upstream 6a70f89cc58f 9c812472 .config log report
ci-upstream-kasan-gce-root 2020/07/18 22:21 upstream 6a70f89cc58f 9c812472 .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/18 10:04 upstream 8882572675c1 9c812472 .config log report
ci-upstream-kasan-gce-smack-root 2020/07/17 06:17 upstream f8456690ba8e 54b3c45e .config log report
ci-upstream-kasan-gce 2020/07/17 06:12 upstream f8456690ba8e 54b3c45e .config log report
ci-qemu-upstream 2020/07/17 06:02 upstream 07a56bb875af 54b3c45e .config log report
ci-upstream-kasan-gce-root 2020/07/17 06:02 upstream f8456690ba8e 54b3c45e .config log report
ci-upstream-kasan-gce-386 2020/07/21 23:03 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-386 2020/07/21 22:51 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-386 2020/07/21 22:20 upstream 4fa640dc5230 21f1765e .config log report
ci-upstream-kasan-gce-386 2020/07/18 03:50 upstream 8882572675c1 9c812472 .config log report
ci-upstream-kasan-gce-386 2020/07/17 06:05 upstream f8456690ba8e 54b3c45e .config log report
ci-qemu-upstream-386 2020/07/17 06:03 upstream 07a56bb875af 54b3c45e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/20 06:20 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/19 19:36 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/19 07:41 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/17 06:18 linux-next 4c43049f19a2 54b3c45e .config log report