]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4db4cb384832c7d1af63315281b2087b26eabdc3
treea21de9c280e4ef703c08ced0fe7100aa13dbe552
parent62fabf7508b1e90b8f0f0f992e1705dd848e509f
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