]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: check whether smb2_error_map_table is sorted in ascending order
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Wed, 24 Dec 2025 01:33:28 +0000 (09:33 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 03:24:41 +0000 (21:24 -0600)
commit453382f15b0e9b74fc83d364ffa68fa5e4806485
treee70915c23695d601f8a4fa4661805a912e4ac7de
parentc527e13a7a6628176655d70ff166f0f594a77984
smb/client: check whether smb2_error_map_table is sorted in ascending order

Although the array is sorted at build time, verify the ordering again
when cifs.ko is loaded to avoid potential regressions introduced by
future script changes.

Suggested-by: David Howells <dhowells@redhat.com>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Reviewed-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/linux-cifs/20260106071507.1420900-4-chenxiaosong.chenxiaosong@linux.dev/
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c
fs/smb/client/smb2maperror.c
fs/smb/client/smb2proto.h