2018-05-22 10:26:33

by Abdul Haleem

[permalink] [raw]
Subject: [BUG][linux-next][qla2xxx][ppc] kernel panics when qla2xxx module unload

Greeting's

next-20180424 kernel panics when module load / unload test.

Machine Type: Power8 Power VM LPAR
kernel : 4.17.0-rc2-next-20180424
config: file attached
test: driver load/unload

trace logs:
-----------
qla2xxx [0106:a0:00.0]-00fb:1: QLogic QLE2562 - PCIe 2-port 8Gb FC Adapter.
qla2xxx [0106:a0:00.0]-00fc:1: ISP2532: PCIe (5.0GT/s x8) @ 0106:a0:00.0 hdma- host#=1 fw=8.03.00 (90d5).
qla2xxx [0106:a0:00.1]-001a: : MSI-X vector count: 32.
qla2xxx [0106:a0:00.1]-001d: : Found an ISP2532 irq 506 iobase 0x0000000049ffb486.
qla2xxx [0106:a0:00.1]-00c6:2: MSI-X: Failed to enable support with 32 vectors, using 16 vectors.
scsi host2: qla2xxx
qla2xxx [0106:a0:00.1]-00fb:2: QLogic QLE2562 - PCIe 2-port 8Gb FC Adapter.
qla2xxx [0106:a0:00.1]-00fc:2: ISP2532: PCIe (5.0GT/s x8) @ 0106:a0:00.1 hdma- host#=2 fw=8.03.00 (90d5).
qla2xxx [0106:a0:00.0]-500a:1: LOOP UP detected (8 Gbps).
qla2xxx [0106:a0:00.1]-500a:2: LOOP UP detected (8 Gbps).
qla2xxx [0106:a0:00.1]-00af:2: Performing ISP error recovery - ha=00000000add127c2.
qla2xxx [0106:a0:00.0]-00af:1: Performing ISP error recovery - ha=00000000d8ff2e8f.
Unable to handle kernel paging request for instruction fetch
Faulting instruction address: 0xd0000000036e1000
Oops: Kernel access of bad area, sig: 11 [#1]
LE SMP NR_CPUS=2048 NUMA pSeries
Dumping ftrace buffer:
(ftrace buffer empty)
Modules linked in: xt_CHECKSUM(E) ipt_MASQUERADE(E)
nf_nat_masquerade_ipv4(E) tun(E) kvm_pr(E) kvm(E) ipt_REJECT(E)
nf_reject_ipv4(E) ip6t_rpfilter(E) ip6t_REJECT(E) nf_reject_ipv6(E)
xt_conntrack(E) ip_set(E) nfnetlink(E) ebtable_broute(E) bridge(E)
stp(E) llc(E) ebtable_nat(E) ip6table_nat(E) nf_conntrack_ipv6(E)
nf_defrag_ipv6(E) nf_nat_ipv6(E) ip6table_security(E) ip6table_raw(E)
ip6table_mangle(E) iptable_nat(E) nf_conntrack_ipv4(E) nf_defrag_ipv4(E)
nf_nat_ipv4(E) nf_nat(E) nf_conntrack(E) libcrc32c(E)
iptable_security(E) iptable_raw(E) iptable_mangle(E) ebtable_filter(E)
ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E)
ip_tables(E) xts(E) vmx_crypto(E) pseries_rng(E) nfsd(E) auth_rpcgss(E)
nfs_acl(E) lockd(E) grace(E) sunrpc(E) sch_fq_codel(E) ext4(E)
mbcache(E) jbd2(E)
fscrypto(E) sr_mod(E) cdrom(E) sd_mod(E) nvme_fc(E) nvme_fabrics(E) ibmvscsi(E) nvme_core(E) scsi_transport_srp(E) ibmveth(E) scsi_transport_fc(E) tg3(E) [last unloaded: qla2xxx]
CPU: 10 PID: 318 Comm: kworker/10:1 Tainted: G E 4.17.0-rc2-next-20180424-autotest-autotest #1
Workqueue: events 0xd0000000036e0928
NIP: d0000000036e1000 LR: d0000000036e1000 CTR: c000000000140b80
REGS: c000000002d038f0 TRAP: 0400 Tainted: G E (4.17.0-rc2-next-20180424-autotest-autotest)
MSR: 800000004280b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE> CR: 24022222 XER: 20000000
CFAR: c0000000001a26c4 SOFTE: 0
GPR00: d0000000036e1000 c000000002d03b70 c00000000115db00 0000000000000000
GPR04: 0000000000000000 0000000000000001 0006de07c3ff2c7d 0000000000000000
GPR08: c00000000ec5a600 0000000000000000 0000000000000000 0000000000000000
GPR12: 0000000000002200 c00000000ec5a600 c000000000128dd8 c000000288590040
GPR16: 0000000000000000 c00000028fda7380 c00000000100dfd8 c00000028fda7070
GPR20: c00000028fda7020 0000000000000000 fffffffffffffef7 0000000000000402

GPR24: 0000000000000000 c000000280c39000 c000000002a7e020 0000000000000000
GPR28: d0000000036fcf90 c000000002a7e000 c000000280c347d8 c000000002a7e0c0
NIP [d0000000036e1000] 0xd0000000036e1000
LR [d0000000036e1000] 0xd0000000036e1000
Call Trace:
[c000000002d03b70] [d0000000036e1000] 0xd0000000036e1000 (unreliable)
[c000000002d03c80] [c0000000001205f4] process_one_work+0x234/0x4e0
[c000000002d03d20] [c00000000012093c] worker_thread+0x9c/0x5b0
[c000000002d03dc0] [c000000000128f28] kthread+0x158/0x1a0
[c000000002d03e30] [c00000000000b628] ret_from_kernel_thread+0x5c/0xb4
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
---[ end trace be06b67ced9f47f0 ]---

Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
(ftrace buffer empty)
WARNING: CPU: 10 PID: 318 at drivers/tty/vt/vt.c:3887 do_unblank_screen+0x1f0/0x280
Modules linked in: xt_CHECKSUM(E) ipt_MASQUERADE(E)
nf_nat_masquerade_ipv4(E) tun(E) kvm_pr(E) kvm(E) ipt_REJECT(E)
nf_reject_ipv4(E) ip6t_rpfilter(E) ip6t_REJECT(E) nf_reject_ipv6(E)
xt_conntrack(E) ip_set(E) nfnetlink(E) ebtable_broute(E) bridge(E)
stp(E) llc(E) ebtable_nat(E) ip6table_nat(E) nf_conntrack_ipv6(E)
nf_defrag_ipv6(E) nf_nat_ipv6(E) ip6table_security(E) ip6table_raw(E)
ip6table_mangle(E) iptable_nat(E) nf_conntrack_ipv4(E) nf_defrag_ipv4(E)
nf_nat_ipv4(E) nf_nat(E) nf_conntrack(E) libcrc32c(E)
iptable_security(E) iptable_raw(E) iptable_mangle(E) ebtable_filter(E)
ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E)
ip_tables(E) xts(E) vmx_crypto(E) pseries_rng(E) nfsd(E) auth_rpcgss(E)
nfs_acl(E) lockd(E) grace(E) sunrpc(E) sch_fq_codel(E) ext4(E)
mbcache(E) jbd2(E)
fscrypto(E) sr_mod(E) cdrom(E) sd_mod(E) nvme_fc(E) nvme_fabrics(E) ibmvscsi(E) nvme_core(E) scsi_transport_srp(E) ibmveth(E) scsi_transport_fc(E) tg3(E) [last unloaded: qla2xxx]
CPU: 10 PID: 318 Comm: kworker/10:1 Tainted: G D E 4.17.0-rc2-next-20180424-autotest-autotest #1
Workqueue: events 0xd0000000036e0928
NIP: c0000000005f12e0 LR: c0000000005f112c CTR: c00000000002c240
REGS: c000000002d033d0 TRAP: 0700 Tainted: G D E (4.17.0-rc2-next-20180424-autotest-autotest)
MSR: 8000000000021033 <SF,ME,IR,DR,RI,LE> CR: 28022222 XER: 20000009
CFAR: c0000000005f1140 SOFTE: 1
GPR00: c0000000005f1324 c000000002d03650 c00000000115db00 0000000000000000
GPR04: 0000000000000001 0000000000000002 4620646e61204f50 206574697257205d
GPR08: 000000028f000000 0000000000000000 0000000000000000 616e65203a656863
GPR12: c00000000002c240 c00000000ec5a600 c000000000128dd8 c000000288590040
GPR16: 0000000000000000 c00000028fda7380 c00000000100dfd8 c00000028fda7070
GPR20: c00000028fda7020 0000000000000000 fffffffffffffef7 0000000000000402
GPR24: 0000000000000000 c000000280c39000 c00000000100b380 c0000000013167b8
GPR28: d0000000036fcf90 0000000000000000 c000000001425240 0000000000000000
NIP [c0000000005f12e0] do_unblank_screen+0x1f0/0x280
LR [c0000000005f112c] do_unblank_screen+0x3c/0x280
Call Trace:
[c000000002d03650] [c0000000005f1324] do_unblank_screen+0x234/0x280 (unreliable)
[c000000002d036d0] [c000000000517890] bust_spinlocks+0x40/0x80
[c000000002d036f0] [c0000000000fc620] panic+0x1b4/0x314
[c000000002d03790] [c000000000023ee8] oops_end+0x1f8/0x200
[c000000002d03810] [c000000000064f90] bad_page_fault+0xe0/0x160
[c000000002d03880] [c00000000000a600] handle_page_fault+0x34/0x38
--- interrupt: 400 at 0xd0000000036e1000
LR = 0xd0000000036e1000
[c000000002d03c80] [c0000000001205f4] process_one_work+0x234/0x4e0
[c000000002d03d20] [c00000000012093c] worker_thread+0x9c/0x5b0
[c000000002d03dc0] [c000000000128f28] kthread+0x158/0x1a0
[c000000002d03e30] [c00000000000b628] ret_from_kernel_thread+0x5c/0xb4
Instruction dump:
4bb89165 60000000 38210080 e8010010 eba1ffe8 ebc1fff0 ebe1fff8 7c0803a6
4e800020 60000000 60000000 60000000 <0fe00000> 4bfffe60 60000000 60000000
---[ end trace be06b67ced9f47f1 ]---
Rebooting in 10 seconds..


--
Regard's

Abdul Haleem
IBM Linux Technology Centre



Attachments:
ZZ-VM-config (149.70 kB)