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=1796379611; b=BNNEaZ1nymYHiYyG6zmFi1+ZDKOXSsVislSBoam2888hQOkpQqDblPygrSMxSRJwLLGa Hb650mZouEJM1gxx1mcOSLp+GLfbVA2+0Sltp07v8fXW3f9Qiu2eb84+T/9hJmiFEGv6k lltLe9hSFYEhnpA3cQdhm9dfeiiHsDykZv+O/zO32TJZlHhXNH2XryrgjMsESq5wJB0L8 Zwyz8Hqg1A502Q00qStZZx1exM7RDb2sZH8OnHx29Tr9kan3N3nVjQ0trQjP3SMPyw5BN 9BWzahKoSLSE/lplanLnmwx5A3cToX0koz8HvyPDg5AGPdAVpFid3tkMZAlQxhYyi0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379611; 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=jFwHyVNfkZZQJUNd357pRupKLz0Xwc/8aUqrEOGE528=; b=KEK0d1yNkxWWQ+Uh12Z9YGGltR+dilEV/YD3mmcG1/Tcb8lf1vhsYnIQdJhvkq4DAzhf NvrpRgPCF/GTL1JO5700k7GMxNlKYcmL4a8C+XphFO5jVUgwKJlswesQWfc8PAfVSl/EC 5tmnJTPkuMXbCNF8fkuNA4wfD3pa+Sat6vlt2A5tMAcysc/EQLUVgWG9bLFc26AQGhDFw hBWy58dswAPrH5ELHDsm0H080O+NB00Cv5m8Wkb65kXiiM4nXdaefWKr2AUUHD78UY0aF R3keUfHMmMe5Fz4lEG1k2N5i4GJ95pJ03M/BoO7zS97/vJ8UeVBQNsYDKF6/TJaj+cw== 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=LT0fN1Bg; 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 3EF27606A322; Fri, 4 Dec 2026 10:20:11 +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=LT0fN1Bg Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAE471F000C2; Fri, 4 Dec 2026 10:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379611; bh=jFwHyVNfkZZQJUNd357pRupKLz0Xwc/8aUqrEOGE528=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LT0fN1BgfyWTMGOYNvbI4c54GpJURpMnG2lJlLdoR4LoFj8ye2XpFiGjWds4o6Q+R zgvvUgvj5x11ByeEcvLY1iHXz9Tr6xWmA4F1vrGNgvEaQcIDmUhNqM97WlD4eDJNza yU1o1tg97lgj3K6SgnP+5YebHwqurr7yw4Pmh8Cg= 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.1 0028/1059] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure Date: Fri, 4 Dec 2026 18:52:39 +0900 Message-ID: <20261204100644.764621899@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@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.1-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 82685a0a9397e..5a84785613b4c 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c @@ -1297,7 +1297,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