linux/include/net/netns
Ahmed S. Darwish bc8e0adff3 net: xfrm: Use sequence counter with associated spinlock
A sequence counter write section must be serialized or its internal
state can get corrupted. A plain seqcount_t does not contain the
information of which lock must be held to guaranteee write side
serialization.

For xfrm_state_hash_generation, use seqcount_spinlock_t instead of plain
seqcount_t.  This allows to associate the spinlock used for write
serialization with the sequence counter. It thus enables lockdep to
verify that the write serialization lock is indeed held before entering
the sequence counter write section.

If lockdep is disabled, this lock association is compiled out and has
neither storage size nor runtime overhead.

Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
2021-03-22 07:38:08 +01:00
..
bpf.h bpf, netns: Keep a list of attached bpf_link's 2020-06-30 10:45:08 -07:00
can.h can: remove obsolete version strings 2020-10-12 10:06:39 +02:00
conntrack.h
core.h
dccp.h
generic.h
hash.h
ieee802154_6lowpan.h
ipv4.h net: ipv4: Emit notification when fib hardware flags are changed 2021-02-02 17:45:59 -08:00
ipv6.h net: ipv6: Emit notification when fib hardware flags are changed 2021-02-02 17:45:59 -08:00
mib.h mptcp: add and use MIB counter infrastructure 2020-03-29 22:14:49 -07:00
mpls.h
netfilter.h
nexthop.h nexthop: Convert to blocking notification chain 2020-09-15 16:31:17 -07:00
nftables.h netfilter: nf_tables: coalesce multiple notifications into one skbuff 2020-09-08 13:02:44 +02:00
packet.h
sctp.h sctp: add encap_port for netns sock asoc and transport 2020-10-30 15:24:06 -07:00
unix.h
x_tables.h
xdp.h
xfrm.h net: xfrm: Use sequence counter with associated spinlock 2021-03-22 07:38:08 +01:00