Page MenuHomeFreeBSD

devctl: Add missing validation to DEV_RESET
ClosedPublic

Authored by markj on Oct 6 2024, 1:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 12:20 PM
Unknown Object (File)
Nov 4 2024, 2:52 AM
Unknown Object (File)
Nov 1 2024, 4:13 PM
Unknown Object (File)
Oct 31 2024, 7:57 PM
Unknown Object (File)
Oct 26 2024, 10:34 AM
Unknown Object (File)
Oct 8 2024, 1:49 PM
Unknown Object (File)
Oct 7 2024, 11:36 AM
Unknown Object (File)
Oct 7 2024, 6:33 AM
Subscribers

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