================================================================== BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 lib/vsprintf.c:595 Read of size 1 at addr ffff8801d57ad697 by task syz-executor4/11473 CPU: 0 PID: 11473 Comm: syz-executor4 Not tainted 4.15.0-rc9+ #281 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_load1_noabort+0x14/0x20 mm/kasan/report.c:427 string+0x1e8/0x200 lib/vsprintf.c:595 vsnprintf+0x863/0x1900 lib/vsprintf.c:2282 __request_module+0x1bf/0xc20 kernel/kmod.c:143 xt_request_find_target+0x8b/0xb0 net/netfilter/x_tables.c:257 find_check_entry.isra.8+0x612/0xcb0 net/ipv4/netfilter/ip_tables.c:551 translate_table+0xed1/0x1610 net/ipv4/netfilter/ip_tables.c:730 do_replace net/ipv4/netfilter/ip_tables.c:1148 [inline] do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1682 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:1256 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2872 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1831 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1810 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452f19 RSP: 002b:00007f73a52ebc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452f19 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 00000000000005c3 R08: 0000000000000137 R09: 0000000000000000 R10: 000000002076f000 R11: 0000000000000212 R12: 00000000006f7ae8 R13: 00000000ffffffff R14: 00007f73a52ec6d4 R15: 0000000000000000 Allocated by task 11473: 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:1137 [inline] do_ipt_set_ctl+0x29b/0x5f0 net/ipv4/netfilter/ip_tables.c:1682 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:1256 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2872 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1831 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1810 entry_SYSCALL_64_fastpath+0x29/0xa0 Freed by task 8689: 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] kfree_skb+0x15d/0x4c0 net/core/skbuff.c:659 tipc_sk_proto_rcv net/tipc/socket.c:1946 [inline] tipc_sk_filter_rcv+0xeee/0x20a0 net/tipc/socket.c:2099 tipc_sk_backlog_rcv+0x1a6/0x390 net/tipc/socket.c:2141 sk_backlog_rcv include/net/sock.h:907 [inline] __release_sock+0x124/0x360 net/core/sock.c:2264 release_sock+0xa4/0x2a0 net/core/sock.c:2779 tipc_release+0x885/0xfe0 net/tipc/socket.c:581 sock_release+0x8d/0x1e0 net/socket.c:602 sock_close+0x16/0x20 net/socket.c:1131 __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 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x9bb/0x1ad0 kernel/exit.c:865 do_group_exit+0x149/0x400 kernel/exit.c:968 get_signal+0x73f/0x16c0 kernel/signal.c:2335 do_signal+0x90/0x1eb0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0x214/0x310 arch/x86/entry/common.c:158 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 ffff8801d57ad580 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 279 bytes inside of 512-byte region [ffff8801d57ad580, ffff8801d57ad780) The buggy address belongs to the page: page:ffffea000755eb40 count:1 mapcount:0 mapping:ffff8801d57ad080 index:0xffff8801d57ad300 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801d57ad080 ffff8801d57ad300 0000000100000004 raw: ffffea0007506420 ffffea00075307a0 ffff8801dac00940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d57ad580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801d57ad600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801d57ad680: 00 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801d57ad700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801d57ad780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================