Re: [PATCH] sg, bsg: mitigate read/write abuse, block uaccess in release

From: Jann Horn
Date: Thu Jun 21 2018 - 08:54:25 EST


On Thu, Jun 21, 2018 at 2:40 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> Can you resend a patch for the sg driver alone?

Okay, will do.

> Also I think
> we just want the scsi_safe_file_access code inside sg itself,
> it really has nothing to do with the reset of the contents in
> scsi_cmnd.h

Okay. (I put it there because I couldn't figure out a better common
header and didn't want to create two new copies of the code.)