diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-25 13:39:54 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-04-28 18:08:21 -0400 |
commit | c6ade20f5e50e188d20b711a618b20dd1d50457e (patch) | |
tree | a6b882286df26b634acaf06a4a27639287b92fee /drivers/ata/pata_sl82c105.c | |
parent | 1a92e99a55e2689f9c13770fe0068b24476268ef (diff) | |
download | linux-c6ade20f5e50e188d20b711a618b20dd1d50457e.tar.bz2 |
libata: reject passthrough WRITE SAME requests
The WRITE SAME to TRIM translation rewrites the DATA OUT buffer. While
the SCSI code accomodates for this by passing a read-writable buffer
userspace applications don't cater for this behavior. In fact it can
be used to rewrite e.g. a readonly file through mmap and should be
considered as a security fix.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_sl82c105.c')
0 files changed, 0 insertions, 0 deletions