RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffbb74276d4 R13: 00000000004c8fb6 R14: 00000000004e0b70 R15: 0000000000000004 netlink: 20 bytes leftover after parsing attributes in process `syz-executor.0'. ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:347 [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 sound/core/oss/linear.c:110 [inline] BUG: KASAN: slab-out-of-bounds in linear_transfer+0x5db/0x840 sound/core/oss/linear.c:88 Read of size 1 at addr ffff88807ad89d40 by task syz-executor.1/22646 CPU: 1 PID: 22646 Comm: syz-executor.1 Not tainted 4.14.157-syzkaller #0 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+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 mm/kasan/kasan.c:267 memcpy+0x24/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] do_convert sound/core/oss/linear.c:48 [inline] convert sound/core/oss/linear.c:81 [inline] linear_transfer sound/core/oss/linear.c:110 [inline] linear_transfer+0x5db/0x840 sound/core/oss/linear.c:88 snd_pcm_plug_read_transfer+0x158/0x260 sound/core/oss/pcm_plugin.c:650 snd_pcm_oss_read2+0x1c2/0x370 sound/core/oss/pcm_oss.c:1475 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1513 [inline] snd_pcm_oss_read+0x359/0x5d0 sound/core/oss/pcm_oss.c:2753 do_loop_readv_writev fs/read_write.c:695 [inline] do_loop_readv_writev fs/read_write.c:682 [inline] do_iter_read+0x3e2/0x5b0 fs/read_write.c:919 vfs_readv+0xd3/0x130 fs/read_write.c:981 do_readv+0x10a/0x2d0 fs/read_write.c:1014 SYSC_readv fs/read_write.c:1101 [inline] SyS_readv+0x28/0x30 fs/read_write.c:1098 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a679 RSP: 002b:00007f26dc9b6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a679 RDX: 0000000000000007 RSI: 0000000020001440 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f26dc9b76d4 R13: 00000000004c89bc R14: 00000000004e0408 R15: 00000000ffffffff Allocated by task 22646: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node+0x51/0x80 mm/slab.c:3689 kmalloc_node include/linux/slab.h:530 [inline] kvmalloc_node+0x4e/0xe0 mm/util.c:397 kvmalloc include/linux/mm.h:531 [inline] kvzalloc include/linux/mm.h:539 [inline] snd_pcm_plugin_alloc+0x4da/0x740 sound/core/oss/pcm_plugin.c:70 snd_pcm_plug_alloc+0x13f/0x300 sound/core/oss/pcm_plugin.c:129 snd_pcm_oss_change_params_locked+0x1d6e/0x32f0 sound/core/oss/pcm_oss.c:1039 snd_pcm_oss_change_params+0x63/0xb0 sound/core/oss/pcm_oss.c:1102 snd_pcm_oss_get_active_substream+0x102/0x150 sound/core/oss/pcm_oss.c:1119 snd_pcm_oss_get_rate sound/core/oss/pcm_oss.c:1769 [inline] snd_pcm_oss_set_rate sound/core/oss/pcm_oss.c:1761 [inline] snd_pcm_oss_ioctl+0xc2e/0x2e50 sound/core/oss/pcm_oss.c:2609 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 7308: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 simple_xattrs_free include/linux/xattr.h:98 [inline] shmem_evict_inode+0x103/0x780 mm/shmem.c:1096 evict+0x2e6/0x630 fs/inode.c:554 iput_final fs/inode.c:1516 [inline] iput fs/inode.c:1543 [inline] iput+0x471/0x900 fs/inode.c:1528 dentry_unlink_inode+0x286/0x340 fs/dcache.c:387 __dentry_kill+0x32e/0x580 fs/dcache.c:591 dentry_kill fs/dcache.c:632 [inline] dput.part.0+0x4e3/0x750 fs/dcache.c:847 dput+0x20/0x30 fs/dcache.c:811 SYSC_renameat2 fs/namei.c:4645 [inline] SyS_renameat2 fs/namei.c:4530 [inline] SYSC_rename fs/namei.c:4681 [inline] SyS_rename+0x4a1/0x6d0 fs/namei.c:4679 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff88807ad89d00 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes to the right of 64-byte region [ffff88807ad89d00, ffff88807ad89d40) The buggy address belongs to the page: page:ffffea0001eb6240 count:1 mapcount:0 mapping:ffff88807ad89000 index:0xffff88807ad89600 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff88807ad89000 ffff88807ad89600 0000000100000019 raw: ffffea00027d5c20 ffffea0001f1cda0 ffff8880aa800340 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88807ad89c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88807ad89c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88807ad89d00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88807ad89d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88807ad89e00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================