Matthew Wilcox (Oracle) ddfff3b4c9 9P: Cast to loff_t before multiplying
commit f5f7ab168b9a60e12a4b8f2bb6fcc91321dc23c1 upstream.

On 32-bit systems, this multiplication will overflow for files larger
than 4GB.

Link: http://lkml.kernel.org/r/20201004180428.14494-2-willy@infradead.org
Cc: stable@vger.kernel.org
Fixes: fb89b45cdfdc ("9P: introduction of a new cache=mmap model.")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:23:59 +01:00
..
2019-07-10 09:55:37 +02:00
2016-08-03 11:12:12 -04:00
2016-08-03 11:12:12 -04:00
2015-11-13 20:34:33 -05:00
2020-08-21 11:02:06 +02:00
2015-11-13 20:34:33 -05:00