+5
−5
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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> (cherry picked from commit bc9e9cf0401f18e33b78d4c8a518661b8346baf7) Bug: 112008522 Test: As series, see Ie247fd41b11adcf8520de0b1554568a1b7155860 Change-Id: I31b86a50856a98326c5aa153cf492c4d1db7f86a Signed-off-by:
Eric Biggers <ebiggers@google.com>