OpenAFS Master Repository branch, openafs-stable-1_8_x, updated. openafs-stable-1_8_6-13-ga00fe9f
Gerrit Code Review
gerrit@openafs.org
Thu, 20 Aug 2020 13:27:52 -0400
The following commit has been merged in the openafs-stable-1_8_x branch:
commit a00fe9fd4253b2436ae649b05b329d0d52c8b6f6
Author: Yadavendra Yadav <yadayada@in.ibm.com>
Date: Thu Mar 5 07:21:55 2020 +0000
LINUX: Initialize CellLRU during osi_Init
When OpenAFS kernel module gets loaded, it will create certain entries
in "proc" filesystem. One of those entries is "CellServDB", in case
we read "/proc/fs/openafs/CellServDB" without starting "afsd" it will
result in crash with NULL pointer deref. The reason for crash is
CellLRU has not been initialized yet (since "afsd" is not started)
i.e afs_CellInit is not yet called, because of this "next" and "prev"
pointers will be NULL. Inside "c_start()" we do not check for NULL
pointer while traversing CellLRU and this causes crash.
To avoid this initialize CellLRU during module intialization.
Reviewed-on: https://gerrit.openafs.org/14093
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 8d90a9d27b0ef28ddcdd3eb041c8a9d019b84b50)
Change-Id: I9ed97d3751943331c9d9bc9dfc73acc24231187b
Reviewed-on: https://gerrit.openafs.org/14284
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_module.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
--
OpenAFS Master Repository