⬢ DragonFlyBSD Kernel Audit
DF-4402 / trigger.c
← back to finding ↓ download raw
/*
 * DF-4402: no local trigger — the defect lives on the driver attach path and
 * fires when cam_sim_alloc() fails (kernel memory pressure at boot/kldload).
 * On hardware: load the driver with kernel memory nearly exhausted
 * (e.g. vm.* tunables limiting kmem, or a memory-bomb running) so the
 * sizeof(struct cam_sim) kmalloc inside cam_sim_alloc fails; the driver then
 * logs CAM_SIM_ALLOC and continues into xpt_bus_register(NULL) -> NULL deref
 * panic (sim->bus_id write, sys/bus/cam/cam_xpt.c:4306).
 */
int main(void) { return 0; }