From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379740; b=OC91BbNodDxGRjAr32+oC2x6ep25eL5WgfqT8kGDT2w+Gc84j2b1sJr9SBN8OkdcEUQ8 nb/FLKGxWTphrB6PagZDsH4qbZRKenh+xS9shfZvcE5CwO8unwp6Rn9ohoM8+oBeDAQsW XnunLmXajCycUyID1VbNB/ZPuVDCMwKH6NX8lbFIYkVsHALZ8kyFmpwtuxeshAncchzIA 2Dg3vdjOJOtiwgKvR0nrOnpxa10s6T2Rb35OcltAbuBLLKixqz65yAv9tilqtE0UkAmvq 0IhAyFkkAxyZVOtDmCZF5ktpqAY/0tj/AFHW2mBVslmKm12rcWL+/uRv81UUzAFkjTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379740; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=sbZ9rSCKnc+YXOviT0di2+X9rvl8OSYNWtRNr3q4O0U=; b=Db7gHJqvucON1NHmY+rLBvHDW+IZBZycF0l7pNbwWA9r1X95cpRNngC3VZ2nhlvc5b/G Gtzcw7zVSiNXy7tqFdTn2mRxsVwiOksHKw5anNhQnRdJIPT2z4V/+s3VC+BmAV1LRE9Mk zo4hYtwsrupuYFT2wvKZHQYTe8dsSNvEhLZkzuHc1ooKl3IWBZZ2Fw5Yt9fuHLu9GaxCK J1jAFgyeXkDD4FCbKMNApUNKeYbdQpyjjzweiUszKrUJSPv3ZhWc+d8agvo71DEwazhQN ZXfFfXBmeSpEA5BEp3ZPdPRPgdTXJQpoQjQIn2oY5jGddMbojrZWUxBksOLyrYp02IQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=u8vZ1hTH; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A7E606A322; Fri, 4 Dec 2026 10:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=u8vZ1hTH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A85E1F000C2; Fri, 4 Dec 2026 10:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379740; bh=sbZ9rSCKnc+YXOviT0di2+X9rvl8OSYNWtRNr3q4O0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=u8vZ1hTHj7gfhly6A0l1HxhnXXjKhhU3MB/GjaMUw/puKq+jqwLI+vcRfIb5+VRUl XpLVoimOHQZZdqtzAfjdPvCGPbv9Pfrt8CBG8x0iuUNBmXCqF5PbJdRHwAdPxPlq4t M8okVcXF87gc9wxnApK2i+d9KWaVx+/a/iPY9P5Y= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+a079f084653164a652d1@syzkaller.appspotmail.com, Deepanshu Kartikey , Sven Eckelmann , Sasha Levin Subject: [PATCH 6.6 0042/1167] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure Date: Fri, 4 Dec 2026 18:51:09 +0900 Message-ID: <20261204100703.149711422@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Deepanshu Kartikey [ Upstream commit dfa953ba5366b0a80c303700dab2bbcbdc5c27e9 ] batadv_orig_ifinfo_new() returns NULL only when its GFP_ATOMIC allocation fails, which is a normal runtime condition and not a bug. batadv_v_ogm_forward() already handles this the same way, simply checking for NULL without a WARN_ON. Do the same in batadv_iv_ogm_update_seqnos() to avoid a spurious WARN_ON splat when the allocation fails (e.g. under fault injection). Fixes: 7351a4822d42 ("batman-adv: split out router from orig_node") Reported-by: syzbot+a079f084653164a652d1@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=a079f084653164a652d1 Signed-off-by: Deepanshu Kartikey Signed-off-by: Sven Eckelmann Signed-off-by: Sasha Levin --- net/batman-adv/bat_iv_ogm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index dd1f88af5b961..cf6ff9848a7bc 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c @@ -1296,7 +1296,7 @@ batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, return BATADV_NO_DUP; orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); - if (WARN_ON(!orig_ifinfo)) { + if (!orig_ifinfo) { batadv_orig_node_put(orig_node); return 0; } -- 2.53.0