syzbot


WARNING: kmalloc bug in snd_pcm_plugin_alloc

Status: fixed on 2022/03/08 16:11
Subsystems: sound
[Documentation on labels]
Reported-by: syzbot+bb348e9f9a954d42746f@syzkaller.appspotmail.com
Fix commit: 9d2479c96087 ALSA: pcm: oss: Fix negative period/buffer sizes 8839c8c0f77a ALSA: pcm: oss: Limit the period size to 16MB
First crash: 879d, last: 792d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 5.10 000/132] 5.10.85-rc1 review 152 (152) 2021/12/29 11:12
[PATCH 4.19 00/74] 4.19.221-rc1 review 87 (87) 2021/12/15 17:54
[PATCH 5.4 00/88] 5.4.165-rc1 review 95 (95) 2021/12/15 00:50
[PATCH 4.14 00/53] 4.14.258-rc1 review 57 (57) 2021/12/14 09:09
[PATCH 4.4 00/37] 4.4.295-rc1 review 42 (42) 2021/12/14 08:01
[PATCH 4.9 00/42] 4.9.293-rc1 review 47 (47) 2021/12/14 05:53
[PATCH 5.15 000/171] 5.15.8-rc1 review 179 (179) 2021/12/13 22:46
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: kmalloc bug in snd_pcm_plugin_alloc (2) sound C done 2 768d 764d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9676 at mm/util.c:597 kvmalloc_node+0x111/0x120 mm/util.c:597
Modules linked in:
CPU: 0 PID: 9676 Comm: syz-executor.0 Not tainted 5.16.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kvmalloc_node+0x111/0x120 mm/util.c:597
Code: 01 00 00 00 4c 89 e7 e8 3d f7 0c 00 49 89 c5 e9 69 ff ff ff e8 30 1e d1 ff 41 89 ed 41 81 cd 00 20 01 00 eb 95 e8 1f 1e d1 ff <0f> 0b e9 4c ff ff ff 0f 1f 84 00 00 00 00 00 55 48 89 fd 53 e8 06
RSP: 0018:ffffc900029bfb30 EFLAGS: 00010216
RAX: 000000000000d08f RBX: ffff888099079800 RCX: ffffc90002fd2000
RDX: 0000000000040000 RSI: ffffffff81a68ca1 RDI: 0000000000000003
RBP: 0000000000000dc0 R08: 000000007fffffff R09: 00000000ffffffff
R10: ffffffff81a68c5e R11: 0000000000000000 R12: 00000000c0c0c100
R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
FS:  00007f5b00711700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f785af4d2d8 CR3: 00000000804d1000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 kvmalloc include/linux/slab.h:741 [inline]
 kvzalloc include/linux/slab.h:749 [inline]
 snd_pcm_plugin_alloc+0x577/0x780 sound/core/oss/pcm_plugin.c:71
 snd_pcm_plug_alloc+0x20d/0x310 sound/core/oss/pcm_plugin.c:118
 snd_pcm_oss_change_params_locked+0x1f8b/0x3a60 sound/core/oss/pcm_oss.c:1028
 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1091 [inline]
 snd_pcm_oss_get_active_substream+0x164/0x1c0 sound/core/oss/pcm_oss.c:1108
 snd_pcm_oss_get_rate sound/core/oss/pcm_oss.c:1765 [inline]
 snd_pcm_oss_set_rate sound/core/oss/pcm_oss.c:1757 [inline]
 snd_pcm_oss_ioctl+0x144f/0x3430 sound/core/oss/pcm_oss.c:2619
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5b031bcae9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5b00711188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5b032d0020 RCX: 00007f5b031bcae9
RDX: 0000000020000140 RSI: 00000000c0045002 RDI: 0000000000000004
RBP: 00007f5b03216f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc0cee9c3f R14: 00007f5b00711300 R15: 0000000000022000
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/02 05:30 upstream 58e1100fdc59 61f86278 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in snd_pcm_plugin_alloc
2022/02/16 05:48 upstream 705d84a366cf 8b9ca619 .config console log report info ci-qemu-upstream-386 WARNING: kmalloc bug in snd_pcm_plugin_alloc
2021/12/01 01:18 upstream f080815fdb3e 80270552 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in snd_pcm_plugin_alloc
2021/11/21 23:47 linux-next 5191249f8803 4eb20a4e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: kmalloc bug in snd_pcm_plugin_alloc
* Struck through repros no longer work on HEAD.