[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-10-16 Thread Alexandre ACEBEDO
Got the same issue on 5.2 5.3 and 5.4 rc kernels.
The BT part of my Intel 8265 wifi/BT card of my matebook D14 laptop is kicked 
out after a few minutes of use with a logitech anywhere mx 2s mouse.

Only a hard power off resolve the issue. reboot does not revive the
adapter.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-08-21 Thread Deltik
@kunwoo: That patch made it into kernel 4.17.10:
https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.17.10

It's been in all the kernel versions since, as you can see from the tags here:
https://github.com/torvalds/linux/commit/229bc19fd7aca4f37964af06e3583c1c8f36b5d6

The code as of today:
https://github.com/torvalds/linux/blame/15d90b242290f228166ea79ee1cc2db6b31a2143/drivers/usb/host/xhci.c#L932

I couldn't find any evidence that the patch is absent from kernel 5.2.9,
and I don't see how you could have applied a patch that should already
be in that kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-08-21 Thread Kun Woo
I am on Kernel 5.2.9 and still experiencing this issue. How has this
been fixed?

I found an existing discussion on the bbs of arch linux here
https://bbs.archlinux.org/viewtopic.php?id=236536

and there seems to be an existing test-patch on linux-usb here
https://marc.info/?l=linux-usb=152544392822763=2

for me this patch solves all issues, can someone else please confirm?
also, how do we get this into kernel (as the testpatch is already in "limbo" 
for over a year)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-03-07 Thread Anthony Wong
** Changed in: hwe-next
   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/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-02-18 Thread Kai-Heng Feng
** Changed in: linux (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: linux (Ubuntu Bionic)
   Status: Confirmed => 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/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-02-17 Thread Deltik
Kai-Heng,

Actually, I saw that the fix just landed in bionic-proposed in version
4.15.0-46.49 on 2019-02-15, so bionic-updates and bionic-security don't
have the fix yet as of today.

Changelog for anyone wanting to know:
https://launchpad.net/ubuntu/+source/linux/+changelog

Relevant snippet:

  * Bionic update: upstream stable patchset 2019-01-17 (LP: #1812229)
- xhci: Fix perceived dead host due to runtime suspend race with event 
handler

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-01-24 Thread Kai-Heng Feng
@Steve,

Docking station is a whole different matter. Please file a new bug.

@Shirish
What's the kernel version? Please try latest -generic kernel, I think it's 
fixed there.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2019-01-11 Thread Shirish S
Kai-Heng,

Am able to see "xHCI host controller not responding, assume dead" pretty
much regularly during suspend/resume.

I verified that the kernel am using has patches mentioned in
https://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=53395
and am using amd platform.

I also have iommu disabled.  Impact being system hangs for a while,
watchdog kicks in and reboot.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-11-14 Thread Steve Chadsey
I've been getting similar disconnects on a Dell Latitude 5580 that is
connected to a Dell D6000 docking station via USB-C.  I'm also using
DisplayLink driver version 4.4.24
(https://www.displaylink.com/downloads/ubuntu) in order to connect to
two external displays.  With Ubuntu 17.10 I was not seeing any
disconnects.  With 18.04 I see at least one per day where the external
monitors go dark, and these messages in syslog:

Nov 13 10:26:39 steveclx5580 kernel: usb 3-1: USB disconnect, device number 2
Nov 13 10:26:39 steveclx5580 kernel: usb 3-1.2: USB disconnect, device number 3
Nov 13 10:26:39 steveclx5580 kernel: usb 3-1.2.2: USB disconnect, device number 
5
Nov 13 10:26:39 steveclx5580 kernel: xhci_hcd :3d:00.0: xHCI host 
controller not responding, assume dead
Nov 13 10:26:39 steveclx5580 kernel: xhci_hcd :3d:00.0: HC died; cleaning up
Nov 13 10:26:39 steveclx5580 kernel: usb 4-1: USB disconnect, device number 2
Nov 13 10:26:39 steveclx5580 kernel: usb 4-1.1: USB disconnect, device number 3
Nov 13 10:26:39 steveclx5580 kernel: cdc_ncm 4-1.1:1.5 enx9cebe8551508: 
unregister 'cdc_ncm' usb-:3d:00.0-1.1, CDC NCM
Nov 13 10:26:39 steveclx5580 NetworkManager[1089]:   [1542122799.4322] 
device (enx9cebe8551508): state change: unavailable ->
 unmanaged (reason 'removed', sys-iface-state: 'removed')

This morning I tried the linux-oem package based on comments in this bug 
report.  
$ uname -a
Linux steveclx5580 4.15.0-1024-oem #29-Ubuntu SMP Tue Oct 16 08:14:23 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux

I am still seeing disconnects, and they are more frequent than before:

Nov 14 10:43:46 steveclx5580 kernel: usb 3-1: USB disconnect, device number 2
Nov 14 10:43:46 steveclx5580 kernel: usb 3-1.2: USB disconnect, device number 3
Nov 14 10:43:46 steveclx5580 kernel: usb 3-1.2.2: USB disconnect, device number 
5
Nov 14 10:43:46 steveclx5580 kernel: xhci_hcd :3d:00.0: xHCI host 
controller not responding, assume dead
Nov 14 10:43:46 steveclx5580 kernel: xhci_hcd :3d:00.0: HC died; cleaning up
Nov 14 10:43:46 steveclx5580 kernel: usb 4-1: USB disconnect, device number 2
Nov 14 10:43:46 steveclx5580 kernel: usb 4-1.1: USB disconnect, device number 3
Nov 14 10:43:46 steveclx5580 kernel: cdc_ncm 4-1.1:1.5 enx9cebe8551508: 
unregister 'cdc_ncm' usb-:3d:00.0-1.1, CDC NCM
Nov 14 10:43:46 steveclx5580 upowerd[2272]: unhandled action 'unbind' on 
/sys/devices/pci:00/:00:1c.4/:05:00.0/:06:
02.0/:3d:00.0/usb4/4-1/4-1.1/4-1.1:1.1
Nov 14 10:43:46 steveclx5580 upowerd[2272]: unhandled action 'unbind' on 
/sys/devices/pci:00/:00:1c.4/:05:00.0/:06:
02.0/:3d:00.0/usb4/4-1/4-1.1/4-1.1:1.0
Nov 14 10:43:46 steveclx5580 dhclient[3858]: receive_packet failed on 
enx9cebe8551508: Network is down

I do regularly suspend/resume this laptop, but the latest disconnects
have happened without a prior resume.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-08-05 Thread Kai-Heng Feng
The kernel team doesn't like the big pull I've made, so I made a
backported version of the patch which is now in upstream linux stable.

So when the next Bionic kernel update pulls patches from linux-stable,
the fix will be there.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-08-05 Thread Deltik
Kai-Heng,

Your fix works in linux-oem for Bionic!  We're pretty happy about it in
Ask Ubuntu: https://askubuntu.com/a/1059424/18979

Can you backport the fix to the standard Ubuntu Bionic kernel?

Thanks!

** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

** Changed in: linux (Ubuntu Bionic)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-25 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-oem - 4.15.0-1012.15

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

  * linux-oem: 4.15.0-1012.15 -proposed tracker (LP: #1782181)

  * Miscellaneous Ubuntu changes
- Rebase to 4.15.0-29.31

  [ Ubuntu: 4.15.0-29.31 ]

  * linux: 4.15.0-29.31 -proposed tracker (LP: #1782173)
  * [SRU Bionic][Cosmic] kernel panic in ipmi_ssif at msg_done_handler
(LP: #116)
- ipmi_ssif: Fix kernel panic at msg_done_handler
  * Update to ocxl driver for 18.04.1 (LP: #1775786)
- misc: ocxl: use put_device() instead of device_unregister()
- powerpc: Add TIDR CPU feature for POWER9
- powerpc: Use TIDR CPU feature to control TIDR allocation
- powerpc: use task_pid_nr() for TID allocation
- ocxl: Rename pnv_ocxl_spa_remove_pe to clarify it's action
- ocxl: Expose the thread_id needed for wait on POWER9
- ocxl: Add an IOCTL so userspace knows what OCXL features are available
- ocxl: Document new OCXL IOCTLs
- ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait()
  * Critical upstream bugfix missing in Ubuntu 18.04 - frequent Xorg crash after
suspend (LP: #1776887)
- ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL
  * Hard LOCKUP observed on stressing Ubuntu 18 04 (LP: #1777194)
- powerpc: use NMI IPI for smp_send_stop
- powerpc: Fix smp_send_stop NMI IPI handling
  * IPL: ppc64_cpu --frequency hang with INFO: rcu_sched detected stalls on
CPUs/tasks on w34 and wsbmc016 with 920.1714.20170330n (LP: #1773964)
- rtc: opal: Fix OPAL RTC driver OPAL_BUSY loops
  * [Regression] EXT4-fs error (device sda2): ext4_validate_block_bitmap:383:
comm stress-ng: bg 4705: bad block bitmap checksum (LP: #1781709)
- SAUCE: Revert "UBUNTU: SAUCE: ext4: fix ext4_validate_inode_bitmap: comm
  stress-ng: Corrupt inode bitmap"
- SAUCE: ext4: check for allocation block validity with block group locked

 -- Timo Aaltonen   Wed, 18 Jul 2018
15:56:13 +0300

** Changed in: linux-oem (Ubuntu)
   Status: Confirmed => 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/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-22 Thread Claudius Thomas
Verified this on a Thinkpad X230 with lastest Ubuntu 18.04/Linux Mint 19 kernel 
and Archlinux (4.17.8-1-ARCH).
For me, however, the symtoms are a bit different:

After boot and after device being removed, devices are not recognized
anymore wehn plugged in.

"xhci_hcd :00:14.0: HC died; cleaning up" is in the logs.

sudo bash -c 'cd /sys/bus/pci/drivers/xhci_hcd; for d in :??:??.? ; do echo 
-n "$d" > unbind; echo -n "$d" > bind; done'
fixes this - but only once.

Kernel parameters 'pci=nomsi iommu=soft' do not fix this (iommu=soft is default 
anyways).
However, "usbcore.autosuspend=-1" does seem to fix the issue.

Haven't had the chance to try out the new kernel so far...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-21 Thread Claudius Thomas
** Tags added: kernel-bug-exists-upstream

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-21 Thread Claudius Thomas
** Also affects: linux (Arch Linux)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-20 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-oem - 4.15.0-1012.15

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

  * linux-oem: 4.15.0-1012.15 -proposed tracker (LP: #1782181)

  * Miscellaneous Ubuntu changes
- Rebase to 4.15.0-29.31

  [ Ubuntu: 4.15.0-29.31 ]

  * linux: 4.15.0-29.31 -proposed tracker (LP: #1782173)
  * [SRU Bionic][Cosmic] kernel panic in ipmi_ssif at msg_done_handler
(LP: #116)
- ipmi_ssif: Fix kernel panic at msg_done_handler
  * Update to ocxl driver for 18.04.1 (LP: #1775786)
- misc: ocxl: use put_device() instead of device_unregister()
- powerpc: Add TIDR CPU feature for POWER9
- powerpc: Use TIDR CPU feature to control TIDR allocation
- powerpc: use task_pid_nr() for TID allocation
- ocxl: Rename pnv_ocxl_spa_remove_pe to clarify it's action
- ocxl: Expose the thread_id needed for wait on POWER9
- ocxl: Add an IOCTL so userspace knows what OCXL features are available
- ocxl: Document new OCXL IOCTLs
- ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait()
  * Critical upstream bugfix missing in Ubuntu 18.04 - frequent Xorg crash after
suspend (LP: #1776887)
- ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL
  * Hard LOCKUP observed on stressing Ubuntu 18 04 (LP: #1777194)
- powerpc: use NMI IPI for smp_send_stop
- powerpc: Fix smp_send_stop NMI IPI handling
  * IPL: ppc64_cpu --frequency hang with INFO: rcu_sched detected stalls on
CPUs/tasks on w34 and wsbmc016 with 920.1714.20170330n (LP: #1773964)
- rtc: opal: Fix OPAL RTC driver OPAL_BUSY loops
  * [Regression] EXT4-fs error (device sda2): ext4_validate_block_bitmap:383:
comm stress-ng: bg 4705: bad block bitmap checksum (LP: #1781709)
- SAUCE: Revert "UBUNTU: SAUCE: ext4: fix ext4_validate_inode_bitmap: comm
  stress-ng: Corrupt inode bitmap"
- SAUCE: ext4: check for allocation block validity with block group locked

 -- Timo Aaltonen   Wed, 18 Jul 2018
15:56:13 +0300

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-20 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-oem - 4.15.0-1012.15

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

  * linux-oem: 4.15.0-1012.15 -proposed tracker (LP: #1782181)

  * Miscellaneous Ubuntu changes
- Rebase to 4.15.0-29.31

  [ Ubuntu: 4.15.0-29.31 ]

  * linux: 4.15.0-29.31 -proposed tracker (LP: #1782173)
  * [SRU Bionic][Cosmic] kernel panic in ipmi_ssif at msg_done_handler
(LP: #116)
- ipmi_ssif: Fix kernel panic at msg_done_handler
  * Update to ocxl driver for 18.04.1 (LP: #1775786)
- misc: ocxl: use put_device() instead of device_unregister()
- powerpc: Add TIDR CPU feature for POWER9
- powerpc: Use TIDR CPU feature to control TIDR allocation
- powerpc: use task_pid_nr() for TID allocation
- ocxl: Rename pnv_ocxl_spa_remove_pe to clarify it's action
- ocxl: Expose the thread_id needed for wait on POWER9
- ocxl: Add an IOCTL so userspace knows what OCXL features are available
- ocxl: Document new OCXL IOCTLs
- ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait()
  * Critical upstream bugfix missing in Ubuntu 18.04 - frequent Xorg crash after
suspend (LP: #1776887)
- ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL
  * Hard LOCKUP observed on stressing Ubuntu 18 04 (LP: #1777194)
- powerpc: use NMI IPI for smp_send_stop
- powerpc: Fix smp_send_stop NMI IPI handling
  * IPL: ppc64_cpu --frequency hang with INFO: rcu_sched detected stalls on
CPUs/tasks on w34 and wsbmc016 with 920.1714.20170330n (LP: #1773964)
- rtc: opal: Fix OPAL RTC driver OPAL_BUSY loops
  * [Regression] EXT4-fs error (device sda2): ext4_validate_block_bitmap:383:
comm stress-ng: bg 4705: bad block bitmap checksum (LP: #1781709)
- SAUCE: Revert "UBUNTU: SAUCE: ext4: fix ext4_validate_inode_bitmap: comm
  stress-ng: Corrupt inode bitmap"
- SAUCE: ext4: check for allocation block validity with block group locked

 -- Timo Aaltonen   Wed, 18 Jul 2018
15:56:13 +0300

** Changed in: linux-oem (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

** Changed in: linux-oem (Ubuntu Bionic)
   Status: Fix Committed => 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/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-16 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: linux-oem (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-05 Thread Timo Aaltonen
** Changed in: linux-oem (Ubuntu Bionic)
   Status: New => 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/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-05 Thread Kai-Heng Feng
** Tags added: originate-from-1776806 somerville

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-03 Thread Kai-Heng Feng
** Also affects: linux-oem (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-03 Thread Kai-Heng Feng
** Description changed:

+ ===SRU Justification===
+ [Impact]
+ xHC stops to work after some time. This happens when the xHC gets
+ runtime resumed/suspended constantly.
+ 
+ [Test]
+ User reports this backport fixes the issue.
+ 
+ [Fix]
+ In addition to check EINT, also check ports' status.
+ 
+ [Regression Potential]
+ Low. It fixes a known bug and it's in -stable.
+ 
+ ===Original Bug Report===
+ 
  Now and then, my xhci bus will hang, resulting in these kinds of
  messages in dmesg:
  
  [252220.002102] xhci_hcd :00:14.0: xHC is not running.
  [252220.037491] xhci_hcd :00:14.0: xHCI host controller not responding, 
assume dead
  [252220.037500] xhci_hcd :00:14.0: HC died; cleaning up
  [252220.133794] usb 1-2: USB disconnect, device number 2
  [252220.135042] usb 1-7: USB disconnect, device number 3
  [252220.137455] usb 1-8: USB disconnect, device number 4
  [252220.243317] usb 1-9: USB disconnect, device number 5
  
  Usually, I can fix this bij resetting the bus by calling a script reset-
  xhci:
  
  for xhci in /sys/bus/pci/drivers/?hci_hcd ; do
-   cd $xhci
-   echo Resetting devices from $xhci...
-   for i in :??:??.? ; do
- echo -n "$i" > unbind
- echo -n "$i" > bind
-   done
+   cd $xhci
+   echo Resetting devices from $xhci...
+   for i in :??:??.? ; do
+ echo -n "$i" > unbind
+ echo -n "$i" > bind
+   done
  done
  
  But doing this today resulted in a kernel bug:
  
  [252243.401814] xhci_hcd :00:14.0: remove, state 4
  [252243.401887] usb usb2: USB disconnect, device number 1
  [252243.470365] xhci_hcd :00:14.0: USB bus 2 deregistered
  [252243.470378] xhci_hcd :00:14.0: remove, state 4
  [252243.470383] usb usb1: USB disconnect, device number 1
  [252243.470831] xhci_hcd :00:14.0: Host halt failed, -19
  [252243.470837] xhci_hcd :00:14.0: Host not accessible, reset failed.
  [252243.475918] xhci_hcd :00:14.0: USB bus 1 deregistered
  [252243.475938] [ cut here ]
  [252243.475939] xhci_hcd :00:14.0: disabling already-disabled device
  [252243.475951] WARNING: CPU: 2 PID: 1787 at 
/build/linux-bdpCf2/linux-4.15.0/drivers/pci/pci.c:1642 
pci_disable_device+0x9c/0xc0
  [252243.475951] Modules linked in: cpuid snd_seq_dummy usb_storage 
hid_generic hidp ip6t_REJECT nf_reject_ipv6 ip6table_nat nf_nat_ipv6 
ip6table_mangle xt_hashlimit ip6table_raw nf_conntrack_ipv6 nf_defrag_ipv6 
nf_log_ipv6 xt_recent xt_comment ipt_REJECT nf_reject_ipv4 xt_mark 
iptable_mangle xt_tcpudp xt_CT iptable_raw xt_multiport xt_NFLOG nfnetlink_log 
nf_log_ipv4 nf_log_common xt_LOG nf_conntrack_sane nf_conntrack_netlink 
nfnetlink nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip 
nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda 
nf_conntrack_tftp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_proto_gre 
nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc 
nf_conntrack_h323 nf_conntrack_ftp ts_kmp nf_conntrack_amanda ipt_MASQUERADE 
nf_nat_masquerade_ipv4
  [252243.475984]  xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 
nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype xt_conntrack nf_nat nf_conntrack 
br_netfilter aufs vhost_net vhost tap ccm rfcomm bridge stp llc devlink 
ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter msr cmac bnep 
binfmt_misc snd_hda_codec_hdmi nls_iso8859_1 arc4 snd_soc_skl 
snd_hda_codec_realtek snd_soc_skl_ipc snd_hda_ext_core snd_hda_codec_generic 
snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_soc_core snd_compress ac97_bus 
snd_pcm_dmaengine snd_hda_intel dell_laptop dell_smbios_smm dcdbas 
snd_hda_codec dell_smm_hwmon snd_hda_core snd_hwdep snd_pcm intel_rapl 
snd_seq_midi snd_seq_midi_event x86_pkg_temp_thermal intel_powerclamp coretemp 
snd_rawmidi kvm_intel kvm btusb irqbypass intel_cstate intel_rapl_perf snd_seq 
btrtl
  [252243.476023]  iwlmvm btbcm btintel mac80211 hid_multitouch uvcvideo joydev 
input_leds dell_smbios_wmi snd_seq_device dell_wmi bluetooth serio_raw 
snd_timer videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 dell_smbios 
videobuf2_core iwlwifi sparse_keymap ecdh_generic snd wmi_bmof 
dell_wmi_descriptor videodev cfg80211 media soundcore rtsx_pci_ms memstick 
shpchp mei_me mei processor_thermal_device intel_pch_thermal intel_soc_dts_iosf 
int3400_thermal acpi_thermal_rel dell_rbtn mac_hid acpi_pad int3403_thermal 
int340x_thermal_zone tpm_crb sch_fq_codel cuse parport_pc ppdev nfsd lp parport 
auth_rpcgss nfs_acl lockd grace sunrpc ip_tables x_tables autofs4 btrfs 
zstd_compress algif_skcipher af_alg dm_crypt raid10 raid456 async_raid6_recov 
async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1
  [252243.476067]  raid0 multipath linear dm_mirror dm_region_hash dm_log 
usbhid hid crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc i915 
rtsx_pci_sdmmc i2c_algo_bit drm_kms_helper e1000e syscopyarea sysfillrect 
sysimgblt fb_sys_fops ptp aesni_intel psmouse drm pps_core rtsx_pci aes_x86_64 
ahci 

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-02 Thread Bas Zoetekouw
I haven't encountered the bug since I've installed your new kernel.
However, I haven't used my computer very much over the weekend, but so
far, so good!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-07-02 Thread Kai-Heng Feng
Bas,

Do you still see the issue? I intend to backport the fixes to Bionic's
kernel if the fix works.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-29 Thread Bas Zoetekouw
Re #29:  I've been running the patched kernel for a day now, and so far
I haven't seen any xhci issues.  I'll give an update later this week.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-27 Thread Kai-Heng Feng
I don't see "xhci_hcd :00:14.0: xHCI host controller not responding,
assume dead" in the logs you attached, so it's quite possibly another
issue.

Please file a new bug for that, thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-27 Thread Szobonya Csaba
** Attachment added: "after.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+attachment/5157191/+files/after.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-27 Thread Szobonya Csaba
I reproduced the same(?) issue by passing by passing an usb controller
to kvm.(https://www.redhat.com/archives/vfio-
users/2018-February/msg00030.html) When I shut down the virtual machine
and try to start again it always fails. Tested your kernel and still the
same issue. Hope this helps.

** Attachment added: "before.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+attachment/5157190/+files/before.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-27 Thread Kai-Heng Feng
Please try this kernel, which has some back ported commits to solve the issue:
https://people.canonical.com/~khfeng/lp1763594/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-22 Thread Bas Zoetekouw
I just noticed that this 4.17 kernel is from Debian Experimental.  No
idea what this was installed on my system though...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-06-22 Thread Bas Zoetekouw
I just encountered this bug again in cosmic with kernel
4.17.0-041700rc1-generic.  Definitely not fixed in 4.17.

Note that with kernel 4.15, the xhci hang occurs too, but then I can
reset the bus without causing a kernel Oops.

I'll attach the Oops for 4.17

** Attachment added: "kernel oops"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+attachment/5155455/+files/oops.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-05-26 Thread Mark van Beek
Looking at the changelogs for the kernel, it seems someone has already
created a fix for this and submitted it for 4.17.0-rc6
(http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc6/CHANGES)

excerpt:
---
  ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions

Mathias Nyman (1):
  xhci: Fix USB3 NULL pointer dereference at logical disconnect.

Mathieu Malaterre (2):
---

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-05-09 Thread bp0
Maybe related:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413440.

When I use the workaround described in comment 29 in bug 1413440
(booting with GRUB options 'pci=nomsi iommu=soft') then XHCI doesn't
hang, and when I run the reset script described in this bug report, it
doesn't cause a kernel bug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-27 Thread bp0
Also maybe related as I am running TLP: https://www.spinics.net/lists
/linux-usb/msg167941.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-24 Thread Bas Zoetekouw
This seems similar indeed, although I don't have any thunderbolt
hardware.  I'll try running a kernel with CONFIG_USB_XHCI_DBGCAP=n to
see if that solves the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-24 Thread Maximilian Federle via ubuntu-bugs
Maybe related: https://bugzilla.redhat.com/show_bug.cgi?id=1565131

** Bug watch added: Red Hat Bugzilla #1565131
   https://bugzilla.redhat.com/show_bug.cgi?id=1565131

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-22 Thread Kai-Heng Feng
Does this happen in previous kernel versions?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-22 Thread bp0
So I installed the latest upstream kernel (4.17-rc1) and the bug
described above still occurs. It's frustrating because it means my
bluetooth mouse stops working after about 5 minutes, and I can't get it
to work again without rebooting. Code copied and pasted below


[  721.603218] xhci_hcd :00:14.0: xHC is not running.
[  750.046445] xhci_hcd :00:14.0: xHC is not running.
[  759.047364] xhci_hcd :00:14.0: xHC is not running.
[  779.310499] xhci_hcd :00:14.0: xHC is not running.
[  795.342998] xhci_hcd :00:14.0: xHC is not running.
[  801.529731] xhci_hcd :00:14.0: xHC is not running.
[  805.647450] xhci_hcd :00:14.0: xHC is not running.
[  812.578673] xhci_hcd :00:14.0: xHC is not running.
[  825.775154] xhci_hcd :00:14.0: xHC is not running.
[  865.768631] xhci_hcd :00:14.0: xHC is not running.
[  865.773773] xhci_hcd :00:14.0: xHCI host controller not responding, 
assume dead
[  865.773790] xhci_hcd :00:14.0: HC died; cleaning up
[  865.892098] usb 1-4: USB disconnect, device number 2
[  866.006922] usb 1-6: USB disconnect, device number 3
[  866.010148] usb 1-8: USB disconnect, device number 4
[  957.285300] xhci_hcd :00:14.0: remove, state 4
[  957.285314] usb usb2: USB disconnect, device number 1
[  957.286028] xhci_hcd :00:14.0: USB bus 2 deregistered
[  957.286045] xhci_hcd :00:14.0: remove, state 4
[  957.286058] usb usb1: USB disconnect, device number 1
[  957.287117] BUG: unable to handle kernel NULL pointer dereference at 
0034
[  957.287132] PGD 0 P4D 0 
[  957.287145] Oops:  [#1] SMP PTI
[  957.287151] Modules linked in: btrfs zstd_compress xor raid6_pq ufs qnx4 
hfsplus hfs minix ntfs msdos jfs xfs libcrc32c hidp thunderbolt rfcomm ccm cmac 
bnep uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl 
btbcm videobuf2_common btintel videodev bluetooth media ecdh_generic msr joydev 
hid_sensor_als hid_sensor_accel_3d hid_sensor_trigger 
industrialio_triggered_buffer kfifo_buf hid_sensor_iio_common industrialio 
hid_sensor_custom snd_hda_codec_hdmi snd_hda_codec_realtek 
snd_hda_codec_generic nls_iso8859_1 wacom usbhid hid_sensor_hub hid_multitouch 
hid_generic 8250_dw arc4 wmi_bmof intel_wmi_thunderbolt snd_hda_intel 
intel_rapl snd_hda_codec x86_pkg_temp_thermal snd_hda_core intel_powerclamp 
snd_hwdep coretemp snd_pcm snd_seq_midi kvm irqbypass snd_seq_midi_event 
crct10dif_pclmul
[  957.287291]  iwlmvm crc32_pclmul ghash_clmulni_intel snd_rawmidi pcbc 
mac80211 snd_seq aesni_intel aes_x86_64 crypto_simd cryptd glue_helper 
intel_cstate intel_rapl_perf iwlwifi idma64 virt_dma snd_seq_device snd_timer 
input_leds cfg80211 serio_raw ucsi_acpi snd typec_ucsi mei_me intel_lpss_pci 
processor_thermal_device shpchp mei intel_lpss intel_pch_thermal 
intel_soc_dts_iosf typec soundcore ideapad_laptop sparse_keymap int3403_thermal 
int340x_thermal_zone wmi int3400_thermal acpi_pad mac_hid acpi_thermal_rel 
sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 i915 
i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm 
i2c_hid hid pinctrl_sunrisepoint pinctrl_intel video
[  957.287418] CPU: 1 PID: 17454 Comm: sh Not tainted 4.17.0-041700rc1-generic 
#201804152230
[  957.287423] Hardware name: LENOVO 80X7/LNVNB161216, BIOS 4MCN28WW(V2.00) 
10/19/2017
[  957.287436] RIP: 0010:tty_unregister_driver+0xd/0x70
[  957.287442] RSP: 0018:b5044418fc38 EFLAGS: 00010246
[  957.287449] RAX:  RBX:  RCX: 
[  957.287455] RDX: 95005728 RSI: 9500f79587b8 RDI: 
[  957.287461] RBP: b5044418fc40 R08: 9500f7d22810 R09: 
[  957.287467] R10: daed8ab53400 R11:  R12: 9500f7c4a230
[  957.287473] R13: 9500f7c4a27c R14: 9500f7c4a398 R15: 0060
[  957.287481] FS:  7f66379a0540() GS:950101c4() 
knlGS:
[  957.287488] CS:  0010 DS:  ES:  CR0: 80050033
[  957.287495] CR2: 0034 CR3: 0002b7c20004 CR4: 003606e0
[  957.287501] Call Trace:
[  957.287518]  xhci_dbc_tty_unregister_driver+0x15/0x30
[  957.287529]  xhci_dbc_exit+0x2e/0x50
[  957.287538]  xhci_stop+0x5b/0x1d0
[  957.287550]  usb_remove_hcd+0x105/0x230
[  957.287560]  usb_hcd_pci_remove+0x74/0x130
[  957.287568]  xhci_pci_remove+0x6b/0x70
[  957.287578]  pci_device_remove+0x3e/0xb0
[  957.287588]  device_release_driver_internal+0x15b/0x220
[  957.287596]  device_release_driver+0x12/0x20
[  957.287606]  unbind_store+0x87/0x150
[  957.287616]  drv_attr_store+0x27/0x40
[  957.287625]  sysfs_kf_write+0x3c/0x50
[  957.287632]  kernfs_fop_write+0x125/0x1a0
[  957.287641]  __vfs_write+0x3a/0x170
[  957.287653]  ? common_file_perm+0x4d/0x140
[  957.287662]  ? __alloc_fd+0x46/0x170
[  957.287671]  ? apparmor_file_permission+0x1a/0x20
[  957.287686]  ? security_file_permission+0x2f/0xb0
[  957.287696]  ? _cond_resched+0x19/0x40
[  

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-22 Thread bp0
This is above my competence level in Linux, but I can confirm this
problem in:

[code]
$ uname -a
Linux 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 x86_64 
x86_64 x86_64 GNU/Linux
[/code]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-16 Thread Joseph Salisbury
Did this issue start happening after an update/upgrade?  Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.16 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc1/


** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Tags added: kernel-da-key needs-bisect

** Also affects: linux (Ubuntu Bionic)
   Importance: Medium
   Status: Confirmed

** Changed in: linux (Ubuntu Bionic)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763594

Title:
  xhci hangs; reset results in NULL pointer dereference

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1763594] Re: xhci hangs; reset results in NULL pointer dereference

2018-04-13 Thread Bas Zoetekouw
apport information

** Tags added: apport-collected apport-hook-error

** Description changed:

  Now and then, my xhci bus will hang, resulting in these kinds of
  messages in dmesg:
  
  [252220.002102] xhci_hcd :00:14.0: xHC is not running.
  [252220.037491] xhci_hcd :00:14.0: xHCI host controller not responding, 
assume dead
  [252220.037500] xhci_hcd :00:14.0: HC died; cleaning up
  [252220.133794] usb 1-2: USB disconnect, device number 2
  [252220.135042] usb 1-7: USB disconnect, device number 3
  [252220.137455] usb 1-8: USB disconnect, device number 4
  [252220.243317] usb 1-9: USB disconnect, device number 5
  
  Usually, I can fix this bij resetting the bus by calling a script reset-
  xhci:
  
  for xhci in /sys/bus/pci/drivers/?hci_hcd ; do
cd $xhci
echo Resetting devices from $xhci...
for i in :??:??.? ; do
  echo -n "$i" > unbind
  echo -n "$i" > bind
done
  done
  
  But doing this today resulted in a kernel bug:
  
  [252243.401814] xhci_hcd :00:14.0: remove, state 4
  [252243.401887] usb usb2: USB disconnect, device number 1
  [252243.470365] xhci_hcd :00:14.0: USB bus 2 deregistered
  [252243.470378] xhci_hcd :00:14.0: remove, state 4
  [252243.470383] usb usb1: USB disconnect, device number 1
  [252243.470831] xhci_hcd :00:14.0: Host halt failed, -19
  [252243.470837] xhci_hcd :00:14.0: Host not accessible, reset failed.
  [252243.475918] xhci_hcd :00:14.0: USB bus 1 deregistered
  [252243.475938] [ cut here ]
  [252243.475939] xhci_hcd :00:14.0: disabling already-disabled device
  [252243.475951] WARNING: CPU: 2 PID: 1787 at 
/build/linux-bdpCf2/linux-4.15.0/drivers/pci/pci.c:1642 
pci_disable_device+0x9c/0xc0
  [252243.475951] Modules linked in: cpuid snd_seq_dummy usb_storage 
hid_generic hidp ip6t_REJECT nf_reject_ipv6 ip6table_nat nf_nat_ipv6 
ip6table_mangle xt_hashlimit ip6table_raw nf_conntrack_ipv6 nf_defrag_ipv6 
nf_log_ipv6 xt_recent xt_comment ipt_REJECT nf_reject_ipv4 xt_mark 
iptable_mangle xt_tcpudp xt_CT iptable_raw xt_multiport xt_NFLOG nfnetlink_log 
nf_log_ipv4 nf_log_common xt_LOG nf_conntrack_sane nf_conntrack_netlink 
nfnetlink nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip 
nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda 
nf_conntrack_tftp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_proto_gre 
nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc 
nf_conntrack_h323 nf_conntrack_ftp ts_kmp nf_conntrack_amanda ipt_MASQUERADE 
nf_nat_masquerade_ipv4
  [252243.475984]  xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 
nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype xt_conntrack nf_nat nf_conntrack 
br_netfilter aufs vhost_net vhost tap ccm rfcomm bridge stp llc devlink 
ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter msr cmac bnep 
binfmt_misc snd_hda_codec_hdmi nls_iso8859_1 arc4 snd_soc_skl 
snd_hda_codec_realtek snd_soc_skl_ipc snd_hda_ext_core snd_hda_codec_generic 
snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_soc_core snd_compress ac97_bus 
snd_pcm_dmaengine snd_hda_intel dell_laptop dell_smbios_smm dcdbas 
snd_hda_codec dell_smm_hwmon snd_hda_core snd_hwdep snd_pcm intel_rapl 
snd_seq_midi snd_seq_midi_event x86_pkg_temp_thermal intel_powerclamp coretemp 
snd_rawmidi kvm_intel kvm btusb irqbypass intel_cstate intel_rapl_perf snd_seq 
btrtl
  [252243.476023]  iwlmvm btbcm btintel mac80211 hid_multitouch uvcvideo joydev 
input_leds dell_smbios_wmi snd_seq_device dell_wmi bluetooth serio_raw 
snd_timer videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 dell_smbios 
videobuf2_core iwlwifi sparse_keymap ecdh_generic snd wmi_bmof 
dell_wmi_descriptor videodev cfg80211 media soundcore rtsx_pci_ms memstick 
shpchp mei_me mei processor_thermal_device intel_pch_thermal intel_soc_dts_iosf 
int3400_thermal acpi_thermal_rel dell_rbtn mac_hid acpi_pad int3403_thermal 
int340x_thermal_zone tpm_crb sch_fq_codel cuse parport_pc ppdev nfsd lp parport 
auth_rpcgss nfs_acl lockd grace sunrpc ip_tables x_tables autofs4 btrfs 
zstd_compress algif_skcipher af_alg dm_crypt raid10 raid456 async_raid6_recov 
async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1
  [252243.476067]  raid0 multipath linear dm_mirror dm_region_hash dm_log 
usbhid hid crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc i915 
rtsx_pci_sdmmc i2c_algo_bit drm_kms_helper e1000e syscopyarea sysfillrect 
sysimgblt fb_sys_fops ptp aesni_intel psmouse drm pps_core rtsx_pci aes_x86_64 
ahci crypto_simd glue_helper libahci wmi cryptd video
  [252243.476089] CPU: 2 PID: 1787 Comm: reset-xhci Tainted: G U  W
4.15.0-13-generic #14-Ubuntu
  [252243.476090] Hardware name: Dell Inc. Latitude E7470/0T6HHJ, BIOS 1.18.5 
12/11/2017
  [252243.476092] RIP: 0010:pci_disable_device+0x9c/0xc0
  [252243.476092] RSP: 0018:a61206edfd40 EFLAGS: 00010286
  [252243.476094] RAX:  RBX: 9356fcc25000 RCX: 
a9862888