summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorKaitao Cheng <chengkaitao@kylinos.cn>2026-05-19 16:01:17 +0300
committerPetr Mladek <pmladek@suse.com>2026-05-26 12:06:12 +0300
commitb09b6d0c404d62480dbc23865c763c63598511f5 (patch)
treeaa1cd8e6584dfe997a79502a1da4a6a616ac3215 /include/linux/workqueue_api.h
parent4d56efe69decb086796b68826aad2a4eeb9b788d (diff)
downloadlinux-b09b6d0c404d62480dbc23865c763c63598511f5.tar.xz
lib/vsprintf: Require exact hash_pointers mode matches
hash_pointers= accepts a small set of mode strings, but the parser uses strncmp() with the length of each valid mode. That accepts values with trailing garbage, such as hash_pointers=autobots or hash_pointers=nevermind, as valid aliases for auto and never. Use strcmp() so that only the documented mode strings are accepted. Invalid values will continue to fall back to auto through the existing unknown-mode path. Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://patch.msgid.link/20260519130117.48097-1-kaitao.cheng@linux.dev Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions