Bug 256305 - ocs_fc - panic: ffs_blkfree_cg: freeing free block
Summary: ocs_fc - panic: ffs_blkfree_cg: freeing free block
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2021-05-31 18:21 UTC by dave
Modified: 2021-06-09 11:53 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description dave 2021-05-31 18:21:28 UTC
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.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@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.
Comment 1 Ram Kishore Vegesna freebsd_committer 2021-06-09 11:53:56 UTC
Hi Dave,

Thanks for reporting the issue. I will try to reproduce the issue on my setup.