Re: [RFC][PATCHES] drivers/scsi/sg.c uaccess cleanups/fixes

2019-10-17 Thread Douglas Gilbert
On 2019-10-17 9:36 p.m., Al Viro wrote: On Wed, Oct 16, 2019 at 09:25:40PM +0100, Al Viro wrote: FWIW, callers of __copy_from_user() remaining in the generic code: 6) drivers/scsi/sg.c nest: sg_read() ones are memdup_user() in disguise (i.e. fold with immediately preceding kmalloc()s). sg_n

[RFC][PATCHES] drivers/scsi/sg.c uaccess cleanups/fixes

2019-10-17 Thread Al Viro
On Wed, Oct 16, 2019 at 09:25:40PM +0100, Al Viro wrote: > FWIW, callers of __copy_from_user() remaining in the generic code: > 6) drivers/scsi/sg.c nest: sg_read() ones are memdup_user() in disguise > (i.e. fold with immediately preceding kmalloc()s). sg_new_write() - > fold with access_ok() in