find_mode_page_6() and find_mode_page_10() took the page offset from the
block descriptor length the target reported, with no reference to the
buffer holding the response. A target that overstates it walks the
caller off the end. PROBE_MODE_SENSE reads queue_flags past a 24 byte
allocation during a bus scan, the cd(4) CDIOC ioctls read-modify-write
the page, and camcontrol modepage -e indexes off a 4096 byte stack
buffer.
Pass the readable length and the needed page size to both helpers and
return NULL. cd(4) checks in cdgetmode(), which every cdgetpage()
caller already tests.
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>