IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: use-after-free in snd_mask_test include/sound/pcm_params.h:141 [inline] BUG: KASAN: use-after-free in snd_pcm_oss_get_formats+0x320/0x380 sound/core/oss/pcm_oss.c:1770 Read of size 4 at addr ffff8801b2736da4 by task syz-executor2/4211 CPU: 1 PID: 4211 Comm: syz-executor2 Not tainted 4.16.0-rc4+ #256 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+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23c/0x360 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 snd_mask_test include/sound/pcm_params.h:141 [inline] snd_pcm_oss_get_formats+0x320/0x380 sound/core/oss/pcm_oss.c:1770 snd_pcm_oss_set_format sound/core/oss/pcm_oss.c:1784 [inline] snd_pcm_oss_ioctl+0x1e2f/0x39f0 sound/core/oss/pcm_oss.c:2515 snd_pcm_oss_ioctl_compat+0x24/0x30 sound/core/oss/pcm_oss.c:2619 C_SYSC_ioctl fs/compat_ioctl.c:1461 [inline] compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1407 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f4dc99 RSP: 002b:00000000f7f4909c EFLAGS: 00000286 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000c0045005 RDX: 0000000020000080 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 4211: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 kmem_cache_alloc_trace+0x136/0x740 mm/slab.c:3607 kmalloc include/linux/slab.h:512 [inline] snd_pcm_oss_get_formats+0x1c7/0x380 sound/core/oss/pcm_oss.c:1760 snd_pcm_oss_set_format sound/core/oss/pcm_oss.c:1784 [inline] snd_pcm_oss_ioctl+0x1e2f/0x39f0 sound/core/oss/pcm_oss.c:2515 snd_pcm_oss_ioctl_compat+0x24/0x30 sound/core/oss/pcm_oss.c:2619 C_SYSC_ioctl fs/compat_ioctl.c:1461 [inline] compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1407 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 4211: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3485 [inline] kfree+0xd9/0x260 mm/slab.c:3800 snd_pcm_oss_get_formats+0x216/0x380 sound/core/oss/pcm_oss.c:1766 snd_pcm_oss_set_format sound/core/oss/pcm_oss.c:1784 [inline] snd_pcm_oss_ioctl+0x1e2f/0x39f0 sound/core/oss/pcm_oss.c:2515 snd_pcm_oss_ioctl_compat+0x24/0x30 sound/core/oss/pcm_oss.c:2619 C_SYSC_ioctl fs/compat_ioctl.c:1461 [inline] compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1407 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff8801b2736d80 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 36 bytes inside of 1024-byte region [ffff8801b2736d80, ffff8801b2737180) The buggy address belongs to the page: page:ffffea0006c9cd80 count:1 mapcount:0 mapping:ffff8801b2736000 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801b2736000 0000000000000000 0000000100000007 raw: ffffea000761bf20 ffffea000709d920 ffff8801dac00ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801b2736c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801b2736d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801b2736d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801b2736e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801b2736e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================