summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej enczykowski <maze@google.com>2019-10-23 15:58:52 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-10-23 15:58:52 -0700
commit176dcac06910d35c69e5f40d917a4faa9a81e84f (patch)
treedbf9fa3d8862fb3067093a1b94b9757013c87ee3
parentb8096452cb5f906c70a0e32b059c43c0eaee1fa5 (diff)
parent78ace0061d89f1c3e6afc87e9e885cc7069e67cb (diff)
downloadtests-176dcac06910d35c69e5f40d917a4faa9a81e84f.tar.gz
net_test: add support/documentation for vsyscall=xonly for 5.2+ host am: 58a8141525 am: 0c1d4acd94
am: 78ace0061d Change-Id: I330e1aed6a7e407d9afea65112db9d6b887dc765
-rwxr-xr-xnet/test/run_net_test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh
index 73383d8..5e20bae 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"
}