Page MenuHomeFreeBSD

devctl: Add missing validation to DEV_RESET
ClosedPublic

Authored by markj on Sun, Oct 6, 1:17 PM.

Details

Summary

As in other ioctls which access the parent bus, we need to check for a
NULL parent here. Otherwise it's possible to trigger a null pointer
dereference by resetting the root device.

Reported by: Elliott Mitchell <ehem+freebsd@m5p.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59793
Build 56679: arc lint + arc unit