Skip to content

Commit

Permalink
Add upstream kernel patch to fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchristensen1 authored and danielfullmer committed Jan 25, 2024
1 parent 23645d7 commit ba404c2
Showing 1 changed file with 11 additions and 0 deletions.
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

0 comments on commit ba404c2

Please sign in to comment.