Commit Graph

440 Commits

Author SHA1 Message Date
zowoq
2879caafcf linux_hardened: remove
isn't maintained to the standards people expect of kernels in nixpkgs
2026-04-04 13:51:50 +10:00
zowoq
85edc037e4 linux-rt: remove
isn't maintained to the standards people expect of kernels in nixpkgs
2026-03-24 15:41:39 +10:00
Alyssa Ross
4e21c2bbda kernelPatches: clean up unused 2025-11-23 16:40:32 +01:00
h7x4
467464e0cd linux: lib.filterAttrs -> lib.removeAttrs 2025-10-27 19:07:34 +09:00
K900
ed88f61013 linux_6_12: 6.12.18 -> 6.12.19 2025-03-13 15:40:00 +03:00
K900
c5d327cc97 linux_6_12: patch to fix build with Rust 1.85 2025-03-09 15:51:42 +03:00
Silvan Mosberger
667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
K900
c845b35460 linux: remove patch backport 2024-11-01 08:10:32 +03:00
K900
dd50f99e26 linux: switch netfilter fix to lore patch URL
Expected to be more stable.
2024-10-23 20:57:45 +02:00
K900
7f3092416a linux: cherry-pick netfilter fix 2024-10-22 18:03:11 +03:00
Fabián Heredia Montiel
777c1bc861 linux_4_19: drop since it will reach EOL within NixOS 24.11 2024-09-21 19:11:50 -06:00
Alyssa Ross
ba0d495264 linux_6_8,linux_6_9: remove
EOL upstream.

This seems to mean we no longer need any patches to support modern
Rust versions in the kernel!
2024-08-03 16:28:30 +02:00
Alyssa Ross
7297ffe634 kernelPatches.rust_1_78: init 2024-05-03 14:04:33 +02:00
Alyssa Ross
70386b0213 kernelPatches.rust_1_77-6_8,kernelPatches.rust_1_77-6_9: update
Some changes were made when this patch was committed to rust-next.
Most importantly, the minimum rustc version was updated from 1.77.0 to
1.77.1, and if we use the latest version of the patch, we'll be able
to cleanly apply the 1.78.0 patch.

rust-next gets force pushed sometimes[1], so we shouldn't fetch from
it in a FOD, hence we now have rust-1.77-6.8.patch in-tree, but this
will save us from having rust-1.78.patch in-tree, which we can fetch
from lore.

[1]: https://github.com/Rust-for-Linux/linux/activity?ref=rust-next
2024-05-03 14:04:20 +02:00
Alyssa Ross
9b12bba047 kernelPatches.rust_1_77-6_8,kernelPatches.rust_1_77-6_9: init 2024-04-08 18:46:08 +02:00
K900
b71cc870b6 linux_6_7: drop 2024-04-04 22:45:46 +03:00
Alyssa Ross
d7deb8a89d linux_6_7,linux_testing: patch for Rust 1.76.0 2024-02-26 11:32:10 +01:00
Alyssa Ross
63c01a3576 linux_6_7: fix Rust support with current rustc
The 1.75 patch can't be fetched, because it doesn't apply.  But git
can apply it cleanly, so it must just need to do a three-way merge or
something.  Regardless, we need to include a version that patch(1) can
apply in Nixpkgs.
2024-01-28 10:54:17 +01:00
ajs124
536f5cab52 linux/patches: remove cpu-cgroup-v2 2023-10-15 01:19:36 +02:00
Jade Lovelace
12650cd156 linuxKernel.kernels: patch out nvme regression on 2017ish Dell laptops
Fixes #253418
2023-09-22 07:17:49 +00:00
Maximilian Bosch
456c0392a0 linux/patches: drop obsolete CVE-2023-32233 patch
Part of all upstream source-trees kernels we currently build.
2023-07-17 18:48:19 +02:00
Fabián Heredia Montiel
0836b331a5 linux_5_15: drop fix-amdgpu-5_15 patch 2023-07-07 21:34:33 -06:00
Maximilian Bosch
f193e0b820 linux_5_15: apply patch to fix amdgpu
Closes #240017
2023-06-28 21:19:26 +02:00
Alyssa Ross
191075fa83 Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/os-specific/linux/kernel/patches.nix
	pkgs/top-level/linux-kernels.nix
2023-05-26 18:37:26 +00:00
Alyssa Ross
c9bcecf0ab kernelPatches.make-maple-state-reusable-after-mas_empty_area: drop
No longer used.
2023-05-26 15:19:03 +00:00
Alyssa Ross
b3210448b9 kernelPatches.fix-em-ice-bonding: remove
This was fixed in 248401cb2c46 ("ice: avoid bonding causing auxiliary
plug/unplug under RTNL lock"), which was backported to all relevant kernels.
2023-05-25 13:21:03 -07:00
Robert Hensing
81bc5f3db8 pkgs/linux: Vendor maple tree patch
Fetching from a maintainer tree can be unreliable as commits or
even repos may be removed.
2023-05-15 20:32:57 +02:00
Robert Hensing
17d26e4c7f linux: patch to fix MAP_32BIT crashes, e.g. Haskell 2023-05-15 05:48:56 +02:00
Raito Bezarius
99e65bb00d linux_*, except testing, 4.14: apply patch for CVE-2023-32233
This applies the patch for CVE-2023-32233 from kernel 4.19 until 6.3,
testing (6.4-rc1 at the moment) is excluded because it already have the
fix and 4.14 doesn't have this fix queued for the next stable kernel.
2023-05-09 22:50:32 +02:00
K900
5c0d228b6f Revert "linux: fix brcmfmac driver"
This reverts commit 141317dff9.
2023-03-13 14:38:06 +03:00
Maximilian Bosch
141317dff9 linux: fix brcmfmac driver
Reverts a patch that broke WPA auth in offload mode for brcmfmac
(broadcom driver). See
https://lore.kernel.org/linux-wireless/ZAx0TWRBlGfv7pNl@kroah.com/T/#m0bbd179b92fbbcae0498fd642c31c1ecab1968c0
for context.

Had to hack around a bit to make sure this doesn't get applied to
hardened which uses an older patch-level without the problematic patch.
2023-03-12 10:32:15 +01:00
Cole Helbling
4e2079b96d linux_{5_15,6_1}: revert patch to fix Equinix Metal bonded networking with ice driver
Some Equinix Metal instances, such as a3.large.x86, m3.large.x86
(specific hardware revisions), and n3.large.x86, use the `ice` kernel
driver for their network cards, in conjunction with bonded devices.
However, this commit caused a regression where these bonded devices
would deadlock. This was initially reported by Jaroslav Pulchart on
the netdev mailing list[1], and there were follow-up patches from Dave
Ertman[2][3] that attempted to fix this but were not up to snuff for
various reasons[4].

Specifically, v2 of the patch ([3]) appears to fix the issue on some
devices (tested with 8086:159B network cards), while it is still broken
on others (such as an 8086:1593 network card).

We revert the patch exposing the issue until upstream has a working
solution in order to make Equinix Metal instances work reliably again.

[1]: https://lore.kernel.org/netdev/CAK8fFZ6A_Gphw_3-QMGKEFQk=sfCw1Qmq0TVZK3rtAi7vb621A@mail.gmail.com/
[2]: https://patchwork.ozlabs.org/project/intel-wired-lan/patch/20230111183145.1497367-1-david.m.ertman@intel.com/
[3]: https://patchwork.ozlabs.org/project/intel-wired-lan/patch/20230215191757.1826508-1-david.m.ertman@intel.com/
[4]: https://lore.kernel.org/netdev/cb31a911-ba80-e2dc-231f-851757cfd0b8@intel.com/T/#m6e53f8c43093693c10268140126abe99e082dc1c
2023-02-16 10:06:24 -08:00
Andrew Marshall
f153f15a45 linux: Remove unused Kernel patches
These are not referenced.
2022-07-05 20:24:04 -04:00
Sandro Jäckel
8547db919a treewide: switch `builtins.fromJSON(builtins.readFile ./file.json)` to lib.importJSON ./file.json 2021-11-03 14:43:52 +01:00
Maximilian Bosch
bb5aa0109b linux: build hardened kernel with matching releases
Until now we merged kernel updates even if no hardened versions were
available yet. On one hand we don't want to delay patch-level updates,
on the other hand users of hardened kernels have frequent breakage now[1].

This change aims to provide a solution this issue:

* The hardened patchset now references the kernel version it's released
  for (including a sha256 hash for the fixed-output path of the source
  tarball).
* The `hardenedKernelFor`-function doesn't just append hardened patches
  now, but also overrides version & src to match the kernel version the
  patch was built & tested for.

Refs #140281

[1] https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.linuxPackages_hardened.kernel.x86_64-linux/all
2021-10-20 23:51:52 +02:00
Yurii Matsiuk
2f0d1e41e2 Revert "linux: fix regression in bridge VLAN configuration"
This reverts commit 24a08441d5.
2021-07-02 15:10:00 +02:00
TredwellGit
24a08441d5 linux: fix regression in bridge VLAN configuration 2021-06-21 18:52:06 +00:00
Guillaume Girol
04af7c02cd Merge pull request #108725 from veehaitch/ath_regd_optional
kernelPatches: ath driver: allow setting regulatory domain
2021-01-30 14:07:25 +00:00
Atemu
88f877e07d kernelPatches: drop export_kernel_fpu_functions
Hasn't been necessary since ZFS 0.8.3
2021-01-27 18:06:01 -05:00
Tim Steinbach
071750d412 linux-hardened: Remove tag patch 2021-01-24 18:17:56 -05:00
Tim Steinbach
18b09d883f linux: 5.11-rc2 -> 5.11-rc3 2021-01-11 11:10:07 -05:00
Vincent Haupert
af8abf141d kernelPatches: ath driver: allow setting regulatory domain
Ports an OpenWRT patch for Atheros wireless drivers (ath*) which allows
the user to change the regulatory domain code to the one which actually
applies.

All Atheros devices have a regulatory domain burned into their EEPROM.
When using a device as AP, this domain is frequently overly restrictive
when compared to the regulation which applies in the country the device
actually operates in; often, this restriction disallows IR on all
channels making it impossible to use the device as an AP at all.

This commit introduces the NixOS config option
networking.wireless.athUserRegulatoryDomain which, if enabled, applies
the patch and sets the kernel config option ATH_USER_REGD.

The original OpenWRT patch targets Linux 5.8.
2021-01-08 02:20:08 +01:00
Tim Steinbach
4312cd74f1 linux-hardened: Track extra version
Fixes #108707
2021-01-07 18:23:57 -05:00
Tim Steinbach
f284b44089 linux: 5.11-rc1 -> 5.11-rc2
Added temporary patch for a syntax error in the wireless drivers
2021-01-04 13:41:30 -05:00
Eduard Bopp
6ac71f593d linux: backport support for RTL8761b to 5.4 2020-12-20 14:36:07 +01:00
Orivej Desh
4376b91b40 linux-rt_5_9: export symbols needed by zfs
Upstream issue: https://github.com/openzfs/zfs/issues/11097#issuecomment-740682245
2020-12-10 10:34:44 +00:00
Emily
d6fe0a4e2d linux/hardened: move files into directory 2020-05-08 15:49:35 +01:00
Emily
2c1db9649e linux_*_hardened: index patches by major kernel version
This will avoid breaking the build whenever a non-major kernel update
happens. In the update script, we map each kernel version to the latest
patch for the latest kernel version less than or equal to what we
have packaged.
2020-04-23 18:50:26 +01:00
Emily
0d4f35efd4 linux_*_hardened: use linux-hardened patch set
This is an updated version of the former upstream,
https://github.com/AndroidHardeningArchive/linux-hardened, and provides
a minimal set of additional hardening patches on top of upstream.

The patch already incorporates many of our hardened profile defaults,
and releases are timely (Linux 5.5.15 and 5.6.2 were released on
2020-04-02; linux-hardened patches for them came out on 2020-04-03 and
2020-04-04 respectively).
2020-04-17 16:13:39 +01:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00