From: Oleg Drokin Date: Mon, 27 May 2013 18:06:09 +0000 (-0400) Subject: LU-3333 ptlrpc: Protect request buffer changing X-Git-Tag: 2.5.59~80 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b35de525a14843f07ca0dbe611e254c82b08e161;hp=b35de525a14843f07ca0dbe611e254c82b08e161;ds=sidebyside LU-3333 ptlrpc: Protect request buffer changing *_enlarge_reqbuf class of functions can change request body location for a request that's already in replay list, as such a parallel traverser of the list (after_reply -> ptlrpc_free_committed) might access freed and scrambled memory causing assertion. Since all such users only can get to this request under imp_lock, take imp_lock to protect against them in *_enlarge_reqbuf Change-Id: I0fa690aabd8696a9f05b94c66e06e30eefb5c759 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/10074 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Mike Pershin Reviewed-by: Andreas Dilger ---