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)
Tue, Jan 6, 3:12 AM
Unknown Object (File)
Mon, Dec 29, 2:06 AM
Unknown Object (File)
Fri, Dec 26, 8:48 PM
Unknown Object (File)
Tue, Dec 23, 4:43 PM
Unknown Object (File)
Dec 1 2025, 12:00 AM
Unknown Object (File)
Nov 28 2025, 1:18 PM
Unknown Object (File)
Nov 27 2025, 10:06 AM
Unknown Object (File)
Nov 27 2025, 8:38 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 39303
Build 36192: 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