The patch titled Subject: coda: avoid flagging NULL inodes has been added to the -mm tree. Its filename is coda-avoid-flagging-null-inodes.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/coda-avoid-flagging-null-inodes.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/coda-avoid-flagging-null-inodes.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jan Harkes <jaharkes@xxxxxxxxxx> Subject: coda: avoid flagging NULL inodes Somehow we hit a negative dentry in coda_rename even after checking with d_really_is_positive. Maybe something raced and turned the new_dentry negative while we were fixing up directory link counts. Link: https://lkml.kernel.org/r/20210908140308.18491-5-jaharkes@xxxxxxxxxx Signed-off-by: Jan Harkes <jaharkes@xxxxxxxxxx> Cc: Alex Shi <alex.shi@xxxxxxxxxxxxxxxxx> Cc: Jing Yangyang <jing.yangyang@xxxxxxxxxx> Cc: Xin Tan <tanxin.ctf@xxxxxxxxx> Cc: Xiyu Yang <xiyuyang19@xxxxxxxxxxxx> Cc: Zeal Robot <zealci@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/coda/coda_linux.h | 3 +++ 1 file changed, 3 insertions(+) --- a/fs/coda/coda_linux.h~coda-avoid-flagging-null-inodes +++ a/fs/coda/coda_linux.h @@ -83,6 +83,9 @@ static __inline__ void coda_flag_inode(s { struct coda_inode_info *cii = ITOC(inode); + if (!inode) + return; + spin_lock(&cii->c_lock); cii->c_flags |= flag; spin_unlock(&cii->c_lock); _ Patches currently in -mm which might be from jaharkes@xxxxxxxxxx are coda-avoid-null-pointer-dereference-from-a-bad-inode.patch coda-check-for-async-upcall-request-using-local-state.patch coda-avoid-flagging-null-inodes.patch coda-avoid-hidden-code-duplication-in-rename.patch coda-avoid-doing-bad-things-on-inode-type-changes-during-revalidation.patch coda-bump-module-version-to-72.patch