System panics in module_refcount+0x41 when fcoe interface is brought up/down many times
Issue
System panics with this message:
[ 1094.954019] general protection fault: 0000 [#1] SMP
[ 1094.954061] Modules linked in: tcp_lp nls_utf8 isofs bnep bluetooth rfkill fuse btrfs zlib_deflate raid6_pq xor vfat msdos fat ext4 mbcache jbd2 binfmt_misc ipt_MASQUERADE xt_CHECKSUM bnx2fc cnic uio fcoe 8021q libfcoe garp mrp libfc ip6t_rpfilter ip6t_REJECT ipt_REJECT xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw iptable_filter ip_tables sg iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd pcspkr
[ 1094.954488] sb_edac edac_core i2c_i801 mei_me lpc_ich mei mfd_core shpchp ipmi_si ipmi_msghandler mperf nfsd auth_rpcgss nfs_acl lockd sunrpc uinput xfs libcrc32c sd_mod sr_mod cdrom usb_storage mgag200 lpfc syscopyarea sysfillrect sysimgblt drm_kms_helper ttm ixgbe igb drm mdio ptp mpt2sas pps_core dca crc_t10dif i2c_algo_bit crct10dif_common scsi_transport_fc raid_class i2c_core scsi_transport_sas scsi_tgt dm_mirror dm_region_hash dm_log dm_mod
[ 1094.954730] CPU: 18 PID: 8555 Comm: kworker/18:4 Not tainted 3.10.0-123.el7.x86_64 #1
[ 1094.954766] Hardware name: ZTE E9000/XH20, BIOS CORE4.6.4_UBF3.7.47_SVN52328 05/08/2014
[ 1094.954811] Workqueue: fc_wq_5 fc_starget_delete [scsi_transport_fc]
[ 1094.954842] task: ffff880472aec440 ti: ffff88040d2a8000 task.ti: ffff88040d2a8000
[ 1094.954877] RIP: 0010:[<ffffffff810c5da1>] [<ffffffff810c5da1>] module_refcount+0x41/0xc0
[ 1094.956293] RSP: 0018:ffff88040d2a9d78 EFLAGS: 00010297
[ 1094.957654] RAX: ffff880277c00000 RBX: ffffffff819e2b60 RCX: f211b7849bc2e86a
[ 1094.959006] RDX: 0000000000000000 RSI: 0000000000000018 RDI: 0000000000000000
[ 1094.960444] RBP: ffff88040d2a9d98 R08: ffffffff819e2b60 R09: 0000000000000000
[ 1094.961839] R10: ffffea0009ccfa80 R11: ffffffff812baa88 R12: 0000000000000000
[ 1094.963263] R13: ffff8800302e3156 R14: ffff880474a33000 R15: ffff88047105c400
[ 1094.964604] FS: 0000000000000000(0000) GS:ffff88047fcc0000(0000) knlGS:0000000000000000
[ 1094.965963] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1094.967316] CR2: 00007f698096e740 CR3: 000000046c241000 CR4: 00000000000407e0
[ 1094.968664] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1094.970003] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 1094.971367] Stack:
[ 1094.972679] ffff8800302e3156 ffff88007862d800 ffff880474a33010 ffff880474a33000
[ 1094.974025] ffff88040d2a9db8 ffffffff813d2a69 ffff88007862d800 ffff88026d870060
[ 1094.975365] ffff88040d2a9e00 ffffffff813e1d28 0000000000000202 ffff880474a33000
[ 1094.976682] Call Trace:
[ 1094.977977] [<ffffffff813d2a69>] scsi_device_put+0x29/0x50
[ 1094.979288] [<ffffffff813e1d28>] scsi_remove_target+0x168/0x210
[ 1094.980642] [<ffffffffa0071212>] fc_starget_delete+0x22/0x30 [scsi_transport_fc]
[ 1094.981950] [<ffffffff8107e02b>] process_one_work+0x17b/0x460
[ 1094.983211] [<ffffffff8107edfb>] worker_thread+0x11b/0x400
[ 1094.984439] [<ffffffff8107ece0>] ? rescuer_thread+0x400/0x400
[ 1094.985651] [<ffffffff81085aef>] kthread+0xcf/0xe0
[ 1094.986837] [<ffffffff81085a20>] ? kthread_create_on_node+0x140/0x140
[ 1094.988032] [<ffffffff815f206c>] ret_from_fork+0x7c/0xb0
[ 1094.989224] [<ffffffff81085a20>] ? kthread_create_on_node+0x140/0x140
[ 1094.990409] Code: 56 41 55 49 89 fd 41 54 45 31 e4 53 48 8b 1d 67 cc 53 00 eb 1b 0f 1f 44 00 00 48 98 49 8b 8d 30 02 00 00 48 8b 04 c5 80 5e 9d 81 <4c> 03 64 01 08 83 c2 01 48 89 df 48 63 d2 e8 4c 50 20 00 48 63
[ 1094.992918] RIP [<ffffffff810c5da1>] module_refcount+0x41/0xc0
[ 1094.994150] RSP <ffff88040d2a9d78>
Environment
- Red Hat Enterprise Linux 7.0
- FCOE
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.