================================================================== BUG: KASAN: null-ptr-deref in snd_pcm_format_set_silence+0x258/0x1310 sound/core/pcm_misc.c:441 Write of size 16383 at addr 0000000000000001 by task syz-executor.4/3900 CPU: 1 PID: 3900 Comm: syz-executor.4 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_report+0xdd/0x210 mm/kasan/report.c:432 kasan_report+0xfb/0x130 mm/kasan/report.c:491 kasan_check_range+0x2a7/0x2e0 mm/kasan/generic.c:189 memset+0x1f/0x40 mm/kasan/shadow.c:44 snd_pcm_format_set_silence+0x258/0x1310 sound/core/pcm_misc.c:441 snd_pcm_oss_sync+0x9a9/0xf00 sound/core/oss/pcm_oss.c:1690 snd_pcm_oss_ioctl+0x57a/0xe90 sound/core/oss/pcm_oss.c:2634 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5259689209 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f525a806168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f525979bf60 RCX: 00007f5259689209 RDX: 0000000000000000 RSI: 0000000000005001 RDI: 0000000000000003 RBP: 00007f52596e3161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd46cab25f R14: 00007f525a806300 R15: 0000000000022000 ==================================================================