001-Fix-cryptodev_verbosity-sysctl-for-Linux-6.11-rc1.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From d481e9718ef2edd4e003d3618e7673507e9503bb Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]>
  3. Date: Fri, 19 Jul 2024 20:18:31 +0000
  4. Subject: [PATCH] Fix cryptodev_verbosity sysctl for Linux 6.11-rc1
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. There has been a long-running Linux kernel effort to get rid of the
  9. sentinels of `struct ctl_table`. In Linux 6.11 it has been completed,
  10. and registering a sysctl with a sentinel will fail with a dmesg error:
  11. > sysctl table check failed: ioctl/(null) procname is null
  12. > sysctl table check failed: ioctl/(null) No proc_handler
  13. Exclude the sentinels since that version.
  14. See also: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f8a8b94d0698ccc56c44478169c91ca774540d9f
  15. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c
  16. Signed-off-by: Joan Bruguera Micó <[email protected]>
  17. ---
  18. ioctl.c | 2 ++
  19. 1 file changed, 2 insertions(+)
  20. --- a/ioctl.c
  21. +++ b/ioctl.c
  22. @@ -1239,7 +1239,9 @@ static struct ctl_table verbosity_ctl_di
  23. .mode = 0644,
  24. .proc_handler = proc_dointvec,
  25. },
  26. +#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0))
  27. {},
  28. +#endif
  29. };
  30. static struct ctl_table verbosity_ctl_root[] = {