summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2019-03-13 07:56:02 -0400
committerMike Snitzer <snitzer@redhat.com>2019-04-01 16:11:11 -0400
commit0d74e6a3b6421d98eeafbed26f29156d469bc0b5 (patch)
tree13b9ab66fe1553126777b6afb114612743b6778c /README
parent79a3aaa7b82e3106be97842dedfd8429248896e6 (diff)
downloadlwn-0d74e6a3b6421d98eeafbed26f29156d469bc0b5.tar.gz
lwn-0d74e6a3b6421d98eeafbed26f29156d469bc0b5.zip
dm integrity: change memcmp to strncmp in dm_integrity_ctr
If the string opt_string is small, the function memcmp can access bytes that are beyond the terminating nul character. In theory, it could cause segfault, if opt_string were located just below some unmapped memory. Change from memcmp to strncmp so that we don't read bytes beyond the end of the string. Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions