HomeFreeBSD

Another attempt to fix issue with the DIOCGDELETE ioctl(2) not

Description

Another attempt to fix issue with the DIOCGDELETE ioctl(2) not
handling slightly out-of-bound requests properly (r340187).
Perform range check here rather then rely on g_delete_data() to DTRT.

The g_delete_data() would always return success for requests
starting just the next byte after providers media boundary.

MFC after: 4 weeks

Details

Provenance
sobomaxAuthored on Dec 4 2018, 9:48 PM
Parents
R10:7dc61ac11fc0: Only gnu/lib/csu when MK_BSD_CRTBEGIN is off.
Branches
Unknown
Tags
Unknown
Reverted By
D31293: geom: Handle truncated I/O in g_*_data()