aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-04-29 18:58:08 -0700
committerJakub Kicinski <[email protected]>2024-05-01 18:37:06 -0700
commit0592367424bbbdef506ef1450f5b8beec148f8a4 (patch)
tree5de93458ff802e85bcdbddcef58c5547d27a9ff4 /lib/test_fortify/write_overflow-strncpy-src.c
parent42033d0cfc8606adc9cb7e18d4c73d2e9a6289e5 (diff)
arp: Validate netmask earlier for SIOCDARP and SIOCSARP in arp_ioctl().
When ioctl(SIOCDARP/SIOCSARP) is issued with ATF_PUBL, r.arp_netmask must be 0.0.0.0 or 255.255.255.255. Currently, the netmask is validated in arp_req_delete_public() or arp_req_set_public() under rtnl_lock(). We have ATF_NETMASK test in arp_ioctl() before holding rtnl_lock(), so let's move the netmask validation there. Signed-off-by: Kuniyuki Iwashima <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions