From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E974C191F75 for ; Wed, 27 Nov 2024 21:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732744525; cv=none; b=K82iL4VuiWz/q3rBEPu7yq5ecAaBEyWwXpx04q1PBP9lE/SE58CqAp21Bi+bShvj23C1g35sSpKTOTk22VXPPCmaphAL9eGuvY0TFGRxMLC8UPLcK38veqTK0yNWQsV9FfImPHVME6HiG9UfS3xc8peAceMkSzj2mfYXgIIUcig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732744525; c=relaxed/simple; bh=wHM2OrL8e79dKeH2gD8Yp82lDj4yCL0xRcvE5WB7s9s=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=jCiOPLkYGi63rx46iNGRrVKGMirIUvHZKXOp8u1fKRQjR9xn4U4I19/RIMTevVDUf+QSIG55M/FnyLppwIPowz1HLHE+xLq82N9K6AOGHC18l8zoUAHnLRZ2076O7j8O2IOpm/byGs0aM8heuBBIrVBYEI9yPxh3oUbssd3DhiQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f71.google.com with SMTP id ca18e2360f4ac-841a54a66a2so11360739f.0 for ; Wed, 27 Nov 2024 13:55:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732744523; x=1733349323; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Epg/2RMhmpPXmBlb4qS8YZsKov8fLNlh2IrMDtv8Kxs=; b=GfZ/EhMG+ikA3JUOQVYkiS2lswIsDLK7+lIRPZ6TRoNh7vpLPBGsZ2rYDiQUPdPKM1 PFBJlHdsRirhjqHYHJLVj9dVvLl/60xnFKpYZJWng0SYHFDtR5Au+GTf3mv8e5SC30QG mNrXyduP9CulT3ikYhmVzD+JDMUmvmY4SyZ+phqIfCpxXPnYZbGAjtrT1a4NhkwAkKjG sLjlnhaZi/Qo7Ukvh1nVb+rde0OHRnoA1fDs1tW6ySQr13G47vHgJtYWWBIhVLf5poFN Mq8lyrLbIj5PfJwIiQJpeUXk4NnrQHPYJ1epX17byhvA+EsLAUvuRO+Vm8NwHJTh5s4u ZGZg== X-Forwarded-Encrypted: i=1; AJvYcCUu86vRWOgu4gsn5226kxVg2GU9NQmIxPiVQOKzBcrTyX3yHr0/FWJcS/ssEZbvoGvc4GunYjL+eKsAkX0=@vger.kernel.org X-Gm-Message-State: AOJu0YwZ0dLR8BmlklURROF+rX81AeKJN2uQ/wuKQvhbak16+70+EgYD gv7+ZipKuyNz5e28AY31I8/CeMuXr+1xGMpDq7S/lTJdehpWqueNT3p0UlBOW7N5Jw5e7EOxkU2 d/jzAYiIQTOSD9A6JHzZAIA5fdwLuaEnkrxkT2GXPAtvMoRMzSUHc57E= X-Google-Smtp-Source: AGHT+IF5KfYlQB4ZglRygUfFv4HlReybSxnwAVaXI2cqd9V0GHNEQqdc0dKCshkBV2GNUJoSGcfKFgsp2XiTCNqdtyszvdoerLAW Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1d05:b0:3a7:8040:595b with SMTP id e9e14a558f8ab-3a7c555ec95mr39547485ab.9.1732744523085; Wed, 27 Nov 2024 13:55:23 -0800 (PST) Date: Wed, 27 Nov 2024 13:55:23 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6747954b.050a0220.253251.0064.GAE@google.com> Subject: [syzbot] [net?] KASAN: global-out-of-bounds Read in __hw_addr_add_ex (2) From: syzbot To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 5f153a692bac Merge commit 'bf40167d54d5' into fixes git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes console output: https://syzkaller.appspot.com/x/log.txt?x=17e6d230580000 kernel config: https://syzkaller.appspot.com/x/.config?x=cdbbf8ef410bf2e8 dashboard link: https://syzkaller.appspot.com/bug?extid=a29a4fe94b1560756f7d compiler: riscv64-linux-gnu-gcc (Debian 12.2.0-13) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 userspace arch: riscv64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1080aca7980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11c3a940580000 Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/a741b348759c/non_bootable_disk-5f153a69.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/bf8994051afc/vmlinux-5f153a69.xz kernel image: https://storage.googleapis.com/syzbot-assets/7603ef590293/Image-5f153a69.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a29a4fe94b1560756f7d@syzkaller.appspotmail.com ================================================================== BUG: KASAN: global-out-of-bounds in memcmp+0xc0/0xca lib/string.c:676 Read of size 1 at addr ffffffff895cb520 by task syz-executor156/3200 CPU: 1 UID: 0 PID: 3200 Comm: syz-executor156 Not tainted 6.12.0-rc1-syzkaller-00012-g5f153a692bac #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:136 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x122/0x196 lib/dump_stack.c:120 [] print_address_description mm/kasan/report.c:377 [inline] [] print_report+0x290/0x5a0 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 [] vlan_newlink+0x3d2/0x5fc net/8021q/vlan_netlink.c:193 [] rtnl_newlink_create net/core/rtnetlink.c:3510 [inline] [] __rtnl_newlink+0xfe2/0x1738 net/core/rtnetlink.c:3730 [] rtnl_newlink+0x6c/0xa2 net/core/rtnetlink.c:3743 [] rtnetlink_rcv_msg+0x428/0xdbe net/core/rtnetlink.c:6646 [] netlink_rcv_skb+0x216/0x3dc net/netlink/af_netlink.c:2550 [] rtnetlink_rcv+0x26/0x30 net/core/rtnetlink.c:6664 [] netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] [] netlink_unicast+0x4f0/0x82c net/netlink/af_netlink.c:1357 [] netlink_sendmsg+0x864/0xdc6 net/netlink/af_netlink.c:1901 [] sock_sendmsg_nosec net/socket.c:729 [inline] [] __sock_sendmsg+0xcc/0x160 net/socket.c:744 [] ____sys_sendmsg+0x5ce/0x79e net/socket.c:2602 [] ___sys_sendmsg+0x144/0x1e6 net/socket.c:2656 [] __sys_sendmsg+0x130/0x1f0 net/socket.c:2685 [] __do_sys_sendmsg net/socket.c:2694 [inline] [] __se_sys_sendmsg net/socket.c:2692 [inline] [] __riscv_sys_sendmsg+0x70/0xa2 net/socket.c:2692 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x1aa/0x216 arch/riscv/kernel/traps.c:331 [] _new_vmalloc_restore_context_a0+0xc2/0xce 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:0x897cb flags: 0xffe000000002000(reserved|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000002000 ff1c00000025f2c8 ff1c00000025f2c8 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: ffffffff895cb400: 00 00 00 00 f9 f9 f9 f9 00 00 00 00 00 00 00 00 ffffffff895cb480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff895cb500: 00 00 00 00 f9 f9 f9 f9 00 00 00 00 00 00 00 00 ^ ffffffff895cb580: 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 ffffffff895cb600: 00 00 00 00 f9 f9 f9 f9 00 00 00 00 00 00 00 00 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup