Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kernel] Fix memory leak in kernel tegra serial driver #183

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions kernel/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ pkgs
, lib
, fetchFromGitHub
, fetchpatch
, l4t-xusb-firmware
, realtime ? false
, kernelPatches ? [ ]
Expand Down Expand Up @@ -91,6 +92,16 @@ pkgsAarch64.buildLinux (args // {

# Fix gcc13 compilation failure
{ patch = ./0009-bonding-gcc13-synchronize-bond_-a-t-lb_xmit-types.patch; }

# Fixes a memory leak by kernel tegra serial driver
# This manifested via slab unreclaimable growing unbounded via repeated kmalloc-256 calls
# This patch is present in 35.4.1 and should be removed when we update
{
patch = fetchpatch {
url = "https://github.com/OE4T/linux-tegra-5.10/commit/d5b90d6b9365250adb73b2fe5b52a5228df3b1d9.patch";
sha256 = "sha256-a5LL4avaxQ3WYr9fRPMCfHrl4iAp1yhH95R+iI/PwYc=";
};
}
] ++ kernelPatches;

structuredExtraConfig = with lib.kernel; {
Expand Down
Loading