================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/fortify-string.h:191 [inline] BUG: KASAN: slab-out-of-bounds in skb_copy_from_linear_data_offset include/linux/skbuff.h:3676 [inline] BUG: KASAN: slab-out-of-bounds in skb_segment+0x14ba/0x37a0 net/core/skbuff.c:4000 Read of size 740 at addr ffff88801238e3c0 by task syz-executor.2/10528 CPU: 1 PID: 10528 Comm: syz-executor.2 Not tainted 5.11.0-rc3-next-20210118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:397 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:414 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186 memcpy+0x20/0x60 mm/kasan/shadow.c:65 memcpy include/linux/fortify-string.h:191 [inline] skb_copy_from_linear_data_offset include/linux/skbuff.h:3676 [inline] skb_segment+0x14ba/0x37a0 net/core/skbuff.c:4000 __udp_gso_segment+0xefb/0x12d0 net/ipv4/udp_offload.c:230 udp4_ufo_fragment+0x51f/0x700 net/ipv4/udp_offload.c:331 inet_gso_segment+0x502/0x1110 net/ipv4/af_inet.c:1378 skb_mac_gso_segment+0x26e/0x530 net/core/dev.c:3326 __skb_gso_segment+0x330/0x6e0 net/core/dev.c:3399 skb_gso_segment include/linux/netdevice.h:4708 [inline] validate_xmit_skb+0x69e/0xee0 net/core/dev.c:3644 validate_xmit_skb_list+0xbc/0x120 net/core/dev.c:3694 sch_direct_xmit+0x3f8/0xbd0 net/sched/sch_generic.c:298 qdisc_restart net/sched/sch_generic.c:376 [inline] __qdisc_run+0x4ba/0x15f0 net/sched/sch_generic.c:384 qdisc_run include/net/pkt_sched.h:136 [inline] qdisc_run include/net/pkt_sched.h:128 [inline] __dev_xmit_skb net/core/dev.c:3765 [inline] __dev_queue_xmit+0x1489/0x2dd0 net/core/dev.c:4119 neigh_resolve_output net/core/neighbour.c:1490 [inline] neigh_resolve_output+0x4d8/0x7e0 net/core/neighbour.c:1470 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x83d/0x21b0 net/ipv4/ip_output.c:230 __ip_finish_output net/ipv4/ip_output.c:308 [inline] __ip_finish_output+0x396/0x640 net/ipv4/ip_output.c:290 ip_finish_output+0x35/0x200 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x196/0x310 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:441 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0xd4/0x260 net/ipv4/ip_output.c:1567 udp_send_skb+0x6cd/0x11a0 net/ipv4/udp.c:947 udp_sendmsg+0x1c76/0x2720 net/ipv4/udp.c:1234 udpv6_sendmsg+0x1528/0x2c30 net/ipv6/udp.c:1346 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x331/0x810 net/socket.c:2345 ___sys_sendmsg+0xf3/0x170 net/socket.c:2399 __sys_sendmmsg+0x195/0x470 net/socket.c:2489 __do_sys_sendmmsg net/socket.c:2518 [inline] __se_sys_sendmmsg net/socket.c:2515 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2515 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fac133dbc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 0400000000000132 RSI: 0000000020004d80 RDI: 0000000000000004 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000004000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007fff823cb5df R14: 00007fac133dc9c0 R15: 000000000119bf8c Allocated by task 10528: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:403 [inline] ____kasan_kmalloc mm/kasan/common.c:434 [inline] ____kasan_kmalloc.constprop.0+0xa0/0xd0 mm/kasan/common.c:406 kasan_slab_alloc include/linux/kasan.h:209 [inline] slab_post_alloc_hook mm/slab.h:518 [inline] slab_alloc_node mm/slub.c:2903 [inline] __kmalloc_node_track_caller+0x191/0x320 mm/slub.c:4569 __kmalloc_reserve net/core/skbuff.c:142 [inline] __alloc_skb+0xae/0x5a0 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1100 [inline] alloc_skb_with_frags+0x93/0x5d0 net/core/skbuff.c:5892 sock_alloc_send_pskb+0x793/0x920 net/core/sock.c:2348 __ip_append_data+0x1453/0x3260 net/ipv4/ip_output.c:1097 ip_make_skb+0x226/0x2a0 net/ipv4/ip_output.c:1633 udp_sendmsg+0x1c38/0x2720 net/ipv4/udp.c:1229 udpv6_sendmsg+0x1528/0x2c30 net/ipv6/udp.c:1346 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x331/0x810 net/socket.c:2345 ___sys_sendmsg+0xf3/0x170 net/socket.c:2399 __sys_sendmmsg+0x195/0x470 net/socket.c:2489 __do_sys_sendmmsg net/socket.c:2518 [inline] __se_sys_sendmmsg net/socket.c:2515 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2515 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0xe5/0x110 mm/kasan/generic.c:345 kvfree_call_rcu+0x104/0x7c0 kernel/rcu/tree.c:3549 drop_sysctl_table+0x3c0/0x4e0 fs/proc/proc_sysctl.c:1643 unregister_sysctl_table fs/proc/proc_sysctl.c:1681 [inline] unregister_sysctl_table+0xbd/0x190 fs/proc/proc_sysctl.c:1656 neigh_sysctl_unregister+0x5b/0x80 net/core/neighbour.c:3713 devinet_sysctl_unregister net/ipv4/devinet.c:2623 [inline] inetdev_event+0xe95/0x15c0 net/ipv4/devinet.c:1606 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2040 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_change_name+0x447/0x690 net/core/dev.c:1344 do_setlink+0x2c2a/0x3a70 net/core/rtnetlink.c:2688 __rtnl_newlink+0xc1c/0x16e0 net/core/rtnetlink.c:3376 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3491 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5553 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 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:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 __sys_sendto+0x21c/0x320 net/socket.c:1975 __do_sys_sendto net/socket.c:1987 [inline] __se_sys_sendto net/socket.c:1983 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1983 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 ffff88801238e000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 960 bytes inside of 1024-byte region [ffff88801238e000, ffff88801238e400) The buggy address belongs to the page: page:00000000a1417c6d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1238c head:00000000a1417c6d order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 ffffea0000bf7c00 0000000400000004 ffff888010041140 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801238e300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801238e380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801238e400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801238e480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801238e500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================