diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2021-07-08 12:32:27 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-07-09 08:23:16 +0900 |
commit | 3867369ef8f760155da684e10d29e0bf9b733b48 (patch) | |
tree | a21de9c280e4ef703c08ced0fe7100aa13dbe552 /fs/ksmbd/ksmbd_work.h | |
parent | a9071e3c8659d777eb6527e1d377021381d1b5ec (diff) |
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>
Diffstat (limited to 'fs/ksmbd/ksmbd_work.h')
-rw-r--r-- | fs/ksmbd/ksmbd_work.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ksmbd/ksmbd_work.h b/fs/ksmbd/ksmbd_work.h index c655bf371ce5..f7156bc50049 100644 --- a/fs/ksmbd/ksmbd_work.h +++ b/fs/ksmbd/ksmbd_work.h @@ -43,9 +43,9 @@ struct ksmbd_work { * Current Local FID assigned compound response if SMB2 CREATE * command is present in compound request */ - unsigned int compound_fid; - unsigned int compound_pfid; - unsigned int compound_sid; + u64 compound_fid; + u64 compound_pfid; + u64 compound_sid; const struct cred *saved_cred; |