aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorFelix Maurer <fmaurer@redhat.com>2024-11-14 12:30:05 +0100
committerJakub Kicinski <kuba@kernel.org>2024-11-15 14:26:40 -0800
commit0c0d0f42ffa6ac94cd79893b7ed419c15e1b45de (patch)
tree6a4f23392edcca153b201a2bd85ebaeeff2f39d4 /tools/perf/scripts
parentMerge tag 'nf-24-11-14' of git://git.kernel.org/pub/scm/linux/kernel/git/netf... (diff)
downloadlinux-0c0d0f42ffa6ac94cd79893b7ed419c15e1b45de.tar.gz
linux-0c0d0f42ffa6ac94cd79893b7ed419c15e1b45de.zip
xsk: Free skb when TX metadata options are invalid
When a new skb is allocated for transmitting an xsk descriptor, i.e., for every non-multibuf descriptor or the first frag of a multibuf descriptor, but the descriptor is later found to have invalid options set for the TX metadata, the new skb is never freed. This can leak skbs until the send buffer is full which makes sending more packets impossible. Fix this by freeing the skb in the error path if we are currently dealing with the first frag, i.e., an skb allocated in this iteration of xsk_build_skb. Fixes: 48eb03dd2630 ("xsk: Add TX timestamp and TX checksum offload support") Reported-by: Michal Schmidt <mschmidt@redhat.com> Signed-off-by: Felix Maurer <fmaurer@redhat.com> Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com> Acked-by: Stanislav Fomichev <sdf@fomichev.me> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://patch.msgid.link/edb9b00fb19e680dff5a3350cd7581c5927975a8.1731581697.git.fmaurer@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
to all sizesHugh Dickins1-25/+20 2024-09-09mm: shmem: fix minor off-by-one in shrinkable calculationHugh Dickins1-1/+1 2024-09-09maple_tree: dump error message based on formatWei Yang1-2/+8 2024-09-09maple_tree: arange64 node is not a leaf nodeWei Yang1-5/+1 2024-09-09Docs/damon/maintainer-profile: document Google calendar for bi-weekly meetupsSeongJae Park1-2/+4 2024-09-09Docs/damon/maintainer-profile: add links in placeSeongJae Park1-40/+44 2024-09-09Docs/damon: use damonitor GitHub organization instead of awslabsSeongJae Park8-23/+23 2024-09-09Revert "mm/damon/lru_sort: adjust local variable to dynamic allocation"SeongJae Park1-11/+4 2024-09-09mm/damon/core: remove per-scheme region priority histogram bufferSeongJae Park1-1/+0 2024-09-09mm/damon/core: replace per-quota regions priority histogram buffer usage with...SeongJae Park1-3/+6 2024-09-09mm/damon/core: introduce per-context region priorities histogram bufferSeongJae Park2-0/+7 2024-09-09mm: remove putback_lru_page()Kefeng Wang2-6/+0 2024-09-09mm: remove isolate_lru_page()Kefeng Wang9-33/+25 2024-09-09mm: migrate_device: use more folio in migrate_device_finalize()Kefeng Wang1-19/+22 2024-09-09mm: migrate_device: use more folio in migrate_device_unmap()Kefeng Wang1-10/+10 2024-09-09mm: migrate_device: use a folio in migrate_device_range()Kefeng Wang1-4/+5 2024-09-09mm: migrate_device: convert to migrate_device_coherent_folio()Kefeng Wang3-17/+17 2024-09-09swap: convert swapon() to use a folioMatthew Wilcox (Oracle)1-9/+7 2024-09-09mm: count the number of partially mapped anonymous THPs per sizeBarry Song3-0/+14 2024-09-09mm: count the number of anonymous THPs per sizeBarry Song6-6/+37 2024-09-09mm: tidy up shmem mTHP controls and statsRyan Roberts1-28/+112 2024-09-09mm: cleanup count_mthp_stat() definitionRyan Roberts3-43/+35 2024-09-03mm: memory_hotplug: unify Huge/LRU/non-LRU movable folio isolationKefeng Wang1-28/+15 2024-09-03mm: migrate: add isolate_folio_to_list()Kefeng Wang3-35/+42 2024-09-03mm: memory_hotplug: check hwpoisoned page firstly in do_migrate_range()Kefeng Wang1-10/+10 2024-09-03mm: memory-failure: add unmap_poisoned_folio()Kefeng Wang2-17/+35 2024-09-03mm: memory_hotplug: remove head variable in do_migrate_range()Kefeng Wang1-8/+14