================================================================== 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 ffff8801d80a5578 by task syzkaller896978/3669 CPU: 0 PID: 3669 Comm: syzkaller896978 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 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4141 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:0x445ff9 RSP: 002b:00007fffb6cf2ab8 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445ff9 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fffb6cf2bf8 R08: 0000000000000358 R09: 0000000000000000 R10: 0000000020016ca8 R11: 0000000000000207 R12: 00007fffb6cf2bf8 R13: 00000000004034c0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 3669: 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 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4141 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 2125: 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 free_pipe_info+0x1f8/0x2a0 fs/pipe.c:678 put_pipe_info+0xb0/0xd0 fs/pipe.c:561 pipe_release+0x1af/0x250 fs/pipe.c:582 __fput+0x327/0x7e0 fs/file_table.c:210 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x199/0x270 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x296/0x310 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264 entry_SYSCALL_64_fastpath+0x9e/0xa0 The buggy address belongs to the object at ffff8801d80a5240 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 824 bytes inside of 1024-byte region [ffff8801d80a5240, ffff8801d80a5640) The buggy address belongs to the page: page:ffffea0007602900 count:1 mapcount:0 mapping:ffff8801d80a4040 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801d80a4040 0000000000000000 0000000100000007 raw: ffffea00076028a0 ffffea00075f0b20 ffff8801dac00ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d80a5400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801d80a5480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801d80a5500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ^ ffff8801d80a5580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801d80a5600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================