diff options
| author | 2022-06-08 09:04:37 -0700 | |
|---|---|---|
| committer | 2022-06-09 21:53:56 -0700 | |
| commit | ee2640df2393141a2975af726802b349d51713be (patch) | |
| tree | ee1ded184dbb821ea3159db968a2eea9803a01d1 /include/linux/perf/git:/ssh:/git@git.zx2c4.com | |
| parent | net: use DEBUG_NET_WARN_ON_ONCE() in skb_release_head_state() (diff) | |
| download | linux-dev-ee2640df2393141a2975af726802b349d51713be.tar.xz linux-dev-ee2640df2393141a2975af726802b349d51713be.zip | |
net: add debug checks in napi_consume_skb and __napi_alloc_skb()
Commit 6454eca81eae ("net: Use lockdep_assert_in_softirq()
in napi_consume_skb()") added a check in napi_consume_skb()
which is a bit weak.
napi_consume_skb() and __napi_alloc_skb() should only
be used from BH context, not from hard irq or nmi context,
otherwise we could have races.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/perf/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
