platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 audit: type=1800 audit(1672240143.841:13499): pid=14037 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="loop4" ino=7 res=0 ================================================================== BUG: KASAN: use-after-free in nf_hook_entries_get_hook_ops include/linux/netfilter.h:107 [inline] BUG: KASAN: use-after-free in hooks_validate+0x139/0x160 net/netfilter/core.c:170 Read of size 2 at addr ffff88808f8f2300 by task syz-executor.5/14088 CPU: 1 PID: 14088 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load2_noabort+0x88/0x90 mm/kasan/report.c:431 nf_hook_entries_get_hook_ops include/linux/netfilter.h:107 [inline] hooks_validate+0x139/0x160 net/netfilter/core.c:170 __nf_register_net_hook+0x1b0/0x480 net/netfilter/core.c:345 nf_register_net_hook net/netfilter/core.c:463 [inline] nf_register_net_hooks+0x4c/0x190 net/netfilter/core.c:479 synproxy_tg4_check+0x357/0x590 net/ipv4/netfilter/ipt_SYNPROXY.c:456 xt_check_target+0x26c/0x650 net/netfilter/x_tables.c:1023 check_target net/ipv4/netfilter/ip_tables.c:514 [inline] find_check_entry.constprop.0+0x7a9/0x9a0 net/ipv4/netfilter/ip_tables.c:556 translate_table+0xbe1/0x1600 net/ipv4/netfilter/ip_tables.c:720 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x29d/0x420 net/ipv4/netfilter/ip_tables.c:1677 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x6f/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1238 udp_setsockopt+0x5d/0xa0 net/ipv4/udp.c:2556 __sys_setsockopt+0x14d/0x240 net/socket.c:2013 __do_sys_setsockopt net/socket.c:2024 [inline] __se_sys_setsockopt net/socket.c:2021 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2021 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f7e7d87f0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7e7bdd0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f7e7d99f050 RCX: 00007f7e7d87f0a9 RDX: 0000000000000040 RSI: 8001000000000000 RDI: 0000000000000005 RBP: 00007f7e7d8daae9 R08: 0000000000000290 R09: 0000000000000000 audit: type=1800 audit(1672240143.871:13500): pid=14088 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="bus" dev="sda1" ino=14131 res=0 R10: 0000000020000840 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4c1bc55f R14: 00007f7e7bdd0300 R15: 0000000000022000 Allocated by task 14088: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] allocate_hook_entries_size net/netfilter/core.c:60 [inline] nf_hook_entries_grow+0x140/0x780 net/netfilter/core.c:127 __nf_register_net_hook+0x15a/0x480 net/netfilter/core.c:336 nf_register_net_hook net/netfilter/core.c:463 [inline] nf_register_net_hooks+0x4c/0x190 net/netfilter/core.c:479 synproxy_tg4_check+0x357/0x590 net/ipv4/netfilter/ipt_SYNPROXY.c:456 xt_check_target+0x26c/0x650 net/netfilter/x_tables.c:1023 check_target net/ipv4/netfilter/ip_tables.c:514 [inline] find_check_entry.constprop.0+0x7a9/0x9a0 net/ipv4/netfilter/ip_tables.c:556 translate_table+0xbe1/0x1600 net/ipv4/netfilter/ip_tables.c:720 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x29d/0x420 net/ipv4/netfilter/ip_tables.c:1677 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x6f/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1238 udp_setsockopt+0x5d/0xa0 net/ipv4/udp.c:2556 __sys_setsockopt+0x14d/0x240 net/socket.c:2013 __do_sys_setsockopt net/socket.c:2024 [inline] __se_sys_setsockopt net/socket.c:2021 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2021 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 18: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff88808f8f2300 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of 512-byte region [ffff88808f8f2300, ffff88808f8f2500) The buggy address belongs to the page: page:ffffea00023e3c80 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00027f8308 ffffea00023da688 ffff88813bff0940 raw: 0000000000000000 ffff88808f8f2080 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808f8f2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808f8f2280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808f8f2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808f8f2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808f8f2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== audit: type=1800 audit(1672240143.931:13501): pid=14094 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="loop3" ino=7 res=0