================================================================== BUG: KASAN: global-out-of-bounds in memcmp+0xc0/0xca lib/string.c:676 Read of size 1 at addr ffffffff890770c0 by task syz-executor.1/5422 CPU: 0 PID: 5422 Comm: syz-executor.1 Not tainted 6.10.0-rc3-syzkaller-g83a7eefedc9b #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:129 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:135 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0x122/0x196 lib/dump_stack.c:114 [] print_address_description mm/kasan/report.c:377 [inline] [] print_report+0x288/0x596 mm/kasan/report.c:488 [] kasan_report+0xec/0x118 mm/kasan/report.c:601 [] __asan_report_load1_noabort+0x12/0x1a mm/kasan/report_generic.c:378 [] memcmp+0xc0/0xca lib/string.c:676 [] __hw_addr_add_ex+0xee/0x676 net/core/dev_addr_lists.c:88 [] __dev_mc_add net/core/dev_addr_lists.c:867 [inline] [] dev_mc_add+0xac/0x108 net/core/dev_addr_lists.c:885 [] mrp_init_applicant+0xe8/0x56e net/802/mrp.c:873 [] vlan_mvrp_init_applicant+0x26/0x30 net/8021q/vlan_mvrp.c:57 [] register_vlan_dev+0x1b4/0x922 net/8021q/vlan.c:170 [] register_vlan_device net/8021q/vlan.c:277 [inline] [] vlan_ioctl_handler+0x54e/0x956 net/8021q/vlan.c:621 [] sock_ioctl+0x1f6/0x61a net/socket.c:1305 [] vfs_ioctl fs/ioctl.c:51 [inline] [] __do_sys_ioctl fs/ioctl.c:907 [inline] [] __se_sys_ioctl fs/ioctl.c:893 [inline] [] __riscv_sys_ioctl+0x186/0x1d6 fs/ioctl.c:893 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x14c/0x214 arch/riscv/kernel/traps.c:330 [] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112 The buggy address belongs to the variable: vlan_mrp_app+0x60/0x3e80 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x89277 flags: 0xffe000000002000(reserved|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000002000 ff1c000000249dc8 ff1c000000249dc8 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: ffffffff89076f80: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 00 00 ffffffff89077000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff89077080: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 00 00 ^ ffffffff89077100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff89077180: f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9 00 00 00 00 ==================================================================