summaryrefslogtreecommitdiffhomepage
path: root/include/linux
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-08 10:50:25 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-08 10:50:25 +0200
commit523566d70426aeb2afffada42cbfdd7d4b0f33ee (patch)
treea52f0cabff920fe97865dda39334d230496484f1 /include/linux
parentb211ca0e420d8086d3fa0358413a6f8b44df1115 (diff)
rtnl: zero request message headers
For route netlink request messages having a header struct, uc_nl_request() invokes nlmsg_reserve() to reserve room for the struct data but the nlmsg_reserve() function only zeroes additional alignment bytes, not the actual reserved buffer space. Extend the existing logic to explicitly zero out the reserved header space in order to avoid sending uninitialized struct member values to the kernel. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions