No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jianglei Nie 71e0ab5b75 bnx2x: fix potential memory leak in bnx2x_tpa_stop()
[ Upstream commit b43f9acbb8942b05252be83ac25a81cec70cc192 ]

bnx2x_tpa_stop() allocates a memory chunk from new_data with
bnx2x_frag_alloc(). The new_data should be freed when gets some error.
But when "pad + len > fp->rx_buf_size" is true, bnx2x_tpa_stop() returns
without releasing the new_data, which will lead to a memory leak.

We should free the new_data with bnx2x_frag_free() when "pad + len >
fp->rx_buf_size" is true.

Fixes: 07b0f00964 ("bnx2x: fix possible panic under memory stress")
Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:22:26 +02:00
arch x86/microcode/AMD: Track patch allocation size explicitly 2022-10-26 13:22:24 +02:00
block
certs
crypto
Documentation
drivers bnx2x: fix potential memory leak in bnx2x_tpa_stop() 2022-10-26 13:22:26 +02:00
fs nfsd: Fix a memory leak in an error handling path 2022-10-26 13:22:22 +02:00
include tcp: fix tcp_cwnd_validate() to not forget is_cwnd_limited 2022-10-26 13:22:26 +02:00
init
ipc
kernel bpf: Ensure correct locking around vulnerable function find_vpid() 2022-10-26 13:22:24 +02:00
lib
LICENSES
mm
net net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks() 2022-10-26 13:22:26 +02:00
samples
scripts selinux: use "grep -E" instead of "egrep" 2022-10-26 13:22:21 +02:00
security
sound
tools bpftool: Fix a wrong type cast in btf_dumper_int 2022-10-26 13:22:22 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.