]> www.infradead.org Git - users/hch/misc.git/commit
cifs: Fix integer overflow while processing acdirmax mount option
authorMurad Masimov <m.masimov@mt-integration.ru>
Tue, 11 Mar 2025 14:22:04 +0000 (17:22 +0300)
committerSteve French <stfrench@microsoft.com>
Thu, 13 Mar 2025 13:41:27 +0000 (08:41 -0500)
commit5b29891f91dfb8758baf1e2217bef4b16b2b165b
tree51e6e5f0a4b4d7550d9c654155d676eafb73d093
parent7489161b1852390b4413d57f2457cd40b34da6cc
cifs: Fix integer overflow while processing acdirmax mount option

User-provided mount parameter acdirmax of type u32 is intended to have
an upper limit, but before it is validated, the value is converted from
seconds to jiffies which can lead to an integer overflow.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 4c9f948142a5 ("cifs: Add new mount parameter "acdirmax" to allow caching directory metadata")
Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c