Skip to contentSkip to conversation

staging: lustre: llite: use u64 instead of loff_t in lov_object_fiemap()

PATCH New Greg KH 1 participant 1 message Nov 9, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Greg KH

author
#1 lore raw

PATCH 1/2 staging: lustre: llite: use u64 instead of loff_t in lov_object_fiemap()

Quoted 7 lines · Bobijam

Change loff_t to u64 in lov_object_fiemap() since loff_t is a signed value type.

Otherwise there could be an overflow in drivers/staging/lustre/lustre/lov/lov_object.c:1241 lov_object_fiemap()
warn: signed overflow undefined. 'fm_start + fm_length < fm_start'

Quoted 5 lines
---
 drivers/staging/lustre/lustre/lov/lov_object.c | 38 +++++++++++++-------------
 1 file changed, 19 insertions(+), 19 deletions(-)

Why did you not cc: the maintainers of this filesystem with these patches?
Please resend them both and do so.

thanks,

greg k-h