]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: __pskb_pull_tail() & pskb_carve_frag_list() drop_monitor friends
authorEric Dumazet <edumazet@google.com>
Sun, 20 Feb 2022 15:40:52 +0000 (07:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:38:11 +0000 (11:38 +0100)
commit1f4ae0f158dafa74133108bfa07b8053eb2a7898
tree462ad6739ebcc14a7ee5535c7250061d09193808
parente712f598b90eec64c07270848100d7f5325b9dd6
net: __pskb_pull_tail() & pskb_carve_frag_list() drop_monitor friends

commit ef527f968ae05c6717c39f49c8709a7e2c19183a upstream.

Whenever one of these functions pull all data from an skb in a frag_list,
use consume_skb() instead of kfree_skb() to avoid polluting drop
monitoring.

Fixes: 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220220154052.1308469-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/skbuff.c