ksmbd: fix oops from fuse driver
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 3 Oct 2021 04:19:00 +0000 (13:19 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 7 Oct 2021 15:18:36 +0000 (10:18 -0500)
commit64e7875560270b8f669fca9fcd6a689fea56fbeb
tree4b2c1028619c8bb131815d3ae9202ad5e6294453
parent2db72604f3eaebd6175548bf64372e163724ebe3
ksmbd: fix oops from fuse driver

Marios reported kernel oops from fuse driver when ksmbd call
mark_inode_dirty(). This patch directly update ->i_ctime after removing
mark_inode_ditry() and notify_change will put inode to dirty list.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Cc: Hyunchul Lee <hyc.lee@gmail.com>
Reported-by: Marios Makassikis <mmakassikis@freebox.fr>
Tested-by: Marios Makassikis <mmakassikis@freebox.fr>
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c