================================================================== BUG: KASAN: global-out-of-bounds in memcmp+0x2a/0x6c lib/string.c:692 Read of size 1 at addr ffffffff85e0a860 by task syz-executor.0/4676 CPU: 1 PID: 4676 Comm: syz-executor.0 Not tainted 6.5.0-rc1-syzkaller-00028-gef21fa7c198e #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0xe8/0x154 lib/dump_stack.c:106 [] print_address_description mm/kasan/report.c:364 [inline] [] print_report+0x1e4/0x4f4 mm/kasan/report.c:475 [] kasan_report+0xf0/0x1b8 mm/kasan/report.c:588 [] check_region_inline mm/kasan/generic.c:181 [inline] [] __asan_load1+0x68/0x80 mm/kasan/generic.c:257 [] memcmp+0x2a/0x6c lib/string.c:692 [] __hw_addr_add_ex+0xce/0x3f6 net/core/dev_addr_lists.c:88 [] __dev_mc_add net/core/dev_addr_lists.c:867 [inline] [] dev_mc_add+0x7c/0xc4 net/core/dev_addr_lists.c:885 [] mrp_init_applicant+0xc4/0x3c0 net/802/mrp.c:872 [] vlan_mvrp_init_applicant+0x26/0x30 net/8021q/vlan_mvrp.c:57 [] register_vlan_dev+0x142/0x59c net/8021q/vlan.c:170 [] vlan_newlink+0x2a6/0x34c net/8021q/vlan_netlink.c:191 [] rtnl_newlink_create net/core/rtnetlink.c:3472 [inline] [] __rtnl_newlink+0xc58/0xff6 net/core/rtnetlink.c:3689 [] rtnl_newlink+0x60/0x8c net/core/rtnetlink.c:3702 [] rtnetlink_rcv_msg+0x34c/0xb10 net/core/rtnetlink.c:6424 [] netlink_rcv_skb+0xfc/0x2ac net/netlink/af_netlink.c:2549 [] rtnetlink_rcv+0x26/0x30 net/core/rtnetlink.c:6442 [] netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] [] netlink_unicast+0x40a/0x68a net/netlink/af_netlink.c:1365 [] netlink_sendmsg+0x512/0x9da net/netlink/af_netlink.c:1914 [] sock_sendmsg_nosec net/socket.c:725 [inline] [] sock_sendmsg+0xa0/0xf2 net/socket.c:748 [] ____sys_sendmsg+0x49c/0x54c net/socket.c:2494 [] ___sys_sendmsg+0x140/0x1d4 net/socket.c:2548 [] __sys_sendmsg+0x130/0x1da net/socket.c:2577 [] __do_sys_sendmsg net/socket.c:2586 [inline] [] sys_sendmsg+0x2c/0x3a net/socket.c:2584 [] syscall_handler+0xfa/0x148 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x9c/0x9e arch/riscv/kernel/traps.c:310 [] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:102 The buggy address belongs to the variable: vlan_mrp_app+0x60/0x2060 The buggy address belongs to the physical page: page:ff1c000002180280 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8600a flags: 0xffe000000001000(reserved|node=0|zone=0|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 0ffe000000001000 ff1c000002180288 ff1c000002180288 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff85e0a700: 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 ffffffff85e0a780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff85e0a800: 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 ^ ffffffff85e0a880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff85e0a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================