diff options
author | 2022-06-20 02:30:17 -0700 | |
---|---|---|
committer | 2022-06-21 11:21:57 +0200 | |
commit | f9aefd6b2aa38b9787d2705f0f1161dfd23cdb8f (patch) | |
tree | ed4ae23ea4d26b4a7a7d9f93b4fa74f933d29db5 /net/unix/sysctl_net_unix.c | |
parent | Merge branch 'mlxsw-unified-bridge-conversion-part-1' (diff) | |
download | linux-dev-f9aefd6b2aa38b9787d2705f0f1161dfd23cdb8f.tar.xz linux-dev-f9aefd6b2aa38b9787d2705f0f1161dfd23cdb8f.zip |
net: warn if mac header was not set
Make sure skb_mac_header(), skb_mac_offset() and skb_mac_header_len() uses
are not fooled if the mac header has not been set.
These checks are enabled if CONFIG_DEBUG_NET=y
This commit will likely expose existing bugs in linux networking stacks.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220620093017.3366713-1-eric.dumazet@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions