================================================================== BUG: KASAN: slab-out-of-bounds in clusterip_config_init_nodelist net/ipv4/netfilter/ipt_CLUSTERIP.c:172 [inline] BUG: KASAN: slab-out-of-bounds in clusterip_config_init net/ipv4/netfilter/ipt_CLUSTERIP.c:227 [inline] BUG: KASAN: slab-out-of-bounds in clusterip_tg_check+0x150f/0x1570 net/ipv4/netfilter/ipt_CLUSTERIP.c:478 Read of size 2 at addr ffff8801bb8f5e08 by task syz-executor4/5693 CPU: 0 PID: 5693 Comm: syz-executor4 Not tainted 4.15.0-rc9+ #212 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+0x194/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:428 clusterip_config_init_nodelist net/ipv4/netfilter/ipt_CLUSTERIP.c:172 [inline] clusterip_config_init net/ipv4/netfilter/ipt_CLUSTERIP.c:227 [inline] clusterip_tg_check+0x150f/0x1570 net/ipv4/netfilter/ipt_CLUSTERIP.c:478 xt_check_target+0x22c/0x7d0 net/netfilter/x_tables.c:845 check_target net/ipv4/netfilter/ip_tables.c:518 [inline] find_check_entry.isra.8+0x8c8/0xcb0 net/ipv4/netfilter/ip_tables.c:559 translate_table+0xed1/0x1610 net/ipv4/netfilter/ip_tables.c:730 do_replace net/ipv4/netfilter/ip_tables.c:1146 [inline] do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1680 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1260 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007f7b6a87cc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000014 RBP: 00000000000003d6 R08: 0000000000000328 R09: 0000000000000000 R10: 0000000020397cd8 R11: 0000000000000212 R12: 00000000006f4cb0 R13: 00000000ffffffff R14: 00007f7b6a87d6d4 R15: 0000000000000000 Allocated by task 5693: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:551 __do_kmalloc_node mm/slab.c:3672 [inline] __kmalloc_node+0x47/0x70 mm/slab.c:3679 kmalloc_node include/linux/slab.h:541 [inline] kvmalloc_node+0x99/0xd0 mm/util.c:397 kvmalloc include/linux/mm.h:541 [inline] xt_alloc_table_info+0x64/0xe0 net/netfilter/x_tables.c:1006 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline] do_ipt_set_ctl+0x29b/0x5f0 net/ipv4/netfilter/ip_tables.c:1680 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1260 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 entry_SYSCALL_64_fastpath+0x29/0xa0 Freed by task 3685: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3488 [inline] kfree+0xd6/0x260 mm/slab.c:3803 skb_free_head+0x74/0xb0 net/core/skbuff.c:550 skb_release_data+0x58c/0x790 net/core/skbuff.c:570 skb_release_all+0x4a/0x60 net/core/skbuff.c:627 __kfree_skb net/core/skbuff.c:641 [inline] consume_skb+0x153/0x490 net/core/skbuff.c:701 __dev_kfree_skb_any+0x85/0xa0 net/core/dev.c:2543 dev_consume_skb_any include/linux/netdevice.h:3290 [inline] free_old_xmit_skbs+0xbf/0x1d0 drivers/net/virtio_net.c:1197 start_xmit+0x1b4/0x16f0 drivers/net/virtio_net.c:1349 __netdev_start_xmit include/linux/netdevice.h:4059 [inline] netdev_start_xmit include/linux/netdevice.h:4068 [inline] xmit_one net/core/dev.c:3019 [inline] dev_hard_start_xmit+0x24e/0xac0 net/core/dev.c:3035 sch_direct_xmit+0x40d/0x1140 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:393 [inline] __qdisc_run+0x57d/0x19c0 net/sched/sch_generic.c:401 __dev_xmit_skb net/core/dev.c:3210 [inline] __dev_queue_xmit+0xd5e/0x2f30 net/core/dev.c:3510 dev_queue_xmit+0x17/0x20 net/core/dev.c:3575 neigh_hh_output include/net/neighbour.h:472 [inline] neigh_output include/net/neighbour.h:480 [inline] ip_finish_output2+0xf4d/0x1550 net/ipv4/ip_output.c:229 ip_finish_output+0x864/0xd10 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_output+0x1d2/0x860 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:443 [inline] ip_local_out+0x95/0x160 net/ipv4/ip_output.c:124 ip_queue_xmit+0x8c0/0x18e0 net/ipv4/ip_output.c:504 tcp_transmit_skb+0x1b12/0x38b0 net/ipv4/tcp_output.c:1176 tcp_send_ack.part.41+0x389/0x610 net/ipv4/tcp_output.c:3615 tcp_send_ack+0x49/0x60 net/ipv4/tcp_output.c:3585 __tcp_ack_snd_check+0x2c6/0x4b0 net/ipv4/tcp_input.c:5048 tcp_ack_snd_check net/ipv4/tcp_input.c:5061 [inline] tcp_rcv_established+0xb90/0x1be0 net/ipv4/tcp_input.c:5477 tcp_v4_do_rcv+0x2ab/0x7d0 net/ipv4/tcp_ipv4.c:1468 sk_backlog_rcv include/net/sock.h:908 [inline] __release_sock+0x124/0x360 net/core/sock.c:2274 release_sock+0xa4/0x2a0 net/core/sock.c:2789 tcp_recvmsg+0xb7d/0x2a90 net/ipv4/tcp.c:2024 inet_recvmsg+0x16b/0x620 net/ipv4/af_inet.c:796 sock_recvmsg_nosec net/socket.c:803 [inline] sock_recvmsg+0xc9/0x110 net/socket.c:810 sock_read_iter+0x35b/0x560 net/socket.c:887 call_read_iter include/linux/fs.h:1766 [inline] new_sync_read fs/read_write.c:401 [inline] __vfs_read+0x6a7/0xa00 fs/read_write.c:413 vfs_read+0x11e/0x350 fs/read_write.c:447 SYSC_read fs/read_write.c:573 [inline] SyS_read+0xef/0x220 fs/read_write.c:566 entry_SYSCALL_64_fastpath+0x29/0xa0 The buggy address belongs to the object at ffff8801bb8f5b00 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 776 bytes inside of 1024-byte region [ffff8801bb8f5b00, ffff8801bb8f5f00) The buggy address belongs to the page: page:ffffea0006ee3d00 count:1 mapcount:0 mapping:ffff8801bb8f4000 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801bb8f4000 0000000000000000 0000000100000007 raw: ffffea0006ee3aa0 ffffea0006ee34a0 ffff8801dac00ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bb8f5d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801bb8f5d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801bb8f5e00: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801bb8f5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bb8f5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================