Ticket #20456: changes-linux-5.13-randomize-kstack-offset.diff
| File changes-linux-5.13-randomize-kstack-offset.diff, 851 bytes (added by , 3 years ago) |
|---|
-
branches/VBox-6.1/src/VBox/VMM/VMMR0/VMMR0JmpA-amd64.asm
33 33 34 34 ;; Workaround for linux 4.6 fast/slow syscall stack depth difference. 35 ;; Update: This got worse with linux 5.13 and CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT. 36 ;; The x86 arch_exit_to_user_mode_prepare code limits the offset to 255, 37 ;; while the generic limit is 1023. See bugref:10064 for details. 35 38 %ifdef VMM_R0_SWITCH_STACK 36 39 %define STACK_FUZZ_SIZE 0 37 40 %else 38 %define STACK_FUZZ_SIZE 128 41 %ifdef RT_OS_LINUX 42 %define STACK_FUZZ_SIZE 384 43 %else 44 %define STACK_FUZZ_SIZE 128 45 %endif 39 46 %endif 40 47

