Re: [PATCH 4.19 62/81] cifs: use cifsInodeInfo->open_file_lock while iterating to avoid a panic

From: Sasha Levin
Date: Thu Oct 17 2019 - 13:19:56 EST


On Thu, Oct 17, 2019 at 09:01:17AM -0700, Greg Kroah-Hartman wrote:
On Thu, Oct 17, 2019 at 10:55:39AM +0200, Pavel Machek wrote:
Hi!

> From: Dave Wysochanski <dwysocha@xxxxxxxxxx>
>
> Commit 487317c99477 ("cifs: add spinlock for the openFileList to
> cifsInodeInfo") added cifsInodeInfo->open_file_lock spin_lock to protect

> Fixes: 487317c99477 ("cifs: add spinlock for the openFileList to cifsInodeInfo")
>
> CC: Stable <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Dave Wysochanski <dwysocha@xxxxxxxxxx>
> Reviewed-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx>
> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx>

This is missing upstream commit ID and a signoff.

Good catch, Sasha forgot to do that :(

I was actually thinking I'll need to replace it with David's patch. Let
me look into it.

--
Thanks,
Sasha