From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99CBEC5AD4C for ; Wed, 15 Nov 2023 20:57:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344681AbjKOU57 (ORCPT ); Wed, 15 Nov 2023 15:57:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235086AbjKOU5f (ORCPT ); Wed, 15 Nov 2023 15:57:35 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B77DA171C for ; Wed, 15 Nov 2023 12:57:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC81FC4E76F; Wed, 15 Nov 2023 20:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700081541; bh=IBYLu0Zvk6xuZUaOdg3c20XpA5vcnFAx+OwJG7a+OyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sXUoNfkBvJodjyescIrwBz2+xB1709SjR71xPd5CDbJIe0zsGBAnwrPSoCpK4+Ifh 2jenYWqaOyIDVugSBr+TpuGnVngI0nBptg1FqQWTTy9mSCoCJfzuDd4+I12yOI68n2 vV9DA4NwBS8t6qAbuHnF6eFQccNHwGWXQYFFu9UQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Eric Dumazet , wenxu , David Ahern , Paolo Abeni , Sasha Levin Subject: [PATCH 5.15 216/244] inet: shrink struct flowi_common Date: Wed, 15 Nov 2023 15:36:48 -0500 Message-ID: <20231115203601.312867543@linuxfoundation.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231115203548.387164783@linuxfoundation.org> References: <20231115203548.387164783@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet [ Upstream commit 1726483b79a72e0150734d5367e4a0238bf8fcff ] I am looking at syzbot reports triggering kernel stack overflows involving a cascade of ipvlan devices. We can save 8 bytes in struct flowi_common. This patch alone will not fix the issue, but is a start. Fixes: 24ba14406c5c ("route: Add multipath_hash in flowi_common to make user-define hash") Signed-off-by: Eric Dumazet Cc: wenxu Reviewed-by: David Ahern Link: https://lore.kernel.org/r/20231025141037.3448203-1-edumazet@google.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- include/net/flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/flow.h b/include/net/flow.h index e3f9d92460e7a..776bacc96242a 100644 --- a/include/net/flow.h +++ b/include/net/flow.h @@ -39,8 +39,8 @@ struct flowi_common { #define FLOWI_FLAG_SKIP_NH_OIF 0x04 __u32 flowic_secid; kuid_t flowic_uid; - struct flowi_tunnel flowic_tun_key; __u32 flowic_multipath_hash; + struct flowi_tunnel flowic_tun_key; }; union flowi_uli { -- 2.42.0