================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:352 [inline] BUG: KASAN: slab-out-of-bounds in do_convert sound/core/oss/linear.c:48 [inline] BUG: KASAN: slab-out-of-bounds in convert sound/core/oss/linear.c:81 [inline] BUG: KASAN: slab-out-of-bounds in linear_transfer+0x578/0x960 sound/core/oss/linear.c:110 Read of size 1 at addr ffff8800745c6ef8 by task syz-executor.5/5705 CPU: 1 PID: 5705 Comm: syz-executor.5 Not tainted 4.20.0-rc1+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x16b/0x224 lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:352 [inline] do_convert sound/core/oss/linear.c:48 [inline] convert sound/core/oss/linear.c:81 [inline] linear_transfer+0x578/0x960 sound/core/oss/linear.c:110 snd_pcm_plug_read_transfer+0x15b/0x2a0 sound/core/oss/pcm_plugin.c:651 snd_pcm_oss_read2+0x1a9/0x470 sound/core/oss/pcm_oss.c:1474 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1531 [inline] snd_pcm_oss_read+0x416/0x610 sound/core/oss/pcm_oss.c:2752 __vfs_read+0xe6/0x890 fs/read_write.c:416 vfs_read+0xf5/0x2f0 fs/read_write.c:452 ksys_read+0xcd/0x1b0 fs/read_write.c:578 __do_sys_read fs/read_write.c:588 [inline] __se_sys_read fs/read_write.c:586 [inline] __x64_sys_read+0x6e/0xb0 fs/read_write.c:586 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457799 Code: 8d b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 5b b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fec8adc7c88 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 000000000071bf00 RCX: 0000000000457799 RDX: 0000000000001000 RSI: 00000000200012c0 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000006ec1a8 R14: 00000000004abd2f R15: 00007fec8adc86d4 Allocated by task 5705: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3684 [inline] __kmalloc_node+0x50/0x70 mm/slab.c:3691 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0x68/0x70 mm/util.c:416 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] snd_pcm_plugin_alloc+0x445/0x8d0 sound/core/oss/pcm_plugin.c:70 snd_pcm_plug_alloc+0x106/0x280 sound/core/oss/pcm_plugin.c:129 snd_pcm_oss_change_params_locked+0x1a82/0x3170 sound/core/oss/pcm_oss.c:1038 snd_pcm_oss_change_params+0x54/0xa0 sound/core/oss/pcm_oss.c:1101 snd_pcm_oss_get_active_substream.part.28+0xdd/0x160 sound/core/oss/pcm_oss.c:1118 snd_pcm_oss_get_active_substream sound/core/oss/pcm_oss.c:1111 [inline] snd_pcm_oss_get_rate sound/core/oss/pcm_oss.c:1768 [inline] snd_pcm_oss_set_rate sound/core/oss/pcm_oss.c:1760 [inline] snd_pcm_oss_ioctl+0x1a40/0x2fb0 sound/core/oss/pcm_oss.c:2608 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x199/0x10d0 fs/ioctl.c:696 ksys_ioctl+0x62/0x90 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:718 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8800745c6340 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3000 bytes inside of 4096-byte region [ffff8800745c6340, ffff8800745c7340) The buggy address belongs to the page: page:ffffea0001d17180 count:1 mapcount:0 mapping:ffff88002d400dc0 index:0x0 compound_mapcount: 0 flags: 0x5fffc0000010200(slab|head) raw: 05fffc0000010200 ffffea0001eeb388 ffffea0001d1d388 ffff88002d400dc0 raw: 0000000000000000 ffff8800745c6340 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8800745c6d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8800745c6e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8800745c6e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ^ ffff8800745c6f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8800745c6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================