diff options
| author | Shigeru Yoshida <[email protected]> | 2024-05-06 14:11:29 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-05-08 11:21:00 +0000 |
| commit | 4e13d3a9c25b7080f8a619f961e943fe08c2672c (patch) | |
| tree | b2eb44f6fe3b652bbf2fea5cc6adc2f1d1c7c210 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | net: phy: marvell-88q2xxx: add support for Rev B1 and B2 (diff) | |
| download | kernel-4e13d3a9c25b7080f8a619f961e943fe08c2672c.tar.gz kernel-4e13d3a9c25b7080f8a619f961e943fe08c2672c.zip | |
ipv6: Fix potential uninit-value access in __ip6_make_skb()
As it was done in commit fc1092f51567 ("ipv4: Fix uninit-value access in
__ip_make_skb()") for IPv4, check FLOWI_FLAG_KNOWN_NH on fl6->flowi6_flags
instead of testing HDRINCL on the socket to avoid a race condition which
causes uninit-value access.
Fixes: ea30388baebc ("ipv6: Fix an uninit variable access bug in __ip6_make_skb()")
Signed-off-by: Shigeru Yoshida <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions
