audit: type=1804 audit(1585834539.985:53): pid=9784 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir501969272/syzkaller.nZHU2S/95/bus" dev="sda1" ino=16806 res=1 nla_parse: 2 callbacks suppressed netlink: 120 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.3'. ================================================================== BUG: KASAN: slab-out-of-bounds in ipt_init_target+0x206/0x240 net/sched/act_ipt.c:46 Read of size 1 at addr ffff88809731995f by task syz-executor.3/9805 CPU: 1 PID: 9805 Comm: syz-executor.3 Not tainted 4.14.174-syzkaller #0 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+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 ipt_init_target+0x206/0x240 net/sched/act_ipt.c:46 __tcf_ipt_init+0x455/0xaf0 net/sched/act_ipt.c:168 tcf_xt_init+0x43/0x50 net/sched/act_ipt.c:210 tcf_action_init_1+0x51a/0x9f0 net/sched/act_api.c:682 tcf_action_init+0x26d/0x400 net/sched/act_api.c:751 tcf_action_add net/sched/act_api.c:1079 [inline] tc_ctl_action+0x2e3/0x513 net/sched/act_api.c:1131 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xc5/0x100 net/socket.c:656 sock_no_sendpage+0xe5/0x110 net/core/sock.c:2572 kernel_sendpage+0x82/0xd0 net/socket.c:3407 sock_sendpage+0x84/0xa0 net/socket.c:871 pipe_to_sendpage+0x226/0x2d0 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x332/0x740 fs/splice.c:626 splice_from_pipe+0xc6/0x120 fs/splice.c:661 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0xca0/0x1230 fs/splice.c:1382 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c849 RSP: 002b:00007fadbf16cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007fadbf16d6d4 RCX: 000000000045c849 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000076bfa0 R08: 000000000004ffe0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000ba2 R14: 00000000004ce68a R15: 000000000076bfac Allocated by task 9805: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc_track_caller+0x153/0x7b0 mm/slab.c:3735 kmemdup+0x23/0x50 mm/util.c:118 kmemdup include/linux/string.h:420 [inline] __tcf_ipt_init+0x431/0xaf0 net/sched/act_ipt.c:164 tcf_xt_init+0x43/0x50 net/sched/act_ipt.c:210 tcf_action_init_1+0x51a/0x9f0 net/sched/act_api.c:682 tcf_action_init+0x26d/0x400 net/sched/act_api.c:751 tcf_action_add net/sched/act_api.c:1079 [inline] tc_ctl_action+0x2e3/0x513 net/sched/act_api.c:1131 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xc5/0x100 net/socket.c:656 sock_no_sendpage+0xe5/0x110 net/core/sock.c:2572 kernel_sendpage+0x82/0xd0 net/socket.c:3407 sock_sendpage+0x84/0xa0 net/socket.c:871 pipe_to_sendpage+0x226/0x2d0 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x332/0x740 fs/splice.c:626 splice_from_pipe+0xc6/0x120 fs/splice.c:661 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0xca0/0x1230 fs/splice.c:1382 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 7438: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 kvfree+0x45/0x50 mm/util.c:416 __vunmap+0x231/0x300 mm/vmalloc.c:1547 vfree+0x4b/0xd0 mm/vmalloc.c:1611 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:885 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1044 [inline] do_ip6t_get_ctl+0x5a5/0x780 net/ipv6/netfilter/ip6_tables.c:1713 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x62/0xc0 net/netfilter/nf_sockopt.c:122 ipv6_getsockopt net/ipv6/ipv6_sockglue.c:1375 [inline] ipv6_getsockopt+0x17b/0x1f0 net/ipv6/ipv6_sockglue.c:1355 tcp_getsockopt net/ipv4/tcp.c:3255 [inline] tcp_getsockopt+0x7b/0xc0 net/ipv4/tcp.c:3249 SYSC_getsockopt net/socket.c:1896 [inline] SyS_getsockopt+0x102/0x1c0 net/socket.c:1878 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff888097319940 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 31 bytes inside of 32-byte region [ffff888097319940, ffff888097319960) The buggy address belongs to the page: page:ffffea00025cc640 count:1 mapcount:0 mapping:ffff888097319000 index:0xffff888097319fc1 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff888097319000 ffff888097319fc1 000000010000003f raw: ffffea0002a40360 ffffea0002418c20 ffff88812fe561c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888097319800: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff888097319880: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff888097319900: fb fb fb fb fc fc fc fc 00 01 fc fc fc fc fc fc ^ ffff888097319980: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff888097319a00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================