Skip to content

Commit 83d134e

Browse files
authored
Merge pull request #8654 from douzzer/20250409-linuxkm-fortify_panic-6v8
20250409-linuxkm-fortify_panic-6v8
2 parents 099eaf5 + a22bcc3 commit 83d134e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

linuxkm/linuxkm_wc_port.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@
137137
* fortify_panic().
138138
*/
139139
extern void __my_fortify_panic(const char *name) __noreturn __cold;
140-
#define fortify_panic __my_fortify_panic
140+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0)
141+
/* see linux 3d965b33e40d9 */
142+
#define fortify_panic(func, write, avail, size, retfail) \
143+
__my_fortify_panic(#func)
144+
#else
145+
#define fortify_panic __my_fortify_panic
146+
#endif
141147
#endif
142148

143149
/* the _FORTIFY_SOURCE macros and implementations for several string

0 commit comments

Comments
 (0)