mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -04:00
s390: avoid format strings leaking into names
This makes sure format strings can't accidentally leak into kernel interface names. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
0eb69a0c58
commit
ef283688f5
@@ -356,7 +356,7 @@ struct zcrypt_ops *zcrypt_msgtype_request(unsigned char *name, int variant)
|
||||
|
||||
zops = __ops_lookup(name, variant);
|
||||
if (!zops) {
|
||||
request_module(name);
|
||||
request_module("%s", name);
|
||||
zops = __ops_lookup(name, variant);
|
||||
}
|
||||
if ((!zops) || (!try_module_get(zops->owner)))
|
||||
|
||||
Reference in New Issue
Block a user