![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /lib/modules/5.4.0-198-generic/build/Documentation/arm64/ |
Upload File : |
#!/bin/sh # Print out the KASAN_SHADOW_OFFSETS required to place the KASAN SHADOW # start address at the mid-point of the kernel VA space print_kasan_offset () { printf "%02d\t" $1 printf "0x%08x00000000\n" $(( (0xffffffff & (-1 << ($1 - 1 - 32))) \ + (1 << ($1 - 32 - $2)) \ - (1 << (64 - 32 - $2)) )) } echo KASAN_SHADOW_SCALE_SHIFT = 3 printf "VABITS\tKASAN_SHADOW_OFFSET\n" print_kasan_offset 48 3 print_kasan_offset 47 3 print_kasan_offset 42 3 print_kasan_offset 39 3 print_kasan_offset 36 3 echo echo KASAN_SHADOW_SCALE_SHIFT = 4 printf "VABITS\tKASAN_SHADOW_OFFSET\n" print_kasan_offset 48 4 print_kasan_offset 47 4 print_kasan_offset 42 4 print_kasan_offset 39 4 print_kasan_offset 36 4