Public bug reported:
When a NVMe drive is assigned/hotplugged to a Linux LPAR then
a bug is hit in lib/list_debug.c. And the device is not accessible, there is no
/dev/ file
and lspci does not report it also.
[ 1681.564462] list_add double add: new=eed0f808,
prev=eed0f808, next=4070a300.
[ 1681.564489] [ cut here ]
[ 1681.564490] kernel BUG at lib/list_debug.c:31!
[ 1681.564504] monitor event: 0040 ilc:2 [#1] SMP
[ 1681.564507] Modules linked in: ip6t_REJECT nf_reject_ipv6 ip6t_rpfilter
ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ebtable_broute ip6table_nat
ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat
iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6
nf_defrag_ipv4 libcrc32c ip_set nfnetlink ebtable_filter ebtables
ip6table_filter ip6_tables iptable_filter s390_trng ghash_s390 prng aes_s390
des_s390 libdes sha512_s390 vfio_ccw sha1_s390 vfio_mdev mdev chsc_sch
vfio_iommu_type1 eadm_sch vfio ip_tables dm_service_time nvme crc32_vx_s390
sha256_s390 sha_common nvme_core qeth_l2 zfcp qeth scsi_transport_fc qdio
ccwgroup dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua pkey zcrypt
[ 1681.564534] CPU: 6 PID: 139 Comm: kmcheck Not tainted 5.8.0-rc1+ #2
[ 1681.564535] Hardware name: IBM 8561 T01 701 (LPAR)
[ 1681.564536] Krnl PSW : 0704c0018000 3ffcadb8
(__list_add_valid+0x70/0xa8)
[ 1681.564544]R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0
RI:0 EA:3
[ 1681.564545] Krnl GPRS: 0040 0027 0058
0007
[ 1681.564546]3ffcadb4
03e0051a7ce0
[ 1681.564547]4070a300 eed0f808 eed0f808
4070a300
[ 1681.564548]f56a2000 40c2c788 3ffcadb4
03e0051a7bc8
[ 1681.564583] Krnl Code: 3ffcada8: c02000302b09larl
%r2,405d03ba
3ffcadae: c0e5ffdd30b1brasl
%r14,3fb70f10
#3ffcadb4: af00mc 0,0
>3ffcadb8: b9040054lgr %r5,%r4
3ffcadbc: c02000302aadlarl
%r2,405d0316
3ffcadc2: b9040041lgr %r4,%r1
3ffcadc6: c0e5ffdd30a5brasl
%r14,3fb70f10
3ffcadcc: af00mc 0,0
[ 1681.564592] Call Trace:
[ 1681.564594] [<3ffcadb8>] __list_add_valid+0x70/0xa8
[ 1681.564596] ([<3ffcadb4>] __list_add_valid+0x6c/0xa8)
[ 1681.564599] [<3faf2920>] zpci_create_device+0x60/0x1b0
[ 1681.564601] [<3faf704a>] zpci_event_availability+0x282/0x2f0
[ 1681.564605] [<40367848>] chsc_process_crw+0x2b8/0xa18
[ 1681.564607] [<4036f35c>] crw_collect_info+0x254/0x348
[ 1681.564610] [<3fb2a6ea>] kthread+0x14a/0x168
[ 1681.564613] [<403a55c0>] ret_from_fork+0x24/0x2c
[ 1681.564614] Last Breaking-Event-Address:
[ 1681.564618] [<3fb70f62>] printk+0x52/0x58
[ 1681.564620] ---[ end trace 7ea67c348aa67e14 ]---
uname:
Linux t83lp49.lnxne.boe 5.8.0-rc1+ #2 SMP Thu Jun 18 12:38:02 CEST 2020 s390x
s390x s390x GNU/Linux
How to reproduce:
1. Unassign a NVMe drive in HMC from your LPAR
2. Reassign it to your LPAR again
3. dmesg
This issue is fixed by the following upstream commit
that is also CCed to stable so might be coming in over the stable pulls
in parallel:
3047766bc6ec ("s390/pci: fix enabling a reserved PCI function")
** Affects: linux (Ubuntu)
Importance: Undecided
Assignee: Skipper Bug Screeners (skipper-screen-team)
Status: New
** Tags: architecture-s39064 bugnameltc-186335 severity-medium
targetmilestone-inin2004
** Tags added: architecture-s39064 bugnameltc-186335 severity-medium
targetmilestone-inin2004
** Changed in: ubuntu
Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)
** Package changed: ubuntu => linux (Ubuntu)
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1891437
Title:
[UBUNTU 20.04] zPCI: Enabling of a reserved PCI function regression
introduced by multi-function support
Status in linux package in Ubuntu:
New
Bug description:
When a NVMe drive is assigned/hotplugged to a Linux LPAR then
a bug is hit in lib/list_debug.c. And the device is not accessible, there is
no /dev/ file
and lspci does not report it also.
[ 1681.564462] list_add double add: new=eed0f808,
prev=eed0f808, next=4070a300.
[ 1681.564489] [ cut here ]
[ 1681.564490] kernel BUG at lib/list_debug.c:31!
[ 1681.564504] monitor event: 0040 ilc:2 [#1] SMP
[ 1681.564507] Modules