WSL2-Linux-Kernel/include
Jakub Kicinski bdbb4e29df netlink: add mask validation
We don't have good validation policy for existing unsigned int attrs
which serve as flags (for new ones we could use NLA_BITFIELD32).
With increased use of policy dumping having the validation be
expressed as part of the policy is important. Add validation
policy in form of a mask of supported/valid bits.

Support u64 in the uAPI to be future-proof, but really for now
the embedded mask member can only hold 32 bits, so anything with
bit 32+ set will always fail validation.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-10-06 06:25:55 -07:00
..
acpi
asm-generic bpf: Prevent .BTF section elimination 2020-09-21 21:50:44 +02:00
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux net: netdevice.h: sw_netstats_rx_add helper 2020-10-06 06:23:21 -07:00
math-emu
media
memory
misc
net netlink: add mask validation 2020-10-06 06:25:55 -07:00
pcmcia
ras
rdma
scsi
soc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
sound
target
trace devlink: Add a tracepoint for trap reports 2020-09-30 18:01:26 -07:00
uapi netlink: add mask validation 2020-10-06 06:25:55 -07:00
vdso
video
xen