Skip to content

Instantly share code, notes, and snippets.

@joanbm
joanbm / nvidia-470xx-fix-linux-6.15.patch
Last active April 18, 2025 15:42
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.15-rc1 (EXPERIMENTAL)
From c8980466f837b6c1e961bcfef3cfb70435394736 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sat, 12 Apr 2025 22:46:59 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.15-rc1
This is an experimental patch! Use at your own risk!
TODO: Verify that the fix for vm_flags_(set|clear) is correct.
Replacing EXTRA_CFLAGS with ccflags-y is rel. commit "kbuild: remove
EXTRA_*FLAGS support" (Masahiro Yamada, 6 Feb 2025), according to which
@joanbm
joanbm / broadcom-wl-fix-linux-6.15.patch
Created April 7, 2025 06:44
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.15-rc1
From a0acb522ad849b2e2a3019794a293fdeb717ba03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sun, 23 Feb 2025 14:29:21 +0000
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux
6.15-rc1
Due to the fact that the driver is unmaintained, and can't be adapted
to the current Linux kernel security standards (e.g. IBT), as it has a
proprietary blob; and this is likely to be an ever-growing security
risk, I have added a warning when the module is loaded.
@joanbm
joanbm / broadcom-wl-fix-linux-6.14.patch
Created February 3, 2025 00:17
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.14-rc1
From 1dce6fd0b32d31e897143c4ac04eb9a8929bc1e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sun, 8 Dec 2024 17:57:43 +0000
Subject: [PATCH] Tentative fix for broadcom-wl 6.30.223.271 driver for Linux
6.14-rc1
Related to the new parameter for get_tx_power introduced in
"wifi: cfg80211: send MLO links tx power info in GET_INTERFACE"
(Rameshkumar Sundaram, 25 Nov 2024).
@joanbm
joanbm / nvidia-470xx-fix-linux-6.14.patch
Created February 3, 2025 00:16
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.14-rc1
From bee3ff1153f7b42491d2a0552d6f9a66a307ec1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sun, 15 Dec 2024 17:56:03 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.14-rc1
---
nvidia-drm/nvidia-drm-drv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c
@joanbm
joanbm / ext4_nul_append.c
Created January 1, 2025 15:58
Shows that on an unclean shutdown of ext4 (default settings, kernel 6.12.7), files may get a suffix of NUL bytes - see https://github.com/fish-shell/fish-shell/issues/10300
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <linux/reboot.h>
@joanbm
joanbm / broadcom-wl-fix-linux-6.13.patch
Created December 2, 2024 22:39
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.13-rc1
From 5788a19e88aac78e6b2ec8bef7cb094fc14cfbf0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sat, 12 Oct 2024 11:54:40 +0000
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux
6.13-rc1
The net/lib80211.h header has been removed by commit
"wifi: ipw2x00/lib80211: move remaining lib80211 into libipw"
(Johannes Berg, 7 Oct 2024).
The header does not appear to be actually used anywhere, so remove it.
@joanbm
joanbm / nvidia-470xx-fix-linux-6.13.patch
Last active March 4, 2025 00:49
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.13-rc1
From 9f91b171f680648647580c163bbc9cc1641e3920 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sat, 16 Nov 2024 22:45:21 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.13-rc1
---
nvidia-modeset/nvidia-modeset.Kbuild | 8 +++++---
nvidia/nvidia.Kbuild | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
@joanbm
joanbm / broadcom-wl-fix-linux-6.12.patch
Created October 6, 2024 12:16
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.12-rc2
From 5575c6342f62f56b361480c97367b09c011bcc65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Thu, 3 Oct 2024 22:21:36 +0000
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux
6.12-rc2
Just a trivial fix for 5f60d5f6bbc1 ("move asm/unaligned.h to
linux/unaligned.h").
---
src/wl/sys/wl_linux.c | 4 ++++
@joanbm
joanbm / nvidia-470xx-fix-linux-6.12.patch
Last active March 4, 2025 20:24
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.12-rc1
From 839b964bd5be20275a4d1add020e68e407380adb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Sat, 17 Aug 2024 14:26:04 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.12-rc1
Note that the fix requires enabling DRM kernel mode setting
(add the `nvidia-drm.modeset=1` parameter to the kernel command line).
(Thanks xtexChooser for the memory management fixes!)
---
@joanbm
joanbm / nvidia-470xx-fix-linux-6.8.patch
Last active March 12, 2024 20:56
Tentative fix for NVIDIA 470.223.02 driver for Linux 6.8-rc3
From a23d8d2c592028bc49570a6d3dcf75ee4aa0dde0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
Date: Fri, 2 Feb 2024 19:19:04 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.223.02 driver for Linux 6.8-rc3
---
nvidia-drm/nvidia-drm-drv.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c