[Bug 262263] ahci: Unaligned free to UMA zone (ada_ccb)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Mar 2022 15:06:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262263

--- Comment #10 from Alexander Motin <mav@FreeBSD.org> ---
@Lamia, there seem to be two independent issues here: one for USB, one for
AHCI.  Please do not mix them.  I have doubts that panic you see on 14 should
be reproducible on 13.1, but please correct me if I read your wrong.

@trasz I think I see the problem, and it may indeed be related to your change. 
In ahci_issue_recovery() I see such a line:
    ccb->ccb_h = ch->hold[i]->ccb_h;        /* Reuse old header. */

, which should also copy alloc_flags from read periph CCB to the locally
allocated one.  When it comes time to free the CCB, it is probably getting
freed to the wrong zone.

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