audit: type=1804 audit(1576054236.218:63): pid=8129 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir961674930/syzkaller.xLAamY/18/bus" dev="sda1" ino=16646 res=1 ================================================================== 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 ffff8880a1123b94 by task syz-executor.3/8113 CPU: 1 PID: 8113 Comm: syz-executor.3 Not tainted 4.14.158-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:1532 [inline] snd_pcm_oss_read+0x482/0x5d0 sound/core/oss/pcm_oss.c:2753 __vfs_read+0x105/0x6a0 fs/read_write.c:411 vfs_read+0x137/0x350 fs/read_write.c:447 SYSC_read fs/read_write.c:574 [inline] SyS_read+0xfd/0x230 fs/read_write.c:567 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a849 RSP: 002b:00007fe006c48c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a849 RDX: 000000000000091a RSI: 0000000020000380 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe006c496d4 R13: 00000000004c8d44 R14: 00000000004e0530 R15: 00000000ffffffff Allocated by task 8113: 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 2754: 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 skb_free_head+0x8b/0xb0 net/core/skbuff.c:554 skb_release_data+0x543/0x7c0 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] consume_skb+0xaf/0x340 net/core/skbuff.c:705 netlink_broadcast_filtered+0x2ae/0x9e0 net/netlink/af_netlink.c:1488 netlink_broadcast net/netlink/af_netlink.c:1510 [inline] nlmsg_multicast include/net/netlink.h:591 [inline] nlmsg_notify+0x140/0x180 net/netlink/af_netlink.c:2475 rtnl_notify net/core/rtnetlink.c:653 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:2921 [inline] rtmsg_ifinfo_event.part.0+0xa1/0xc0 net/core/rtnetlink.c:2935 rtmsg_ifinfo_event net/core/rtnetlink.c:2942 [inline] rtmsg_ifinfo+0x6f/0x90 net/core/rtnetlink.c:2941 netdev_state_change net/core/dev.c:1320 [inline] netdev_state_change+0xd3/0xe0 net/core/dev.c:1312 linkwatch_do_dev+0x8d/0xf0 net/core/link_watch.c:164 __linkwatch_run_queue+0x271/0x4b0 net/core/link_watch.c:202 linkwatch_event+0x40/0x60 net/core/link_watch.c:237 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff8880a1123640 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 1364 bytes inside of 2048-byte region [ffff8880a1123640, ffff8880a1123e40) The buggy address belongs to the page: page:ffffea0002844880 count:1 mapcount:0 mapping:ffff8880a1122540 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff8880a1122540 0000000000000000 0000000100000003 raw: ffffea00021d17a0 ffffea00020cb1a0 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a1123a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a1123b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a1123b80: 00 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a1123c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a1123c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================