Whamcloud - gitweb
LU-8299 llite: ll_fault should fail for insane file offsets 42/34242/5
authorAlexander Zarochentsev <c17826@cray.com>
Tue, 12 Feb 2019 15:28:37 +0000 (18:28 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Feb 2019 02:03:19 +0000 (02:03 +0000)
commitada3b33b52cdc6420e3b186c0aba4dd0b0337d8c
tree5636ecddb10d300346ca1f7ef98374b14c11b0a0
parentdf7bfbb1c7890deed15fd85e75da70d88be2ef7f
LU-8299 llite: ll_fault should fail for insane file offsets

A page fault for a mmapped lustre file at offset large than
2^63 cause Lustre client to hang due to wrong page index
calculations from signed loff_t.
There is no need to do such calclulations but perform
page offset sanity checks in ll_fault().

Cray-bug-id: LUS-1392
Signed-off-by: Alexander Zarochentsev <c17826@cray.com>
Change-Id: Ia492083ee4bdc23edfcbf88cb6d7e9726b2ca80c
Reviewed-on: https://review.whamcloud.com/34242
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/llite/llite_mmap.c
lustre/tests/mmap_sanity.c