ksmbd: change data type of volatile/persistent id to u64
authorNamjae Jeon <namjae.jeon@samsung.com>
Thu, 8 Jul 2021 03:32:27 +0000 (12:32 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Thu, 8 Jul 2021 23:23:16 +0000 (08:23 +0900)
commit3867369ef8f760155da684e10d29e0bf9b733b48
treea21de9c280e4ef703c08ced0fe7100aa13dbe552
parenta9071e3c8659d777eb6527e1d377021381d1b5ec
ksmbd: change data type of volatile/persistent id to u64

This patch change data type of volatile/persistent id to u64 to make
issue from idr_find and idr_remove(). !HAS_FILE_ID check will protect
integer overflow issue from idr_find and idr_remove().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/ksmbd_work.h
fs/ksmbd/smb2pdu.c
fs/ksmbd/vfs_cache.c
fs/ksmbd/vfs_cache.h