[Bug 256305] ocs_fc - panic: ffs_blkfree_cg: freeing free block

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 31 May 2021 18:21:28 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256305

            Bug ID: 256305
           Summary: ocs_fc - panic: ffs_blkfree_cg: freeing free block
           Product: Base System
           Version: 12.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs_at_FreeBSD.org
          Reporter: dave_at_jetcafe.org

I am running FreeBSD 12.2-STABLE r368820 amd64.

We are getting this panic on our storage SAN which we access via the ocs_fc
driver. It appears to be triggered by high I/O rates; specifically if we run
between 5 and 10 dd commands reading and writing to this unit OR if we try to
backup large files to this SAN.

If we repeat our tests on 11.3, it's fine and no crashes happen. 

The driver is identified by the kernel as:

ocs_fc0: <Emulex LightPulse FC Adapter> mem
0xab088000-0xab08ffff,0xab110000-0xab110fff at device 0.0 numa-domain 0 on pci8

The card has the most recent firmware available, and the SAN also has the most
recent software. Here's a sysctl dump of the device. 

dev.ocs_fc.0.port_state: online
dev.ocs_fc.0.fcid: 0x043480
dev.ocs_fc.0.businfo: 3B:00:00
dev.ocs_fc.0.configured_speed: 0
dev.ocs_fc.0.configured_topology: 0
dev.ocs_fc.0.current_speed: 16000
dev.ocs_fc.0.current_topology: 1
dev.ocs_fc.0.wwpn: 0x100000109b4ab93b
dev.ocs_fc.0.wwnn: 0x200000109b4ab93b
dev.ocs_fc.0.fw_upgrade: 
dev.ocs_fc.0.sli_intf: c0022c40
dev.ocs_fc.0.fwrev: 12.8.351.32, sli-4:2:c
dev.ocs_fc.0.sn: FC82553901
dev.ocs_fc.0.modeldesc: Emulex LightPulse LPe31002-M6 2-Port 16Gb Fibre Channel
Adapter
dev.ocs_fc.0.devid: 3808432351
dev.ocs_fc.0.%domain: 0
dev.ocs_fc.0.%parent: pci8
dev.ocs_fc.0.%pnpinfo: vendor=0x10df device=0xe300 subvendor=0x10df
subdevice=0xe310 class=0x0c0400
dev.ocs_fc.0.%location: slot=0 function=0 dbsf=pci0:59:0:0
handle=\_SB_.PC02.BR2A.UPS_
dev.ocs_fc.0.%driver: ocs_fc
dev.ocs_fc.0.%desc: Emulex LightPulse FC Adapter

pciconf has this:

ocs_fc0_at_pci0:59:0:0:    class=0x0c0400 card=0xe31010df chip=0xe30010df rev=0x01
hdr=0x00
    vendor     = 'Emulex Corporation'
    device     = 'LPe31000/LPe32000 Series 16Gb/32Gb Fibre Channel Adapter'
    class      = serial bus
    subclass   = Fibre Channel

If there is any other information you need, let me know. Thanks in advance.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Mon May 31 2021 - 18:21:28 UTC

Original text of this message