Possible Lock Dangling in function [fnic_handle_fip_timer] on [v4.3-rc1]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

A possibility of a dangling lock and eventually a deadlock can occur
in function [fnic_handle_fip_timer] on [v4.3-rc1].

Github Link: https://github.com/torvalds/linux/blob/v4.3-rc1/drivers/scsi/fnic/fnic_fcs.c#L1267

The lock acquired at line 1284  will not be unlocked upon function's
exit if (vlan->state) value is (FIP_VLAN_AVAIL) when entering the
switch statement at line 1298.

A possible fix is to add a default case to the switch block or add a
special case to handle the case where vlan->state) value is
(FIP_VLAN_AVAIL).


Thanks
~Ahmed Tamrawi
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux