Page MenuHomeFreeBSD

cam: introduce xpt_setup_stack_ccb
AbandonedPublic

Authored by imp on May 20 2021, 2:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 8:58 AM
Unknown Object (File)
Tue, Sep 30, 6:14 AM
Unknown Object (File)
Wed, Sep 24, 9:47 AM
Unknown Object (File)
Tue, Sep 23, 4:38 AM
Unknown Object (File)
Tue, Sep 23, 4:21 AM
Unknown Object (File)
Mon, Sep 22, 8:31 AM
Unknown Object (File)
Sun, Sep 21, 4:13 PM
Unknown Object (File)
Sep 11 2025, 5:25 AM
Subscribers

Details

Reviewers
trasz
slm
Group Reviewers
cam
Summary

Create a new function xpt_setup_stack_ccb which is used to setup a ccb
that lives on the stack.

Sponsored by: Netflix

Test Plan

This is a thought experiment on how one might create a safer version of this that we could assert on later.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39316
Build 36205: arc lint + arc unit

Event Timeline

imp requested review of this revision.May 20 2021, 2:15 AM
imp edited the test plan for this revision. (Show Details)

Add malloc tagging and add assert to xpt_setup_ccb

Note: this just does scsi_da.c as a proof of concept, but doesn't go through the tree yet.

This comment was removed by imp.

https://reviews.freebsd.org/D30353 has all the other changes, and a good coccinelle script for spatch

tweak the script to eliminate a couple of bugs

oops, regen with right patch

assert we're not freeing a stack thing
Get the names of the field right

I still like this idea, but I think that I'm just going to punt on this detail