audit: type=1400 audit(1599873442.828:8): avc: denied { execmem } for pid=6464 comm="syz-executor872" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3294 Read of size 8 at addr ffff8882160c8fe0 by task syz-executor872/6465 CPU: 0 PID: 6465 Comm: syz-executor872 Not tainted 4.19.144-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3294 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xd7/0x1260 kernel/locking/mutex.c:1072 xt_find_match net/netfilter/x_tables.c:189 [inline] xt_find_match+0xa3/0x280 net/netfilter/x_tables.c:181 xt_request_find_match net/netfilter/x_tables.c:219 [inline] xt_request_find_match+0x88/0x110 net/netfilter/x_tables.c:212 get_xt_match net/sched/em_ipt.c:112 [inline] em_ipt_change+0x1c7/0x46b net/sched/em_ipt.c:132 tcf_em_validate net/sched/ematch.c:248 [inline] tcf_em_tree_validate net/sched/ematch.c:365 [inline] tcf_em_tree_validate+0x8fa/0xe95 net/sched/ematch.c:307 flow_change+0x2a4/0x1ca0 net/sched/cls_flow.c:439 tc_new_tfilter+0xb52/0x16c0 net/sched/cls_api.c:1320 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x3b3/0x8e0 net/socket.c:2115 __sys_sendmmsg+0x195/0x470 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440d09 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 fb 0f fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd6392a5b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00000000004a2570 RCX: 0000000000440d09 RDX: 010efe10675dec16 RSI: 0000000020000200 RDI: 0000000000000004 RBP: 00007ffd6392a5c0 R08: 0000000120080522 R09: 0000000120080522 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004a2570 R13: 0000000000402220 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 1: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 kmem_cache_zalloc include/linux/slab.h:699 [inline] __proc_create+0x2b3/0x860 fs/proc/generic.c:408 proc_create_reg+0xb2/0x180 fs/proc/generic.c:528 proc_create_net_single+0x84/0x170 fs/proc/proc_net.c:199 ip6_route_net_init_late+0x86/0xa0 net/ipv6/route.c:5342 ops_init+0xb3/0x410 net/core/net_namespace.c:129 __register_pernet_operations net/core/net_namespace.c:943 [inline] register_pernet_operations+0x32f/0x790 net/core/net_namespace.c:1014 register_pernet_subsys+0x25/0x40 net/core/net_namespace.c:1055 ip6_route_init+0x13d/0x3ae net/ipv6/route.c:5450 inet6_init+0x2ec/0x6b3 net/ipv6/af_inet6.c:1010 do_one_initcall+0xf1/0x734 init/main.c:884 do_initcall_level init/main.c:952 [inline] do_initcalls init/main.c:960 [inline] do_basic_setup init/main.c:978 [inline] kernel_init_freeable+0x9ab/0xa9d init/main.c:1145 kernel_init+0xd/0x1bd init/main.c:1062 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8882160c8e40 which belongs to the cache proc_dir_entry of size 256 The buggy address is located 160 bytes to the right of 256-byte region [ffff8882160c8e40, ffff8882160c8f40) The buggy address belongs to the page: page:ffffea0008583200 count:1 mapcount:0 mapping:ffff88821b6856c0 index:0x0 flags: 0x57ffe0000000100(slab) raw: 057ffe0000000100 ffffea000859fc88 ffffea0008583748 ffff88821b6856c0 raw: 0000000000000000 ffff8882160c8080 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8882160c8e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8882160c8f00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8882160c8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8882160c9000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8882160c9080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================