[Bug 224250] Sending SCSI command to ATA device makes kernel triple fault.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 11 17:59:07 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224250

            Bug ID: 224250
           Summary: Sending SCSI command to ATA device makes kernel triple
                    fault.
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: claunia at claunia.com

When sending a SCSI command thru CAM to an ATA device, kernel triple faults and
machine hangs completely.

No crash dump is generated.

Code can be found in:
https://github.com/claunia/DiscImageChef/blob/7e4ba43063006fe9ef0ab157a75157f573b64db8/DiscImageChef.Devices/FreeBSD/Command.cs#L83

It only happens when csio.data_ptr is set.
Setting it using .NET pinned pointers (aka GCHandle), .NET memory allocation
(aka AllocHGlobal), or libc memory allocation (aka malloc), makes no
difference.

Same code with SATA, SCSI or SAS devices work as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list