diff options
author | Maciej Żenczykowski <maze@google.com> | 2019-10-23 13:52:51 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2019-10-23 13:53:13 -0700 |
commit | 58a814152565f495abd0a9f50d7c22038ffacc41 (patch) | |
tree | dbf9fa3d8862fb3067093a1b94b9757013c87ee3 /net/test | |
parent | 53bb87c5d0804b3f8175d8fcf7d6d3c35a88f9c1 (diff) | |
download | kernel_tests-58a814152565f495abd0a9f50d7c22038ffacc41.tar.gz kernel_tests-58a814152565f495abd0a9f50d7c22038ffacc41.tar.bz2 kernel_tests-58a814152565f495abd0a9f50d7c22038ffacc41.zip |
net_test: add support/documentation for vsyscall=xonly for 5.2+ host
Bug: 142615395
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I7761583f0b97702823aa0826a09d409237ef7c85
Diffstat (limited to 'net/test')
-rwxr-xr-x | net/test/run_net_test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh index 73383d8e..5e20bae0 100755 --- a/net/test/run_net_test.sh +++ b/net/test/run_net_test.sh @@ -325,13 +325,14 @@ if [ "$ARCH" == "um" ]; then zcat "/boot/config-$(uname -r).gz" || : } 2>/dev/null \ | egrep -q '^CONFIG_LEGACY_VSYSCALL_NONE=y' \ - && ! egrep -q '(^| )vsyscall=(native|emulate)( |$)' /proc/cmdline \ + && ! egrep -q '(^| )vsyscall=(native|emulate|xonly)( |$)' /proc/cmdline \ && { echo -e "\r" echo -e "-----=====-----\r" echo -e "If above you saw a 'net_test.sh[1]: segfault at ...' followed by\r" echo -e "'Kernel panic - not syncing: Attempted to kill init!' then please\r" echo -e "set 'vsyscall=emulate' on *host* kernel command line.\r" + echo -e "On Linux 5.2+ you can instead use the slightly safer 'vsyscall=xonly'.\r" echo -e "(for example via GRUB_CMDLINE_LINUX in /etc/default/grub)\r" echo -e "-----=====-----\r" } |