================================================================== BUG: KASAN: vmalloc-out-of-bounds in size_entry_mwt net/bridge/netfilter/ebtables.c:2063 [inline] BUG: KASAN: vmalloc-out-of-bounds in compat_copy_entries+0xdfa/0xfd0 net/bridge/netfilter/ebtables.c:2155 Read of size 4 at addr ffffc900014d61f4 by task syz-executor.2/7981 CPU: 1 PID: 7981 Comm: syz-executor.2 Not tainted 5.4.0-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+0x12d/0x187 lib/dump_stack.c:118 print_address_description.constprop.8.cold.10+0x58/0x31d mm/kasan/report.c:374 __kasan_report.cold.11+0x1b/0x3a mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:638 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:134 size_entry_mwt net/bridge/netfilter/ebtables.c:2063 [inline] compat_copy_entries+0xdfa/0xfd0 net/bridge/netfilter/ebtables.c:2155 compat_do_replace+0x2c8/0x530 net/bridge/netfilter/ebtables.c:2249 compat_do_ebt_set_ctl+0x18b/0x1c5 net/bridge/netfilter/ebtables.c:2333 compat_nf_sockopt net/netfilter/nf_sockopt.c:144 [inline] compat_nf_setsockopt+0x68/0x100 net/netfilter/nf_sockopt.c:156 compat_ip_setsockopt+0x65/0xa0 net/ipv4/ip_sockglue.c:1286 compat_udp_setsockopt+0x16/0x30 net/ipv4/udp.c:2649 compat_sock_common_setsockopt+0x82/0x160 net/core/sock.c:3160 __compat_sys_setsockopt+0x131/0x2a0 net/compat.c:384 __do_compat_sys_setsockopt net/compat.c:397 [inline] __se_compat_sys_setsockopt net/compat.c:394 [inline] __ia32_compat_sys_setsockopt+0xb8/0x140 net/compat.c:394 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x235/0xb68 arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f54a09 Code: 00 00 00 89 d3 eb dd b8 80 96 98 00 eb c7 8b 04 24 c3 8b 1c 24 c3 8b 34 24 c3 8b 3c 24 c3 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7f500cc EFLAGS: 00000296 ORIG_RAX: 000000000000016e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 RDX: 0000000000000080 RSI: 0000000020000240 RDI: 0000000000000212 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Memory state around the buggy address: ffffc900014d6080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900014d6100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900014d6180: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 ^ ffffc900014d6200: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ffffc900014d6280: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ==================================================================