Merge pull request #8654 from douzzer/20250409-linuxkm-fortify_panic-6v8

20250409-linuxkm-fortify_panic-6v8
This commit is contained in:
philljj
2025-04-09 16:18:40 -04:00
committed by GitHub

View File

@@ -137,7 +137,13 @@
* fortify_panic().
*/
extern void __my_fortify_panic(const char *name) __noreturn __cold;
#define fortify_panic __my_fortify_panic
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0)
/* see linux 3d965b33e40d9 */
#define fortify_panic(func, write, avail, size, retfail) \
__my_fortify_panic(#func)
#else
#define fortify_panic __my_fortify_panic
#endif
#endif
/* the _FORTIFY_SOURCE macros and implementations for several string