The following commit has been merged in the openafs-stable-1_8_x branch:
commit e05a095455294feff4e1b28a432896222a3ffd94
Author: Andrew Deason <[email protected]>
Date:   Mon Apr 30 17:33:14 2018 -0500

    afs: Avoid afs_GetDCache panic on cache open error
    
    When we need to populate a dcache entry, afs_GetDCache calls
    afs_CFileOpen to get a handle for our file backing that dcache.
    Currently, if we cannot open the file, we panic.
    
    To handle this a little more gracefully, just return an error from
    afs_GetDCache instead. The relevant userspace request will probably
    fail with EIO, but this is better than possibly crashing the whole
    system.
    
    Reviewed-on: https://gerrit.openafs.org/13046
    Reviewed-by: Benjamin Kaduk <[email protected]>
    Tested-by: Benjamin Kaduk <[email protected]>
    (cherry picked from commit 22e64df8e043fa7bd78bff263866ee2bd6a6e13d)
    
    Change-Id: Iddc7b0ebc56a64d792251f1f42c576603f2a86cf
    Reviewed-on: https://gerrit.openafs.org/13072
    Reviewed-by: Mark Vitale <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>
    Tested-by: BuildBot <[email protected]>

 src/afs/afs_dcache.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to