NVMe triggering kernel panic followed by "bad: scheduling from the idle thread!"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
On an NVMe system I'm using, Ubuntu 16.04.1 regularly seems to trigger off a kernel panic against somepart of the NVMe driver it looks like, after which the logs get filled with entries over and over again of:
"bad: scheduling from the idle thread!"
Here's the initial stack trace that seems to trigger off the bug:
Sep 22 15:51:46 ubuntu kernel: [ 97.478175] ------------[ cut here ]------------
Sep 22 15:51:46 ubuntu kernel: [ 97.478185] WARNING: CPU: 13 PID: 0 at /build/
Sep 22 15:51:46 ubuntu kernel: [ 97.478188] Trying to free IRQ 38 from IRQ context!
Sep 22 15:51:46 ubuntu kernel: [ 97.478191] Modules linked in: nls_iso8859_1 ipmi_ssif intel_rapl x86_pkg_
i_me sb_edac shpchp edac_core lpc_ich mei 8250_fintek ipmi_msghandler mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr autofs4 btrfs iscsi_tcp libiscsi_tcp libiscsi
scsi_transport_
l dca vxlan aesni_intel ip6_udp_tunnel udp_tunnel aes_x86_64 lrw gf128mul ptp glue_helper ahci ablk_helper pps_core cryptd nvme libahci mdio wmi fjes
Sep 22 15:51:46 ubuntu kernel: [ 97.478257] CPU: 13 PID: 0 Comm: swapper/13 Not tainted 4.4.0-31-generic #50-Ubuntu
Sep 22 15:51:46 ubuntu kernel: [ 97.478260] Hardware name: Oracle Corporation ORACLE SERVER X5-2/ASM,
Sep 22 15:51:46 ubuntu kernel: [ 97.478263] 0000000000000286 4fea3140a01056a3 ffff883f7f743b10 ffffffff813f1143
Sep 22 15:51:46 ubuntu kernel: [ 97.478267] ffff883f7f743b58 ffffffff81cb61f8 ffff883f7f743b48 ffffffff81081102
Sep 22 15:51:46 ubuntu kernel: [ 97.478271] 0000000000000026 ffff883f5b2ea700 0000000000000026 00000000ffffffff
Sep 22 15:51:46 ubuntu kernel: [ 97.478275] Call Trace:
Sep 22 15:51:46 ubuntu kernel: [ 97.478277] <IRQ> [<ffffffff813f1
Sep 22 15:51:46 ubuntu kernel: [ 97.478290] [<ffffffff81081
Sep 22 15:51:46 ubuntu kernel: [ 97.478294] [<ffffffff81081
Sep 22 15:51:46 ubuntu kernel: [ 97.478299] [<ffffffff81098
Sep 22 15:51:46 ubuntu kernel: [ 97.478302] [<ffffffff810db
Sep 22 15:51:46 ubuntu kernel: [ 97.478306] [<ffffffff810db
Sep 22 15:51:46 ubuntu kernel: [ 97.478314] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.478320] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.478325] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.478330] [<ffffffffc0071
Sep 22 15:51:46 ubuntu kernel: [ 97.478334] [<ffffffff8154f
Sep 22 15:51:46 ubuntu kernel: [ 97.478340] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.478344] [<ffffffff813f0
Sep 22 15:51:46 ubuntu kernel: [ 97.478348] [<ffffffff810bd
Sep 22 15:51:46 ubuntu kernel: [ 97.478354] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.478358] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.478363] [<ffffffff813ce
Sep 22 15:51:46 ubuntu kernel: [ 97.478367] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.478370] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.478375] [<ffffffff813cf
Sep 22 15:51:46 ubuntu kernel: [ 97.478379] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.478383] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.478389] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.478393] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.478397] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.478403] [<ffffffff81085
Sep 22 15:51:46 ubuntu kernel: [ 97.478407] [<ffffffff81085
Sep 22 15:51:46 ubuntu kernel: [ 97.478413] [<ffffffff81830
Sep 22 15:51:46 ubuntu kernel: [ 97.478417] [<ffffffff8182e
Sep 22 15:51:46 ubuntu kernel: [ 97.478419] <EOI> [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.478428] [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.478432] [<ffffffff810c3
Sep 22 15:51:46 ubuntu kernel: [ 97.478436] [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.478440] [<ffffffff810c4
Sep 22 15:51:46 ubuntu kernel: [ 97.478444] [<ffffffff81051
Sep 22 15:51:46 ubuntu kernel: [ 97.478448] ---[ end trace 4f4c67e52b4d19ac ]---
then
Sep 22 15:51:46 ubuntu kernel: [ 97.478463] BUG: scheduling while atomic: swapper/
Sep 22 15:51:46 ubuntu kernel: [ 97.551653] Modules linked in: nls_iso8859_1 ipmi_ssif intel_rapl x86_pkg_
Sep 22 15:51:46 ubuntu kernel: [ 97.551671] CPU: 13 PID: 0 Comm: swapper/13 Tainted: G W 4.4.0-31-generic #50-Ubuntu
Sep 22 15:51:46 ubuntu kernel: [ 97.551672] Hardware name: Oracle Corporation ORACLE SERVER X5-2/ASM,
Sep 22 15:51:46 ubuntu kernel: [ 97.551673] 0000000000000286 4fea3140a01056a3 ffff883f7f743a98 ffffffff813f1143
Sep 22 15:51:46 ubuntu kernel: [ 97.551674] ffff883f7f756d00 0000000000000000 ffff883f7f743aa8 ffffffff810a5e4b
Sep 22 15:51:46 ubuntu kernel: [ 97.551677] ffff883f7f743af8 ffffffff818296e6 ffff883f5b340400 ffff883f0000000d
Sep 22 15:51:46 ubuntu kernel: [ 97.551679] Call Trace:
Sep 22 15:51:46 ubuntu kernel: [ 97.551679] <IRQ> [<ffffffff813f1
Sep 22 15:51:46 ubuntu kernel: [ 97.551688] [<ffffffff810a5
Sep 22 15:51:46 ubuntu kernel: [ 97.551691] [<ffffffff81829
Sep 22 15:51:46 ubuntu kernel: [ 97.551693] [<ffffffff81829
Sep 22 15:51:46 ubuntu kernel: [ 97.551694] [<ffffffff8182c
Sep 22 15:51:46 ubuntu kernel: [ 97.551695] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.551697] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.551699] [<ffffffffc006e
Sep 22 15:51:46 ubuntu kernel: [ 97.551701] [<ffffffffc006f
Sep 22 15:51:46 ubuntu kernel: [ 97.551702] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.551704] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.551706] [<ffffffffc0071
Sep 22 15:51:46 ubuntu kernel: [ 97.551707] [<ffffffff8154f
Sep 22 15:51:46 ubuntu kernel: [ 97.551708] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.551710] [<ffffffff813f0
Sep 22 15:51:46 ubuntu kernel: [ 97.551711] [<ffffffff810bd
Sep 22 15:51:46 ubuntu kernel: [ 97.551712] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.551714] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.551715] [<ffffffff813ce
Sep 22 15:51:46 ubuntu kernel: [ 97.551717] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.551718] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.551719] [<ffffffff813cf
Sep 22 15:51:46 ubuntu kernel: [ 97.551720] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.551722] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.551723] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.551724] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.551726] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.551727] [<ffffffff81085
Sep 22 15:51:46 ubuntu kernel: [ 97.551729] [<ffffffff81085
Sep 22 15:51:46 ubuntu kernel: [ 97.551730] [<ffffffff81830
Sep 22 15:51:46 ubuntu kernel: [ 97.551731] [<ffffffff8182e
Sep 22 15:51:46 ubuntu kernel: [ 97.551732] <EOI> [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.551735] [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.551736] [<ffffffff810c3
Sep 22 15:51:46 ubuntu kernel: [ 97.551737] [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.551738] [<ffffffff810c4
Sep 22 15:51:46 ubuntu kernel: [ 97.551740] [<ffffffff81051
Sep 22 15:51:46 ubuntu kernel: [ 97.551741] bad: scheduling from the idle thread!
Sep 22 15:51:46 ubuntu kernel: [ 97.608224] CPU: 13 PID: 0 Comm: swapper/13 Tainted: G W 4.4.0-31-generic #50-Ubuntu
Sep 22 15:51:46 ubuntu kernel: [ 97.608225] Hardware name: Oracle Corporation ORACLE SERVER X5-2/ASM,
Sep 22 15:51:46 ubuntu kernel: [ 97.608226] 0000000000000286 4fea3140a01056a3 ffff883f7f743a68 ffffffff813f1143
Sep 22 15:51:46 ubuntu kernel: [ 97.608227] ffff883f7f756d00 0000000000000000 ffff883f7f743a80 ffffffff810b1fbc
Sep 22 15:51:46 ubuntu kernel: [ 97.608228] ffff883f7f756d00 ffff883f7f743aa8 ffffffff810aaf91 ffff883f7f756d00
Sep 22 15:51:46 ubuntu kernel: [ 97.608229] Call Trace:
Sep 22 15:51:46 ubuntu kernel: [ 97.608230] <IRQ> [<ffffffff813f1
Sep 22 15:51:46 ubuntu kernel: [ 97.608233] [<ffffffff810b1
Sep 22 15:51:46 ubuntu kernel: [ 97.608235] [<ffffffff810aa
Sep 22 15:51:46 ubuntu kernel: [ 97.608236] [<ffffffff81829
Sep 22 15:51:46 ubuntu kernel: [ 97.608238] [<ffffffff81829
Sep 22 15:51:46 ubuntu kernel: [ 97.608239] [<ffffffff8182c
Sep 22 15:51:46 ubuntu kernel: [ 97.608240] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.608242] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.608244] [<ffffffffc006e
Sep 22 15:51:46 ubuntu kernel: [ 97.608245] [<ffffffffc006f
Sep 22 15:51:46 ubuntu kernel: [ 97.608247] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.608250] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.608251] [<ffffffffc0071
Sep 22 15:51:46 ubuntu kernel: [ 97.608253] [<ffffffff8154f
Sep 22 15:51:46 ubuntu kernel: [ 97.608254] [<ffffffffc0072
Sep 22 15:51:46 ubuntu kernel: [ 97.608256] [<ffffffff813f0
Sep 22 15:51:46 ubuntu kernel: [ 97.608257] [<ffffffff810bd
Sep 22 15:51:46 ubuntu kernel: [ 97.608258] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.608259] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.608261] [<ffffffff813ce
Sep 22 15:51:46 ubuntu kernel: [ 97.608263] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.608264] [<ffffffff813cc
Sep 22 15:51:46 ubuntu kernel: [ 97.608266] [<ffffffff813cf
Sep 22 15:51:46 ubuntu kernel: [ 97.608267] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.608268] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.608270] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.608272] [<ffffffff813cb
Sep 22 15:51:46 ubuntu kernel: [ 97.608273] [<ffffffff810ec
Sep 22 15:51:46 ubuntu kernel: [ 97.608275] [<ffffffff81085
Sep 22 15:51:46 ubuntu kernel: [ 97.608276] [<ffffffff81085
Sep 22 15:51:46 ubuntu kernel: [ 97.608278] [<ffffffff81830
Sep 22 15:51:46 ubuntu kernel: [ 97.608279] [<ffffffff8182e
Sep 22 15:51:46 ubuntu kernel: [ 97.608280] <EOI> [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.608282] [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.608284] [<ffffffff810c3
Sep 22 15:51:46 ubuntu kernel: [ 97.608286] [<ffffffff816c3
Sep 22 15:51:46 ubuntu kernel: [ 97.608287] [<ffffffff810c4
Sep 22 15:51:46 ubuntu kernel: [ 97.608288] [<ffffffff81051
Sep 22 15:51:46 ubuntu kernel: [ 97.608591] nvme 0000:2b:00.0: Cancelling I/O 0 QID 0
It largely continues on from there. I'll attach a copy of a kern.log with the full details in it.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-31-generic x86_64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Sep 22 17:40 seq
crw-rw---- 1 root audio 116, 33 Sep 22 17:40 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Thu Sep 22 17:53:45 2016
HibernationDevice: RESUME=
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb:
Bus 002 Device 002: ID 8087:8002 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:800a Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Oracle Corporation ORACLE SERVER X5-2
PciMultimedia:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.157.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/13/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 30080100
dmi.board.
dmi.board.name: ASM,MOTHERBOARD,1U
dmi.board.vendor: Oracle Corporation
dmi.board.version: Rev 04
dmi.chassis.
dmi.chassis.type: 17
dmi.chassis.vendor: Oracle Corporation
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: ORACLE SERVER X5-2
dmi.sys.vendor: Oracle Corporation
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
gzip'd copy of the kern.log showing the error.