On Fri, Sep 20, 2013 at 11:24:07PM +0530, Yashpal Dutta wrote: > KMap the buffers before copying trailing bytes during hmac into a session > temporary buffer. This is required if pinned buffer from user-space is send > during hmac and is safe even if hmac request is generated from within kernel. > > Signed-off-by: Yashpal Dutta <yashpal.dutta@xxxxxxxxxxxxx> > Reviewed-by: Vakul Garg <vakul@xxxxxxxxxxxxx> > Reviewed-by: Horia Geanta <horia.geanta@xxxxxxxxxxxxx> > --- > Patch covers review comments on first version of patch. > ./scripts/checkpatch.pl --strict 0001-crypto-caam-map-src-buffer-before-access.patch > > total: 0 errors, 0 warnings, 0 checks, 62 lines checked > > The patch fixes driver crashes when a pinned buffer from user-space is sent to CAAM driver > for HMAC processing. > > drivers/crypto/caam/sg_sw_sec4.h | 34 +++++++++++++++++++++++++--------- > 1 file changed, 25 insertions(+), 9 deletions(-) <formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly. </formletter> -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html