summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2018-08-10 11:23:56 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-09 19:55:55 +0200
commit5044eb05026e9138ad3a31879bc752009f9248eb (patch)
tree956c7592cbb5920a2c8525abb50deb8f2df8936c /drivers/tty
parentf961be8944130e94ce32c662a748e6f386d666ca (diff)
dm crypt: don't decrease device limits
commit bc9e9cf0401f18e33b78d4c8a518661b8346baf7 upstream. dm-crypt should only increase device limits, it should not decrease them. This fixes a bug where the user could creates a crypt device with 1024 sector size on the top of scsi device that had 4096 logical block size. The limit 4096 would be lost and the user could incorrectly send 1024-I/Os to the crypt device. Cc: stable@vger.kernel.org Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions