[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
** Changed in: dosemu2 Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
This bug was fixed in the package linux - 4.15.0-141.145 --- linux (4.15.0-141.145) bionic; urgency=medium * bionic/linux: 4.15.0-141.145 -proposed tracker (LP: #1919536) * binary assembly failures with CONFIG_MODVERSIONS present (LP: #1919315) - [Packaging] quiet (nomially) benign errors in BUILD script * selftests: bpf verifier fails after sanitize_ptr_alu fixes (LP: #1920995) - bpf: Simplify alu_limit masking for pointer arithmetic - bpf: Add sanity check for upper ptr_limit - bpf, selftests: Fix up some test_verifier cases for unprivileged * Packaging resync (LP: #1786013) - update dkms package versions * CVE-2018-13095 - xfs: More robust inode extent count validation * i40e PF reset due to incorrect MDD event (LP: #1772675) - i40e: change behavior on PF in response to MDD event * Bionic update: upstream stable patchset 2021-03-09 (LP: #1918330) - ACPI: sysfs: Prefer "compatible" modalias - ARM: dts: imx6qdl-gw52xx: fix duplicate regulator naming - wext: fix NULL-ptr-dereference with cfg80211's lack of commit() - net: usb: qmi_wwan: added support for Thales Cinterion PLSx3 modem family - drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs - drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] - KVM: x86/pmu: Fix HW_REF_CPU_CYCLES event pseudo-encoding in intel_arch_events[] - KVM: x86: get smi pending status correctly - xen: Fix XenStore initialisation for XS_LOCAL - leds: trigger: fix potential deadlock with libata - mt7601u: fix kernel crash unplugging the device - mt7601u: fix rx buffer refcounting - xen-blkfront: allow discard-* nodes to be optional - ARM: imx: build suspend-imx6.S with arm instruction set - netfilter: nft_dynset: add timeout extension to template - xfrm: Fix oops in xfrm_replay_advance_bmp - RDMA/cxgb4: Fix the reported max_recv_sge value - iwlwifi: pcie: use jiffies for memory read spin time limit - iwlwifi: pcie: reschedule in long-running memory reads - mac80211: pause TX while changing interface type - can: dev: prevent potential information leak in can_fill_info() - x86/entry/64/compat: Preserve r8-r11 in int $0x80 - x86/entry/64/compat: Fix "x86/entry/64/compat: Preserve r8-r11 in int $0x80" - iommu/vt-d: Gracefully handle DMAR units with no supported address widths - iommu/vt-d: Don't dereference iommu_device if IOMMU_API is not built - NFC: fix resource leak when target index is invalid - NFC: fix possible resource leak - team: protect features update by RCU to avoid deadlock - tcp: fix TLP timer not set when CA_STATE changes from DISORDER to OPEN - kernel: kexec: remove the lock operation of system_transition_mutex - PM: hibernate: flush swap writer after marking - pNFS/NFSv4: Fix a layout segment leak in pnfs_layout_process() - net/mlx5: Fix memory leak on flow table creation error flow - rxrpc: Fix memory leak in rxrpc_lookup_local - net: dsa: bcm_sf2: put device node before return - ibmvnic: Ensure that CRQ entry read are correctly ordered - ACPI: thermal: Do not call acpi_thermal_check() directly - net_sched: gen_estimator: support large ewma log - phy: cpcap-usb: Fix warning for missing regulator_disable - x86: __always_inline __{rd,wr}msr() - scsi: scsi_transport_srp: Don't block target in failfast state - scsi: libfc: Avoid invoking response handler twice if ep is already completed - mac80211: fix fast-rx encryption check - scsi: ibmvfc: Set default timeout to avoid crash during migration - objtool: Don't fail on missing symbol table - kthread: Extract KTHREAD_IS_PER_CPU - workqueue: Restrict affinity change to rescuer - USB: serial: cp210x: add pid/vid for WSDA-200-USB - USB: serial: cp210x: add new VID/PID for supporting Teraoka AD2000 - USB: serial: option: Adding support for Cinterion MV31 - arm64: dts: ls1046a: fix dcfg address range - net: lapb: Copy the skb before sending a packet - elfcore: fix building with clang - USB: gadget: legacy: fix an error code in eth_bind() - USB: usblp: don't call usb_set_interface if there's a single alt - usb: dwc2: Fix endpoint direction check in ep_from_windex - ovl: fix dentry leak in ovl_get_redirect - mac80211: fix station rate table updates on assoc - kretprobe: Avoid re-registration of the same kretprobe earlier - xhci: fix bounce buffer usage for non-sg list case - cifs: report error instead of invalid when revalidating a dentry fails - smb3: Fix out-of-bounds bug in SMB2_negotiate() - mmc: core: Limit retries when analyse of SDIO tuples fails - nvme-pci: avoid the deepest sleep state on Kingston A2000 SSDs - ARM: footbridge: fix dc21285 PCI configuration accessors - mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page - mm: hugetlb: fix
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
hi Bambang, the fix is present in the current proposed version, 4.15.0-141 - both versions 4.15.0-139 and -140 are CVE fixes only, so they didn't include the KVM fix. Cheers, Guilherme -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
** Tags removed: bot-comment verification-needed-bionic ** Tags added: verification-done-bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed- bionic' to 'verification-done-bionic'. If the problem still exists, change the tag 'verification-needed-bionic' to 'verification-failed- bionic'. If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you! ** Tags added: verification-needed-bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
Dear Guilherme, I just want to inform you . Today my kernel is upgraded to version 4.15.0-139-generic, but the bug is still there. Thank you. On Fri, Mar 5, 2021 at 4:50 PM Stefan Bader <1917...@bugs.launchpad.net> wrote: > ** Changed in: linux (Ubuntu Bionic) >Status: In Progress => Fix Committed > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1917138 > > Title: > Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to > lack of KVM patch > > To manage notifications about this bug go to: > https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions > -- Bambang P http://bpranoto.blogspot.com -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
** Changed in: linux (Ubuntu Bionic) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
** Also affects: linux (Ubuntu Bionic) Importance: Undecided Status: New ** Changed in: linux (Ubuntu Bionic) Importance: Undecided => High ** Changed in: linux (Ubuntu Bionic) Status: New => In Progress ** Changed in: linux (Ubuntu Bionic) Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli) ** Changed in: linux (Ubuntu) Importance: High => Undecided ** Changed in: linux (Ubuntu) Status: In Progress => Invalid ** Changed in: linux (Ubuntu) Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
** Changed in: dosemu2 Status: Fix Released => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
Thanks a lot for the tests Bambang, and for the report! The patch was submitted to the Ubuntu kernel ML, soon it should be applied. Cheers, Guilherme -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1917138] Re: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch
** Summary changed: - kernel 4.15.0-136 causes dosemu2 with kvm freezes + Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch ** Description changed: + [Impact] + * Since kernel 4.15.0-136, Bionic kernel included a very complex KVM fix for a kind of "race" in interrupt window with irqchip-split (reported in [0]). The fix was proposed in the form of a patch series containing 2 patches [1] - this was merged in Ubuntu though the stable tree, in the form of the following commit: + 71cc849b7093 ("KVM: x86: Fix split-irqchip vs interrupt injection window request") [2] + + * The problem is that such commit has a companion required commit, which + was not proposed in the stable tree. In fact, there was a confusion + among KVM community and the stable maintainer [3], due to the lack of + such missing commit - because of that, the series was removed from + stable trees 4.14.y and 4.9.y, but the solo commit was merged alone in + Ubuntu kernel. + + * Without the companion patch, we might have a KVM infinite "loop" condition in the core IRQ handling, since the merged commit requires an extra check in kvm_cpu_has_extint() and a condition "inversion" in kvm_cpu_get_extint(), only present in the missing companion patch. Users reported that this manifested as dosemu2 (running in KVM mode) to be stuck in kernel 4.15.0-136 and -137, while works fine in 4.15.0-135 and the + -137 plus the companion patch. + + * So, we hereby backport the companion commit, originally upstream + patch: 72c3bcdcda ("KVM: x86: handle !lapic_in_kernel case in + kvm_cpu_*_extint") [4] + + [Test Case] + * The test case proposed was the reported bug: try running dosemu2 (with kvm mode enabled) and it fails without the companion commit. + + * In order to test the correctness of both fixes together, we could rely + in the test proposed in [0] (running a guest with "noapic"), but it + wasn't consistent and the VMM wasn't mentioned, so we might have a + workaround mechanism in qemu, for example, preventing such test to + reproduce the issue. + + [Where problems could occur] + * Since this is a KVM core modification, it could affect interrupt handling in KVM but without the fix, we are already experiencing a bug. Also, both commits were backported to 5.4.y and 4.19.y, so Focal and subsequent released are already running with them. + + [0] + https://lore.kernel.org/kvm/62918f65ec78f8990278a6a0db0567968fa23e49.ca...@infradead.org/ + + [1] + https://lore.kernel.org/kvm/20201127112114.3219360-1-pbonz...@redhat.com/ + + [2] http://git.kernel.org/linus/71cc849b70 + + [3] + https://lore.kernel.org/stable/d29c4b25-33f6-8d99-7a45-8f4e06f5a...@redhat.com/ + + [4] http://git.kernel.org/linus/72c3bcdcda + + + + With the latest kernel 4.15.0-136 updates on ubuntu 18.04 and ubuntu - 16.04, dosemu2 with kvm freezes boot. + 16.04, dosemu2 with kvm freezes boot. dosemu2 source: https://github.com/dosemu2/dosemu2 dosemu2 package can be obtained from https://launchpad.net/~dosemu2/+archive/ubuntu/ppa 1. ubuntu version lsb_release -rd - Description: Ubuntu 18.04.5 LTS - Release: 18.04 + Description: Ubuntu 18.04.5 LTS + Release: 18.04 2. package version $ apt-cache policy dosemu2 dosemu2: Installed: (none) Candidate: (none) Version table: 2.0~pre8-2 -1 100 /var/lib/dpkg/status 3. What is expected to happen: The dosemu program runs fine as in previous kernel version 4. What happened instead: The dosemu freezes on loading I have also reported this problem to dosemu2 developer, here is my bug report: https://github.com/dosemu2/dosemu2/issues/1404 ** Changed in: linux (Ubuntu) Importance: Undecided => High ** Changed in: linux (Ubuntu) Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1917138 Title: Bionic kernel 4.15.0-136 causes dosemu2 (with kvm mode) freezes due to lack of KVM patch To manage notifications about this bug go to: https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs