Thanks! A couple more follow-on fixes for sg race conditions are now in the linux-next tree (via linux-scsi), in case it's appropriate to also queue these for linux-stable trees now or after 4.14 release: commit 8d26f491116feaa0b16de370b6a7ba40a40fa0b4 Author: Todd Poynor <toddpoynor@xxxxxxxxxx> Date: Tue Aug 15 21:48:43 2017 -0700 scsi: sg: recheck MMAP_IO request length with lock held commit 6a8dadcca81fceff9976e8828cceb072873b7bd5 Author: Todd Poynor <toddpoynor@xxxxxxxxxx> Date: Tue Aug 15 22:41:08 2017 -0700 scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZE Todd