Fix usbcore.quirks when used at boot

Bug #1795784 reported by Kai-Heng Feng on 2018-10-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
linux-oem (Ubuntu)

Bug Description

Use usbcore.quirks kernel parameter let the boot stuck.

Without the patch, the usbcore.quirks= doesn't work when usbcore is
builtin. The issue is fixed with the patch.

If the parameter is used at boot, parse the list after the slab is
initialized. When the kcalloc fails, reset the count to 0.

[Regression Potential]
Low. The change limits to quirk parsing, the usbcore behaviour stays the

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1795784

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Seth Forshee (sforshee) on 2018-10-04
Changed in linux (Ubuntu Cosmic):
status: Incomplete → Fix Committed
Launchpad Janitor (janitor) wrote :
Download full text (60.2 KiB)

This bug was fixed in the package linux - 4.18.0-9.10

linux (4.18.0-9.10) cosmic; urgency=medium

  * linux: 4.18.0-9.10 -proposed tracker (LP: #1796346)

  * Cosmic update: v4.18.12 upstream stable release (LP: #1796139)
    - crypto: skcipher - Fix -Wstringop-truncation warnings
    - iio: adc: ina2xx: avoid kthread_stop() with stale task_struct
    - tsl2550: fix lux1_input error in low light
    - misc: ibmvmc: Use GFP_ATOMIC under spin lock
    - vmci: type promotion bug in qp_host_get_user_memory()
    - siox: don't create a thread without starting it
    - x86/numa_emulation: Fix emulated-to-physical node mapping
    - staging: rts5208: fix missing error check on call to rtsx_write_register
    - power: supply: axp288_charger: Fix initial constant_charge_current value
    - misc: sram: enable clock before registering regions
    - serial: sh-sci: Stop RX FIFO timer during port shutdown
    - uwb: hwa-rc: fix memory leak at probe
    - power: vexpress: fix corruption in notifier registration
    - iommu/amd: make sure TLB to be flushed before IOVA freed
    - Bluetooth: Add a new Realtek 8723DE ID 0bda:b009
    - USB: serial: kobil_sct: fix modem-status error handling
    - 6lowpan: iphc: reset mac_header after decompress to fix panic
    - iommu/msm: Don't call iommu_device_{,un}link from atomic context
    - s390/mm: correct allocate_pgste proc_handler callback
    - power: remove possible deadlock when unregistering power_supply
    - drm/amd/display/dc/dce: Fix multiple potential integer overflows
    - drm/amd/display: fix use of uninitialized memory
    - md-cluster: clear another node's suspend_area after the copy is finished
    - cxgb4: Fix the condition to check if the card is T5
    - RDMA/bnxt_re: Fix a couple off by one bugs
    - RDMA/i40w: Hold read semaphore while looking after VMA
    - RDMA/bnxt_re: Fix a bunch of off by one bugs in qplib_fp.c
    - IB/core: type promotion bug in rdma_rw_init_one_mr()
    - media: exynos4-is: Prevent NULL pointer dereference in __isp_video_try_fmt()
    - IB/mlx4: Test port number before querying type.
    - powerpc/kdump: Handle crashkernel memory reservation failure
    - media: fsl-viu: fix error handling in viu_of_probe()
    - vhost_net: Avoid tx vring kicks during busyloop
    - media: staging/imx: fill vb2_v4l2_buffer field entry
    - IB/mlx5: Fix GRE flow specification
    - include/rdma/opa_addr.h: Fix an endianness issue
    - x86/tsc: Add missing header to tsc_msr.c
    - ARM: hwmod: RTC: Don't assume lock/unlock will be called with irq enabled
    - x86/entry/64: Add two more instruction suffixes
    - ARM: dts: ls1021a: Add missing cooling device properties for CPUs
    - scsi: target/iscsi: Make iscsit_ta_authentication() respect the output
      buffer size
    - thermal: i.MX: Allow thermal probe to fail gracefully in case of bad
    - scsi: klist: Make it safe to use klists in atomic context
    - scsi: ibmvscsi: Improve strings handling
    - scsi: target: Avoid that EXTENDED COPY commands trigger lock inversion
    - usb: wusbcore: security: cast sizeof to int for comparison
    - ath10k: sdio: use same endpoint id for all packets...

Changed in linux (Ubuntu Cosmic):
status: Fix Committed → Fix Released
Changed in linux (Ubuntu Bionic):
status: New → Fix Committed
Timo Aaltonen (tjaalton) on 2018-10-22
Changed in linux-oem (Ubuntu Bionic):
status: New → Fix Committed
Kai-Heng Feng (kaihengfeng) wrote :

Verified on linux-oem.

tags: added: verification-done-bionic
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-oem - 4.15.0-1024.29

linux-oem (4.15.0-1024.29) bionic; urgency=medium

  * linux-oem: 4.15.0-1024.29 -proposed tracker (LP: #1797069)

  * Keyboard backlight sysfs sometimes is missing on Dell laptops (LP: #1797304)
    - platform/x86: dell-smbios: Correct some style warnings
    - platform/x86: dell-smbios: Rename dell-smbios source to dell-smbios-base
    - platform/x86: dell-smbios: Link all dell-smbios-* modules together

  [ Ubuntu: 4.15.0-38.41 ]

  * linux: 4.15.0-38.41 -proposed tracker (LP: #1797061)
  * Silent data corruption in Linux kernel 4.15 (LP: #1796542)
    - block: add a lower-level bio_add_page interface
    - block: bio_iov_iter_get_pages: fix size of last iovec
    - blkdev: __blkdev_direct_IO_simple: fix leak in error case
    - block: bio_iov_iter_get_pages: pin more pages for multi-segment IOs

 -- Chia-Lin Kao (AceLan) <email address hidden> Tue, 16 Oct 2018 10:32:03 +0800

Changed in linux-oem (Ubuntu Bionic):
status: Fix Committed → Fix Released
Changed in linux-oem (Ubuntu):
status: New → Fix Released
Launchpad Janitor (janitor) wrote :
Download full text (5.4 KiB)

This bug was fixed in the package linux - 4.15.0-39.42

linux (4.15.0-39.42) bionic; urgency=medium

  * linux: 4.15.0-39.42 -proposed tracker (LP: #1799411)

  * Linux: insufficient shootdown for paging-structure caches (LP: #1798897)
    - mm: move tlb_table_flush to tlb_flush_mmu_free
    - mm/tlb: Remove tlb_remove_table() non-concurrent condition
    - mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

  * Ubuntu18.04: GPU total memory is reduced (LP: #1792102)
    - Revert "powerpc/powernv: Increase memory block size to 1GB on radix"

  * arm64: snapdragon: reduce boot noise (LP: #1797154)
    - [Config] arm64: snapdragon: DRM_MSM=m
    - [Config] arm64: snapdragon: SND*=m
    - [Config] arm64: snapdragon: disable ARM_SDE_INTERFACE
    - [Config] arm64: snapdragon: disable DRM_I2C_ADV7511_CEC
    - [Config] arm64: snapdragon: disable VIDEO_ADV7511, VIDEO_COBALT

  * [Bionic] CPPC bug fixes (LP: #1796949)
    - ACPI / CPPC: Update all pr_(debug/err) messages to log the susbspace id
    - cpufreq: CPPC: Don't set transition_latency
    - ACPI / CPPC: Fix invalid PCC channel status errors

  * regression in 'ip --family bridge neigh' since linux v4.12 (LP: #1796748)
    - rtnetlink: fix rtnl_fdb_dump() for ndmsg header

  * screen displays abnormally on the lenovo M715 with the AMD GPU (Radeon Vega
    8 Mobile, rev ca, 1002:15dd) (LP: #1796786)
    - drm/amd/display: Fix takover from VGA mode
    - drm/amd/display: early return if not in vga mode in disable_vga
    - drm/amd/display: Refine disable VGA

  * arm64: snapdragon: WARNING: CPU: 0 PID: 1 arch/arm64/kernel/setup.c:271
    reserve_memblock_reserved_regions (LP: #1797139)
    - SAUCE: arm64: Fix /proc/iomem for reserved but not memory regions

  * The front MIC can't work on the Lenovo M715 (LP: #1797292)
    - ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715

  * Keyboard backlight sysfs sometimes is missing on Dell laptops (LP: #1797304)
    - platform/x86: dell-smbios: Correct some style warnings
    - platform/x86: dell-smbios: Rename dell-smbios source to dell-smbios-base
    - platform/x86: dell-smbios: Link all dell-smbios-* modules together

  * rpi3b+: ethernet not working (LP: #1797406)
    - lan78xx: Don't reset the interface on open

  * 87cdf3148b11 was never backported to 4.15 (LP: #1795653)
    - xfrm: Verify MAC header exists before overwriting eth_hdr(skb)->h_proto

  * [Ubuntu18.04][Power9][DD2.2]package installation segfaults inside debian
    chroot env in P9 KVM guest with HTM enabled (kvm) (LP: #1792501)
    - KVM: PPC: Book3S HV: Fix guest r11 corruption with POWER9 TM workarounds

  * Provide mode where all vCPUs on a core must be the same VM (LP: #1792957)
    - KVM: PPC: Book3S HV: Provide mode where all vCPUs on a core must be the same

  * fscache: bad refcounting in fscache_op_complete leads to OOPS (LP: #1797314)
    - SAUCE: fscache: Fix race in decrementing refcount of op->npages

  * CVE-2018-9363
    - Bluetooth: hidp: buffer overflow in hidp_process_report

  * CVE-20...


Changed in linux (Ubuntu Bionic):
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :
Download full text (9.6 KiB)

This bug was fixed in the package linux-oem - 4.15.0-1026.31

linux-oem (4.15.0-1026.31) bionic; urgency=medium

  * linux-oem: 4.15.0-1026.31 -proposed tracker (LP: #1800788)

  * Thunderbolt runtime D3 and PCIe D3 Cold support (LP: #1800770)
    - ACPI / hotplug / PCI: Don't scan bridges managed by native hotplug
    - ACPI / hotplug / PCI: Mark stale PCI devices disconnected
    - ACPI / hotplug / PCI: Drop unnecessary parentheses
    - PCI: Account for all bridges on bus when distributing bus numbers
    - PCI: Move resource distribution for single bridge outside loop
    - PCI: Improve pci_scan_bridge() and pci_scan_bridge_extend() doc
    - ACPICA: Recognize the Windows 10 version 1607 and 1703 OSI strings
    - ACPICA: Recognize the _OSI string "Windows 2017.2"
    - PCI: Do not skip power-managed bridges in pci_enable_wake()
    - PCI / ACPI: Enable wake automatically for power managed bridges
    - PCI: pciehp: Fix use-after-free on unplug
    - PCI: hotplug: Drop checking of PCI_BRIDGE_CONTROL in *_unconfigure_device()
    - PCI: Add SPDX GPL-2.0+ to replace GPL v2 or later boilerplate
    - PCI: pciehp: Declare pciehp_unconfigure_device() void
    - PCI: pciehp: Clear Presence Detect and Data Link Layer Status Changed on
    - PCI: pciehp: Document struct slot and struct controller
    - PCI: hotplug: Don't leak pci_slot on registration failure
    - PCI: pciehp: Fix unprotected list iteration in IRQ handler
    - PCI: pciehp: Drop unnecessary NULL pointer check
    - PCI: pciehp: Convert to threaded IRQ
    - PCI: pciehp: Convert to threaded polling
    - PCI: pciehp: Stop blinking on slot enable failure
    - PCI: pciehp: Handle events synchronously
    - PCI: pciehp: Drop slot workqueue
    - PCI/hotplug: ppc: correct a php_slot usage after free
    - PCI: hotplug: Demidlayer registration with the core
    - PCI: pciehp: Publish to user space last on probe
    - PCI: pciehp: Track enable/disable status
    - PCI: pciehp: Enable/disable exclusively from IRQ thread
    - PCI: pciehp: Drop enable/disable lock
    - PCI: pciehp: Declare pciehp_enable/disable_slot() static
    - PCI: pciehp: Tolerate initially unstable link
    - PCI: pciehp: Become resilient to missed events
    - PCI: pciehp: Always enable occupied slot on probe
    - PCI: pciehp: Avoid slot access during reset
    - PCI: portdrv: Deduplicate PM callback iterator
    - PCI/portdrv: Move pcieport_if.h to drivers/pci/pcie/
    - PCI/portdrv: Merge pcieport_if.h into portdrv.h
    - PCI/PM: Move pcie_clear_root_pme_status() to core
    - PCI/portdrv: Remove pcie_port_bus_type link order dependency
    - PCI/portdrv: Disable port driver in compat mode
    - PCI/portdrv: Remove unused PCIE_PORT_SERVICE_VC
    - PCI/portdrv: Remove "pcie_hp=nomsi" kernel parameter
    - PCI/portdrv: Remove unnecessary "pcie_ports=auto" parameter
    - PCI/portdrv: Encapsulate pcie_ports_auto inside the port driver
    - PCI: pciehp: Clear spurious events earlier on resume
    - PCI: pciehp: Obey compulsory command delay after resume
    - PCI: pciehp: Support interrupts sent from D3hot
    - PCI: pciehp: Resume to D0 on enable/disable
    - PCI: pciehp: Resum...


Changed in linux-oem (Ubuntu Cosmic):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers