]> git.baikalelectronics.ru Git - kernel.git/commit
Cramfs: fix abad comparison when wrap-arounds occur
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 30 Oct 2018 17:26:15 +0000 (13:26 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 30 Oct 2018 18:24:19 +0000 (14:24 -0400)
commit293233c8461feb6ce4823566285bc518b2a8bc27
treed4cc70b2e65749144bb5992ca4c8a3232d444a64
parent2e09106ae1b4c0fe2085211973677140da5ec823
Cramfs: fix abad comparison when wrap-arounds occur

It is possible for corrupted filesystem images to produce very large
block offsets that may wrap when a length is added, and wrongly pass
the buffer size test.

Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org
fs/cramfs/inode.c