================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:406 [inline] BUG: KASAN: slab-out-of-bounds in skb_put_data include/linux/skbuff.h:2266 [inline] BUG: KASAN: slab-out-of-bounds in qrtr_endpoint_post+0x5c1/0x1050 net/qrtr/qrtr.c:492 Read of size 4294967295 at addr ffff888043ad66e4 by task syz-executor.3/27526 CPU: 0 PID: 27526 Comm: syz-executor.3 Not tainted 5.9.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:192 memcpy+0x20/0x60 mm/kasan/common.c:105 memcpy include/linux/string.h:406 [inline] skb_put_data include/linux/skbuff.h:2266 [inline] qrtr_endpoint_post+0x5c1/0x1050 net/qrtr/qrtr.c:492 qrtr_tun_write_iter+0xf5/0x180 net/qrtr/tun.c:92 call_write_iter include/linux/fs.h:1882 [inline] new_sync_write+0x422/0x650 fs/read_write.c:503 vfs_write+0x5ad/0x730 fs/read_write.c:578 ksys_write+0x12d/0x250 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d579 Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fee86b55c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000039080 RCX: 000000000045d579 RDX: 00000000000000e4 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec R13: 000000000169fb6f R14: 00007fee86b569c0 R15: 000000000118cfec Allocated by task 27526: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 __do_kmalloc mm/slab.c:3655 [inline] __kmalloc+0x1a8/0x320 mm/slab.c:3664 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:666 [inline] qrtr_tun_write_iter+0x8a/0x180 net/qrtr/tun.c:83 call_write_iter include/linux/fs.h:1882 [inline] new_sync_write+0x422/0x650 fs/read_write.c:503 vfs_write+0x5ad/0x730 fs/read_write.c:578 ksys_write+0x12d/0x250 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Last call_rcu(): kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_record_aux_stack+0x82/0xb0 mm/kasan/generic.c:346 __call_rcu kernel/rcu/tree.c:2894 [inline] call_rcu+0x14f/0x7e0 kernel/rcu/tree.c:2968 fib6_info_release include/net/ip6_fib.h:336 [inline] fib6_info_release include/net/ip6_fib.h:333 [inline] ip6_route_add+0x12d/0x150 net/ipv6/route.c:3745 addrconf_prefix_route+0x354/0x4e0 net/ipv6/addrconf.c:2412 sit_add_v4_addrs net/ipv6/addrconf.c:3133 [inline] addrconf_sit_config net/ipv6/addrconf.c:3383 [inline] addrconf_notify+0x1aa1/0x2310 net/ipv6/addrconf.c:3576 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2033 call_netdevice_notifiers_extack net/core/dev.c:2045 [inline] call_netdevice_notifiers net/core/dev.c:2059 [inline] __dev_notify_flags+0x110/0x2b0 net/core/dev.c:8322 rtnl_configure_link+0x16b/0x230 net/core/rtnetlink.c:3133 __rtnl_newlink+0x10b6/0x1740 net/core/rtnetlink.c:3460 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3500 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5563 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2470 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:671 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff888043ad6600 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 228 bytes inside of 256-byte region [ffff888043ad6600, ffff888043ad6700) The buggy address belongs to the page: page:00000000cbed9af1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x43ad6 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00010e4148 ffffea000247dd08 ffff8880aa040500 raw: 0000000000000000 ffff888043ad6000 0000000100000008 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888043ad6580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888043ad6600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888043ad6680: 00 00 00 00 00 00 00 00 00 00 00 00 04 fc fc fc ^ ffff888043ad6700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888043ad6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================