staging: lustre: ko2iblnd: fix memory corruption with fragments
authorJames Simmons <jsimmons@infradead.org>
Mon, 9 May 2016 14:53:48 +0000 (10:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:38:19 +0000 (22:38 -0700)
commit147280d88f8e0e6544da68c658531eed70b9632d
treee315929067ed71157e7a6166b9df5597cc9590c8
parentcd779f2edec4a33f12144fb1588abc0d220e36bc
staging: lustre: ko2iblnd: fix memory corruption with fragments

In my test of the upstream client this change exposed a long
standing issues where we have a offset that is not page algined
would causes us to access memory beyond the scatter gather list
which was causing memory corruption when all 256 fragments were
in use.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c