freebsd-dev/sys/dev/mrsas
Kashyap D Desai 731b75614d Problem statement:
MFI linked list in megaraid_sas driver is used for mfi-mpt pass-through commands.
This list can be corrupted due to many possible race conditions in driver and
eventually we may see kernel panic.

One example -
MFI frame is freed from calling process as driver send command via polling method and interrupt
for that command comes after driver free mfi frame (actually even after some other context reuse
the mfi frame). When driver receive MPT frame in ISR, driver will be using the index of MFI and
access that MFI frame and finally in-used MFI frames list will be corrupted.

High level description of new solution -
Free MFI and MPT command from same context.
Free both the command either from process (from where mfi-mpt pass-through was called) or from
ISR context. Do not split freeing of MFI and MPT, because it creates the race condition which
will do MFI/MPT list.

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   Broadcom Limited/AVAGO Technologies
2016-11-29 12:49:20 +00:00
..
mrsas_cam.c Problem statement: 2016-11-29 12:49:20 +00:00
mrsas_fp.c Added support for Avago/Broadcom Cutlass(12 Gbps- 16 port count) controllers. 2016-06-02 12:26:55 +00:00
mrsas_ioctl.c Following bugs fixed as part of this patch: 2016-05-13 12:21:50 +00:00
mrsas_ioctl.h Corrected indentation on conflicted source files. 2015-05-06 10:46:28 +00:00
mrsas_linux.c mrsas: update for sys/capability.h rename in r263232 2016-09-20 12:59:30 +00:00
mrsas.c Problem statement: 2016-11-29 12:49:20 +00:00
mrsas.h Problem statement: 2016-11-29 12:49:20 +00:00