VirtualBox

Ticket #20456: changes-linux-5.13-randomize-kstack-offset.diff

File changes-linux-5.13-randomize-kstack-offset.diff, 851 bytes (added by Klaus Espenlaub, 3 years ago)
  • branches/VBox-6.1/src/VBox/VMM/VMMR0/VMMR0JmpA-amd64.asm

     
    3333
    3434;; 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.
    3538%ifdef VMM_R0_SWITCH_STACK
    3639 %define STACK_FUZZ_SIZE 0
    3740%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
    3946%endif
    4047

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy