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 <[email protected]> Cc: wenxu <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 61e4a86 commit 1726483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)