diff options
| author | Ziyang Xuan <[email protected]> | 2023-04-20 12:40:35 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-04-22 13:10:39 +0000 |
| commit | 99e5acae193e369b71217efe6f1dad42f3f18815 (patch) | |
| tree | 4828ad5ceece8950a4e12ba57a0667f1d4a2b0d0 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | Merge tag 'mlx5-fixes-2023-04-20' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-99e5acae193e369b71217efe6f1dad42f3f18815.tar.gz kernel-99e5acae193e369b71217efe6f1dad42f3f18815.zip | |
ipv4: Fix potential uninit variable access bug in __ip_make_skb()
Like commit ea30388baebc ("ipv6: Fix an uninit variable access bug in
__ip6_make_skb()"). icmphdr does not in skb linear region under the
scenario of SOCK_RAW socket. Access icmp_hdr(skb)->type directly will
trigger the uninit variable access bug.
Use a local variable icmp_type to carry the correct value in different
scenarios.
Fixes: 96793b482540 ("[IPV4]: Add ICMPMsgStats MIB (RFC 4293)")
Reviewed-by: Willem de Bruijn <[email protected]>
Signed-off-by: Ziyang Xuan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
