Skip to content

Commit 1726483

Browse files
edumazetPaolo Abeni
authored andcommitted
inet: shrink struct flowi_common
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: 24ba144 ("route: Add multipath_hash in flowi_common to make user-define hash") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: wenxu <wenxu@ucloud.cn> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20231025141037.3448203-1-edumazet@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 61e4a86 commit 1726483

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/net/flow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ struct flowi_common {
4040
#define FLOWI_FLAG_KNOWN_NH 0x02
4141
__u32 flowic_secid;
4242
kuid_t flowic_uid;
43-
struct flowi_tunnel flowic_tun_key;
4443
__u32 flowic_multipath_hash;
44+
struct flowi_tunnel flowic_tun_key;
4545
};
4646

4747
union flowi_uli {

0 commit comments

Comments
 (0)