diff options
| author | Koichiro Den <den@valinux.co.jp> | 2026-08-17 14:35:19 +0900 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-20 13:43:24 -0700 |
| commit | a4f2387db6f1cc2f03abba7f3a6807ad61e26ff7 (patch) | |
| tree | c99bd625d4d53a54255d91b0de330a9c77885edd /tools/perf/scripts/python | |
| parent | 873ce713fef5dde0939220f04f3484ec86a16fba (diff) | |
| download | linux-a4f2387db6f1cc2f03abba7f3a6807ad61e26ff7.tar.gz linux-a4f2387db6f1cc2f03abba7f3a6807ad61e26ff7.zip | |
NTB: ntb_transport: Reject oversized TX buffers
ntb_process_tx() handles an oversized buffer by calling tx_handler()
with a NULL data pointer and returning success. ntb_netdev therefore
neither frees the skb in its completion callback nor takes its enqueue
error path, leaking it.
Reject oversized buffers in ntb_transport_tx_enqueue() before acquiring
a queue entry and return -EMSGSIZE. The caller retains ownership of the
buffer, and the preceding netdev patch frees the skb when enqueue
returns this permanent error.
Fixes: fce8a7bb5b4b ("PCI-Express Non-Transparent Bridge Support")
Cc: stable@vger.kernel.org
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260817053519.4135287-5-den@valinux.co.jp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
