Whamcloud - gitweb
LU-6020 kerberos: proper sg list initialization 31/13631/3
authorAndrew Perepechko <andrew.perepechko@seagate.com>
Wed, 4 Feb 2015 13:50:10 +0000 (16:50 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Mar 2015 11:45:06 +0000 (11:45 +0000)
commitcc29ab50d271f62f540e71e23d041d2e414c2397
tree860719d6fa44395a32ce094e56e945a80f8c8834
parent98b03592d1d0c70ab4bf96daf9778b8ffc2b74d1
LU-6020 kerberos: proper sg list initialization

This patch adds sg_init_table() calls in order
to have proper sg list initialization including
magics, tables sizes, etc.

Without it, when using kernels with CONFIG_DEBUG_SG
option, the following crash can happen:

kernel BUG at include/linux/scatterlist.h:65!
invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC
last sysfs file: /sys/devices/system/cpu/online
CPU 0

Pid: 4911, comm: ptlrpcd_3 Not tainted 2.6.32-431 #7                  /D525MWV
RIP: 0010:[<ffffffffa0b60170>]  [<ffffffffa0b60170>] krb5_make_checksum+0x750/0x770 [ptlrpc_gss]

Change-Id: Ic6c52c8b15393d8d7f67f4bf675c1f57cf27004a
Signed-off-by: Andrew Perepechko <andrew.perepechko@seagate.com>
Reviewed-on: http://review.whamcloud.com/13631
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
lustre/ptlrpc/gss/gss_krb5_mech.c