From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (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 B7EED38B7A1 for ; Wed, 24 Jun 2026 07:13:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782285198; cv=none; b=aExgGegECaO2GYpBf+ZhBrcaCrZwjZUVA4CU1icn4Ffn3hg/3TkfL+gM6Kq2WKa3H8d8zusyxgxEtiquDv/JfBEUUyeiWaUxfXJ5h1nix5pA6JL6MLquG2PePq1UwcVYMQMdALe3x9hIewiV7KwDF+/+QML70hebVGTmiUzLD9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782285198; c=relaxed/simple; bh=D5x3bMnC7ssQUxkomi6+PpKQQaU7Xoq+nvNPzzgbtlE=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=B93OdfCqKg/XujLmlo0g4KkWUr2o6qOjeMV+DpXY/4ej9jgZVqM+4bda3o0lVaxUgXfI8ckXz9AIlVGB8rDsq2njiN/AUfxhERxoWN/eSK/8exxGPAGuSor9bI17HyXJt9kvdQc/DW7eTbLB3XTJvUeSz2zzd3QUEeDGw1aM9Rg= 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.167.199 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-oi1-f199.google.com with SMTP id 5614622812f47-48952d1c293so1202279b6e.3 for ; Wed, 24 Jun 2026 00:13:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782285196; x=1782889996; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bBoFAIV4uqiLRHVMXBdmCTKrSw3E3vg+XbDQ1EwUBeo=; b=Ajt440e4LSNPnOXgsbHgAmQRrb6IfssIQid3ivDQ+CJ1y5wxA7+fnspuDSEg6IYk3i cVMX9rIxNCuPmlEFIK7RaJeG872C2Y6qH2UUC1ollhCkKy/99TmfL9uZyjjyNy5/nS7X V8gJDfzAQmjAWzwIhe+QY/uWDvNk10fFlu+qMjZaz/z76DhSPZdxcazKvE79xmHC+M3A IjBBB2yKpbbxYA7kzROTIEXPCTYtGDG6IepcJhcK7q25gF2H8O+qvqjtWlSYy5B10OFP cvhpIRB9ow9lJ6XTv9Q3gozuHJjQcyRk8wuFcdpo10Cfl2JlzAmK5eejw5N700vqZeaT oK7A== X-Forwarded-Encrypted: i=1; AFNElJ/+mZRgeiHFWfeMhVwAbc3maYufjA8WqGCOP+LaW9RWK7pxuZHwihHiAJV2fMvv5CniVrNbtug=@vger.kernel.org X-Gm-Message-State: AOJu0YzHlQf1CBhvnl0/ZR0HUJLs451/cIcwHwT99bDA1ggPC+HSeBiX wBDfZrCXiynJAcqxMhK0GmHhRfxPuszhw/sktk+16Tes+mVdv3HTy7XD4qD3V9b1CVpFWwJPmK+ hiXjz6DIGw300MFaQKM/rv9GrYWWUYhA1vBHJSWz3V0iD9u65lbsZplbPDeA= Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:1496:b0:48c:3b4:2b95 with SMTP id 5614622812f47-48c03b4480emr14653928b6e.29.1782285195953; Wed, 24 Jun 2026 00:13:15 -0700 (PDT) Date: Wed, 24 Jun 2026 00:13:15 -0700 In-Reply-To: <20260623222402.175798-1-sam@bynar.io> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a3b838b.c358b6d0.89040.0007.GAE@google.com> Subject: [syzbot ci] Re: nfc: nci: fix uninit-value in nci_core_init_rsp_packet() From: syzbot ci To: davem@davemloft.net, david@ixit.cz, edumazet@google.com, horms@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, oe-linux-nfc@lists.linux.dev, pabeni@redhat.com, sam@bynar.io, stable@vger.kernel.org Cc: syzbot@lists.linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot ci has tested the following series [v1] nfc: nci: fix uninit-value in nci_core_init_rsp_packet() https://lore.kernel.org/all/20260623222402.175798-1-sam@bynar.io * [PATCH net] nfc: nci: fix uninit-value in nci_core_init_rsp_packet() and found the following issue: UBSAN: array-index-out-of-bounds in nci_init_complete_req Full report is available here: https://ci.syzbot.org/series/2a9a8657-37a3-4dce-8cb5-2035027791dd *** UBSAN: array-index-out-of-bounds in nci_init_complete_req tree: linux-next URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next base: a986fde914d88af47eb78fd29c5d1af7952c3500 arch: amd64 compiler: Debian clang version 22.1.6 (++20260514074242+fc4aad7b5db3-1~exp1~20260514074407.73), Debian LLD 22.1.6 config: https://ci.syzbot.org/builds/80f835c3-e998-47ff-aaa5-24c578af3b4e/config syz repro: https://ci.syzbot.org/findings/65008893-2498-4786-b913-f2c474a7b34a/syz_repro ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in net/nfc/nci/core.c:192:7 index 4 is out of range for type '__u8[4]' (aka 'unsigned char[4]') CPU: 0 UID: 0 PID: 5905 Comm: syz.1.33 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:455 nci_init_complete_req+0x255/0x460 net/nfc/nci/core.c:192 __nci_request+0x7d/0x300 net/nfc/nci/core.c:108 nci_open_device net/nfc/nci/core.c:529 [inline] nci_dev_up+0x8c3/0xdc0 net/nfc/nci/core.c:643 nfc_dev_up+0x165/0x350 net/nfc/core.c:118 nfc_genl_dev_up+0x89/0xe0 net/nfc/netlink.c:775 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x9b9/0xa20 net/socket.c:2684 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2738 __sys_sendmsg net/socket.c:2770 [inline] __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f55ead9ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f55ebcb9028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f55eb015fa0 RCX: 00007f55ead9ce59 RDX: 0000000004008054 RSI: 0000200000000200 RDI: 0000000000000005 RBP: 00007f55eae32e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f55eb016038 R14: 00007f55eb015fa0 R15: 00007ffcba11c798 ---[ end trace ]--- *** If these findings have caused you to resend the series or submit a separate fix, please add the following tag to your commit message: Tested-by: syzbot@syzkaller.appspotmail.com --- This report is generated by a bot. It may contain errors. syzbot ci engineers can be reached at syzkaller@googlegroups.com. To test a patch for this bug, please reply with `#syz test` (should be on a separate line). The patch should be attached to the email. Note: arguments like custom git repos and branches are not supported.