Hello,
We ran automated tests on a patchset that was proposed for merging into this
kernel tree. The patches were applied to:
Kernel repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Commit: 6e282ba6ff6b - Linux 5.2.15
The results of these automated tests are provided below.
Overall result: PASSED
Merge: OK
Compile: OK
Tests: OK
All kernel binaries, config files, and logs are available for download here:
https://artifacts.cki-project.org/pipelines/169017
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Merge testing
-------------
We cloned this repository and checked out the following commit:
Repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Commit: 6e282ba6ff6b - Linux 5.2.15
We grabbed the 210459e9afbb commit of the stable queue repository.
We then merged the patchset with `git am`:
bridge-mdb-remove-wrong-use-of-nlm_f_multi.patch
cdc_ether-fix-rndis-support-for-mediatek-based-smartphones.patch
ipv6-fix-the-link-time-qualifier-of-ping_v6_proc_exit_net.patch
isdn-capi-check-message-length-in-capi_write.patch
ixgbe-fix-secpath-usage-for-ipsec-tx-offload.patch
ixgbevf-fix-secpath-usage-for-ipsec-tx-offload.patch
net-fix-null-de-reference-of-device-refcount.patch
net-gso-fix-skb_segment-splat-when-splitting-gso_size-mangled-skb-having-linear-headed-frag_list.patch
net-phylink-fix-flow-control-resolution.patch
net-sched-fix-reordering-issues.patch
sch_hhf-ensure-quantum-and-hhf_non_hh_weight-are-non-zero.patch
sctp-fix-the-link-time-qualifier-of-sctp_ctrlsock_exit.patch
sctp-use-transport-pf_retrans-in-sctp_do_8_2_transport_strike.patch
tcp-fix-tcp_ecn_withdraw_cwr-to-clear-tcp_ecn_queue_cwr.patch
tipc-add-null-pointer-check-before-calling-kfree_rcu.patch
tun-fix-use-after-free-when-register-netdev-failed.patch
net-ipv6-fix-excessive-rtf_addrconf-flag-on-1-128-local-route-and-others.patch
ipv6-addrconf_f6i_alloc-fix-non-null-pointer-check-to-is_err.patch
net-fixed_phy-add-forward-declaration-for-struct-gpio_desc.patch
sctp-fix-the-missing-put_user-when-dumping-transport-thresholds.patch
net-sock_map-fix-missing-ulp-check-in-sock-hash-case.patch
gpiolib-acpi-add-gpiolib_acpi_run_edge_events_on_boot-option-and-blacklist.patch
gpio-mockup-add-missing-single_release.patch
gpio-fix-line-flag-validation-in-linehandle_create.patch
gpio-fix-line-flag-validation-in-lineevent_create.patch
btrfs-fix-assertion-failure-during-fsync-and-use-of-stale-transaction.patch
cgroup-freezer-fix-frozen-state-inheritance.patch
revert-mmc-bcm2835-terminate-timeout-work-synchronously.patch
revert-mmc-sdhci-remove-unneeded-quirk2-flag-of-o2-sd-host-controller.patch
mmc-tmio-fixup-runtime-pm-management-during-probe.patch
mmc-tmio-fixup-runtime-pm-management-during-remove.patch
drm-lima-fix-lima_gem_wait-return-value.patch
drm-i915-limit-mst-to-8bpc-once-again.patch
drm-i915-restore-relaxed-padding-ocl_oob_suppres_enable-for-skl.patch
ipc-fix-semtimedop-for-generic-32-bit-architectures.patch
ipc-fix-sparc64-ipc-wrapper.patch
ixgbe-fix-double-clean-of-tx-descriptors-with-xdp.patch
ixgbe-prevent-u8-wrapping-of-itr-value-to-something-less-than-10us.patch
revert-rt2800-enable-tx_pin_cfg_lna_pe_-bits-per-band.patch
mt76-mt76x0e-disable-5ghz-band-for-mt7630e.patch
genirq-prevent-null-pointer-dereference-in-resend_irqs.patch
regulator-twl-voltage-lists-for-vdd1-2-on-twl4030.patch
kvm-s390-kvm_s390_vm_start_migration-check-dirty_bitmap-before-using-it-as-target-for-memset.patch
kvm-s390-do-not-leak-kernel-stack-data-in-the-kvm_s390_interrupt-ioctl.patch
kvm-x86-work-around-leak-of-uninitialized-stack-contents.patch
kvm-x86-mmu-reintroduce-fast-invalidate-zap-for-flushing-memslot.patch
kvm-nvmx-handle-page-fault-in-vmread.patch
x86-purgatory-change-compiler-flags-from-mcmodel-kernel-to-mcmodel-large-to-fix-kexec-relocation-errors.patch
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
ppc64le:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
s390x:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
x86_64:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
Hardware testing
----------------
We booted each kernel and ran the following tests:
aarch64:
Host 1:
✅ Boot test [0]
✅ selinux-policy: serge-testsuite [1]
Host 2:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
⚡⚡⚡ Boot test [0]
⚡⚡⚡ Podman system integration test (as root) [2]
⚡⚡⚡ Podman system integration test (as user) [2]
⚡⚡⚡ Loopdev Sanity [3]
⚡⚡⚡ jvm test suite [4]
⚡⚡⚡ AMTU (Abstract Machine Test Utility) [5]
⚡⚡⚡ LTP: openposix test suite [6]
⚡⚡⚡ Ethernet drivers sanity [7]
⚡⚡⚡ Networking socket: fuzz [8]
⚡⚡⚡ Networking sctp-auth: sockopts test [9]
⚡⚡⚡ Networking TCP: keepalive test [10]
⚡⚡⚡ audit: audit testsuite test [11]
⚡⚡⚡ httpd: mod_ssl smoke sanity [12]
⚡⚡⚡ iotop: sanity [13]
⚡⚡⚡ tuned: tune-processes-through-perf [14]
⚡⚡⚡ Usex - version 1.9-29 [15]
⚡⚡⚡ stress: stress-ng [16]
🚧 ⚡⚡⚡ LTP lite [17]
🚧 ⚡⚡⚡ Networking bridge: sanity [18]
🚧 ⚡⚡⚡ Networking route: pmtu [19]
🚧 ⚡⚡⚡ Networking route_func: local [20]
🚧 ⚡⚡⚡ Networking route_func: forward [20]
ppc64le:
Host 1:
✅ Boot test [0]
✅ selinux-policy: serge-testsuite [1]
Host 2:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
✅ Boot test [0]
✅ Podman system integration test (as root) [2]
✅ Podman system integration test (as user) [2]
⚡⚡⚡ Loopdev Sanity [3]
✅ jvm test suite [4]
✅ AMTU (Abstract Machine Test Utility) [5]
✅ LTP: openposix test suite [6]
✅ Ethernet drivers sanity [7]
✅ Networking socket: fuzz [8]
✅ Networking sctp-auth: sockopts test [9]
✅ Networking TCP: keepalive test [10]
✅ audit: audit testsuite test [11]
✅ httpd: mod_ssl smoke sanity [12]
✅ iotop: sanity [13]
✅ tuned: tune-processes-through-perf [14]
✅ Usex - version 1.9-29 [15]
🚧 ✅ LTP lite [17]
🚧 ✅ Networking bridge: sanity [18]
🚧 ✅ Networking route: pmtu [19]
🚧 ✅ Networking route_func: local [20]
🚧 ✅ Networking route_func: forward [20]
s390x:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
x86_64:
Host 1:
✅ Boot test [0]
✅ selinux-policy: serge-testsuite [1]
Host 2:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
✅ Boot test [0]
✅ Podman system integration test (as root) [2]
✅ Podman system integration test (as user) [2]
⚡⚡⚡ Loopdev Sanity [3]
✅ jvm test suite [4]
✅ AMTU (Abstract Machine Test Utility) [5]
✅ LTP: openposix test suite [6]
✅ Ethernet drivers sanity [7]
✅ Networking socket: fuzz [8]
✅ Networking sctp-auth: sockopts test [9]
✅ Networking TCP: keepalive test [10]
✅ audit: audit testsuite test [11]
✅ httpd: mod_ssl smoke sanity [12]
✅ iotop: sanity [13]
✅ tuned: tune-processes-through-perf [14]
✅ pciutils: sanity smoke test [21]
✅ Usex - version 1.9-29 [15]
✅ stress: stress-ng [16]
🚧 ✅ LTP lite [17]
🚧 ✅ Networking bridge: sanity [18]
🚧 ✅ Networking route: pmtu [19]
🚧 ✅ Networking route_func: local [20]
🚧 ✅ Networking route_func: forward [20]
Test source:
💚 Pull requests are welcome for new tests or improvements to existing tests!
[0]: https://github.com/CKI-project/tests-beaker/archive/master.zip#distribution…
[1]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/packages/se…
[2]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/container/p…
[3]: https://github.com/CKI-project/tests-beaker/archive/master.zip#filesystems/…
[4]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/jvm
[5]: https://github.com/CKI-project/tests-beaker/archive/master.zip#misc/amtu
[6]: https://github.com/CKI-project/tests-beaker/archive/master.zip#distribution…
[7]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[8]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[9]: https://github.com/CKI-project/tests-beaker/archive/master.zip#networking/s…
[10]: https://github.com/CKI-project/tests-beaker/archive/master.zip#networking/t…
[11]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/aud…
[12]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/htt…
[13]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/iot…
[14]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/tun…
[15]: https://github.com/CKI-project/tests-beaker/archive/master.zip#standards/us…
[16]: https://github.com/CKI-project/tests-beaker/archive/master.zip#stress/stres…
[17]: https://github.com/CKI-project/tests-beaker/archive/master.zip#distribution…
[18]: https://github.com/CKI-project/tests-beaker/archive/master.zip#networking/b…
[19]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[20]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[21]: https://github.com/CKI-project/tests-beaker/archive/master.zip#pciutils/san…
Waived tests
------------
If the test run included waived tests, they are marked with 🚧. Such tests are
executed but their results are not taken into account. Tests are waived when
their results are not reliable enough, e.g. when they're just introduced or are
being fixed.
Hello,
We ran automated tests on a patchset that was proposed for merging into this
kernel tree. The patches were applied to:
Kernel repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Commit: 6e282ba6ff6b - Linux 5.2.15
The results of these automated tests are provided below.
Overall result: PASSED
Merge: OK
Compile: OK
Tests: OK
All kernel binaries, config files, and logs are available for download here:
https://artifacts.cki-project.org/pipelines/168682
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Merge testing
-------------
We cloned this repository and checked out the following commit:
Repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Commit: 6e282ba6ff6b - Linux 5.2.15
We grabbed the 6ce8f5d40fdb commit of the stable queue repository.
We then merged the patchset with `git am`:
bridge-mdb-remove-wrong-use-of-nlm_f_multi.patch
cdc_ether-fix-rndis-support-for-mediatek-based-smartphones.patch
ipv6-fix-the-link-time-qualifier-of-ping_v6_proc_exit_net.patch
isdn-capi-check-message-length-in-capi_write.patch
ixgbe-fix-secpath-usage-for-ipsec-tx-offload.patch
ixgbevf-fix-secpath-usage-for-ipsec-tx-offload.patch
net-fix-null-de-reference-of-device-refcount.patch
net-gso-fix-skb_segment-splat-when-splitting-gso_size-mangled-skb-having-linear-headed-frag_list.patch
net-phylink-fix-flow-control-resolution.patch
net-sched-fix-reordering-issues.patch
sch_hhf-ensure-quantum-and-hhf_non_hh_weight-are-non-zero.patch
sctp-fix-the-link-time-qualifier-of-sctp_ctrlsock_exit.patch
sctp-use-transport-pf_retrans-in-sctp_do_8_2_transport_strike.patch
tcp-fix-tcp_ecn_withdraw_cwr-to-clear-tcp_ecn_queue_cwr.patch
tipc-add-null-pointer-check-before-calling-kfree_rcu.patch
tun-fix-use-after-free-when-register-netdev-failed.patch
net-ipv6-fix-excessive-rtf_addrconf-flag-on-1-128-local-route-and-others.patch
ipv6-addrconf_f6i_alloc-fix-non-null-pointer-check-to-is_err.patch
net-fixed_phy-add-forward-declaration-for-struct-gpio_desc.patch
sctp-fix-the-missing-put_user-when-dumping-transport-thresholds.patch
net-sock_map-fix-missing-ulp-check-in-sock-hash-case.patch
gpiolib-acpi-add-gpiolib_acpi_run_edge_events_on_boot-option-and-blacklist.patch
gpio-mockup-add-missing-single_release.patch
gpio-fix-line-flag-validation-in-linehandle_create.patch
gpio-fix-line-flag-validation-in-lineevent_create.patch
btrfs-fix-assertion-failure-during-fsync-and-use-of-stale-transaction.patch
cgroup-freezer-fix-frozen-state-inheritance.patch
revert-mmc-bcm2835-terminate-timeout-work-synchronously.patch
revert-mmc-sdhci-remove-unneeded-quirk2-flag-of-o2-sd-host-controller.patch
mmc-tmio-fixup-runtime-pm-management-during-probe.patch
mmc-tmio-fixup-runtime-pm-management-during-remove.patch
drm-lima-fix-lima_gem_wait-return-value.patch
drm-i915-limit-mst-to-8bpc-once-again.patch
drm-i915-restore-relaxed-padding-ocl_oob_suppres_enable-for-skl.patch
ipc-fix-semtimedop-for-generic-32-bit-architectures.patch
ipc-fix-sparc64-ipc-wrapper.patch
ixgbe-fix-double-clean-of-tx-descriptors-with-xdp.patch
ixgbe-prevent-u8-wrapping-of-itr-value-to-something-less-than-10us.patch
revert-rt2800-enable-tx_pin_cfg_lna_pe_-bits-per-band.patch
mt76-mt76x0e-disable-5ghz-band-for-mt7630e.patch
genirq-prevent-null-pointer-dereference-in-resend_irqs.patch
regulator-twl-voltage-lists-for-vdd1-2-on-twl4030.patch
kvm-s390-kvm_s390_vm_start_migration-check-dirty_bitmap-before-using-it-as-target-for-memset.patch
kvm-s390-do-not-leak-kernel-stack-data-in-the-kvm_s390_interrupt-ioctl.patch
kvm-x86-work-around-leak-of-uninitialized-stack-contents.patch
kvm-x86-mmu-reintroduce-fast-invalidate-zap-for-flushing-memslot.patch
kvm-nvmx-handle-page-fault-in-vmread.patch
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
ppc64le:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
s390x:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
x86_64:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg
Hardware testing
----------------
We booted each kernel and ran the following tests:
aarch64:
Host 1:
✅ Boot test [0]
✅ selinux-policy: serge-testsuite [1]
Host 2:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
✅ Boot test [0]
✅ Podman system integration test (as root) [2]
✅ Podman system integration test (as user) [2]
⚡⚡⚡ Loopdev Sanity [3]
✅ jvm test suite [4]
✅ AMTU (Abstract Machine Test Utility) [5]
✅ LTP: openposix test suite [6]
✅ Ethernet drivers sanity [7]
✅ Networking socket: fuzz [8]
✅ Networking sctp-auth: sockopts test [9]
✅ Networking TCP: keepalive test [10]
✅ audit: audit testsuite test [11]
✅ httpd: mod_ssl smoke sanity [12]
✅ iotop: sanity [13]
✅ tuned: tune-processes-through-perf [14]
✅ Usex - version 1.9-29 [15]
✅ stress: stress-ng [16]
🚧 ✅ LTP lite [17]
🚧 ✅ Networking bridge: sanity [18]
🚧 ✅ Networking route: pmtu [19]
🚧 ✅ Networking route_func: local [20]
🚧 ✅ Networking route_func: forward [20]
ppc64le:
Host 1:
✅ Boot test [0]
✅ selinux-policy: serge-testsuite [1]
Host 2:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
✅ Boot test [0]
✅ Podman system integration test (as root) [2]
✅ Podman system integration test (as user) [2]
⚡⚡⚡ Loopdev Sanity [3]
✅ jvm test suite [4]
✅ AMTU (Abstract Machine Test Utility) [5]
✅ LTP: openposix test suite [6]
✅ Ethernet drivers sanity [7]
✅ Networking socket: fuzz [8]
✅ Networking sctp-auth: sockopts test [9]
✅ Networking TCP: keepalive test [10]
✅ audit: audit testsuite test [11]
✅ httpd: mod_ssl smoke sanity [12]
✅ iotop: sanity [13]
✅ tuned: tune-processes-through-perf [14]
✅ Usex - version 1.9-29 [15]
🚧 ✅ LTP lite [17]
🚧 ✅ Networking bridge: sanity [18]
🚧 ✅ Networking route: pmtu [19]
🚧 ✅ Networking route_func: local [20]
🚧 ✅ Networking route_func: forward [20]
s390x:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
x86_64:
Host 1:
✅ Boot test [0]
✅ selinux-policy: serge-testsuite [1]
Host 2:
⚡ Internal infrastructure issues prevented one or more tests (marked
with ⚡⚡⚡) from running on this architecture.
This is not the fault of the kernel that was tested.
✅ Boot test [0]
✅ Podman system integration test (as root) [2]
✅ Podman system integration test (as user) [2]
⚡⚡⚡ Loopdev Sanity [3]
✅ jvm test suite [4]
✅ AMTU (Abstract Machine Test Utility) [5]
✅ LTP: openposix test suite [6]
✅ Ethernet drivers sanity [7]
✅ Networking socket: fuzz [8]
✅ Networking sctp-auth: sockopts test [9]
✅ Networking TCP: keepalive test [10]
✅ audit: audit testsuite test [11]
✅ httpd: mod_ssl smoke sanity [12]
✅ iotop: sanity [13]
✅ tuned: tune-processes-through-perf [14]
✅ pciutils: sanity smoke test [21]
✅ Usex - version 1.9-29 [15]
✅ stress: stress-ng [16]
🚧 ✅ LTP lite [17]
🚧 ✅ Networking bridge: sanity [18]
🚧 ✅ Networking route: pmtu [19]
🚧 ✅ Networking route_func: local [20]
🚧 ✅ Networking route_func: forward [20]
Test source:
💚 Pull requests are welcome for new tests or improvements to existing tests!
[0]: https://github.com/CKI-project/tests-beaker/archive/master.zip#distribution…
[1]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/packages/se…
[2]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/container/p…
[3]: https://github.com/CKI-project/tests-beaker/archive/master.zip#filesystems/…
[4]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/jvm
[5]: https://github.com/CKI-project/tests-beaker/archive/master.zip#misc/amtu
[6]: https://github.com/CKI-project/tests-beaker/archive/master.zip#distribution…
[7]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[8]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[9]: https://github.com/CKI-project/tests-beaker/archive/master.zip#networking/s…
[10]: https://github.com/CKI-project/tests-beaker/archive/master.zip#networking/t…
[11]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/aud…
[12]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/htt…
[13]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/iot…
[14]: https://github.com/CKI-project/tests-beaker/archive/master.zip#packages/tun…
[15]: https://github.com/CKI-project/tests-beaker/archive/master.zip#standards/us…
[16]: https://github.com/CKI-project/tests-beaker/archive/master.zip#stress/stres…
[17]: https://github.com/CKI-project/tests-beaker/archive/master.zip#distribution…
[18]: https://github.com/CKI-project/tests-beaker/archive/master.zip#networking/b…
[19]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[20]: https://github.com/CKI-project/tests-beaker/archive/master.zip#/networking/…
[21]: https://github.com/CKI-project/tests-beaker/archive/master.zip#pciutils/san…
Waived tests
------------
If the test run included waived tests, they are marked with 🚧. Such tests are
executed but their results are not taken into account. Tests are waived when
their results are not reliable enough, e.g. when they're just introduced or are
being fixed.
From: Wanpeng Li <wanpengli(a)tencent.com>
Reported by syzkaller:
WARNING: CPU: 0 PID: 6544 at /home/kernel/data/kvm/arch/x86/kvm//vmx/vmx.c:4689 handle_desc+0x37/0x40 [kvm_intel]
CPU: 0 PID: 6544 Comm: a.out Tainted: G OE 5.3.0-rc4+ #4
RIP: 0010:handle_desc+0x37/0x40 [kvm_intel]
Call Trace:
vmx_handle_exit+0xbe/0x6b0 [kvm_intel]
vcpu_enter_guest+0x4dc/0x18d0 [kvm]
kvm_arch_vcpu_ioctl_run+0x407/0x660 [kvm]
kvm_vcpu_ioctl+0x3ad/0x690 [kvm]
do_vfs_ioctl+0xa2/0x690
ksys_ioctl+0x6d/0x80
__x64_sys_ioctl+0x1a/0x20
do_syscall_64+0x74/0x720
entry_SYSCALL_64_after_hwframe+0x49/0xbe
When CR4.UMIP is set, guest should have UMIP cpuid flag. Current
kvm set_sregs function doesn't have such check when userspace inputs
sregs values. SECONDARY_EXEC_DESC is enabled on writes to CR4.UMIP in
vmx_set_cr4 though guest doesn't have UMIP cpuid flag. The testcast
triggers handle_desc warning when executing ltr instruction since guest
architectural CR4 doesn't set UMIP. This patch fixes it by adding check
for guest UMIP cpuid flag when get sreg inputs from userspace.
Reported-by: syzbot+0f1819555fbdce992df9(a)syzkaller.appspotmail.com
Fixes: 0367f205a3b7 ("KVM: vmx: add support for emulating UMIP")
Cc: stable(a)vger.kernel.org
Signed-off-by: Wanpeng Li <wanpengli(a)tencent.com>
---
Note: syzbot report link https://lkml.org/lkml/2019/9/11/799
arch/x86/kvm/x86.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f7cfd8e..83288ba 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -8645,6 +8645,10 @@ static int kvm_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
(sregs->cr4 & X86_CR4_OSXSAVE))
return -EINVAL;
+ if (!guest_cpuid_has(vcpu, X86_FEATURE_UMIP) &&
+ (sregs->cr4 & X86_CR4_UMIP))
+ return -EINVAL;
+
if ((sregs->efer & EFER_LME) && (sregs->cr0 & X86_CR0_PG)) {
/*
* When EFER.LME and CR0.PG are set, the processor is in
--
2.7.4
Hi Greg,
please apply the following patches to v4.4.y, v4.9.y, and v4.14.y.
351fdddd3662 ("MIPS: VDSO: Prevent use of smp_processor_id()")
0648e50e548d ("MIPS: VDSO: Use same -m%-float cflag as the kernel proper")
The second patch fixes the build error reported for decstation_defconfig and others
by kernelci, and the first patch is needed to avoid a merge conflict (and it doesn't
hurt to have it in the branch).
Thanks,
Guenter