kgdbts: Passing ekgdbts to command line causes panic
Subsystems (2)
PATCH 1/1 kgdbts: Passing ekgdbts to command line causes panic
Similar to commit<1bd54d85>,kgdbts_option_setup does not check input argument before passing it to strlen. The argument would be a NULL pointer.
Signed-off-by Defang Bo <[email protected]>
--- drivers/misc/kgdbts.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/misc/kgdbts.c +5 -0
@@ -1057,6 +1057,11 @@ static void kgdbts_run_tests(void)static int kgdbts_option_setup (char *opt) { +if (!opt) { +pr_err ("kgdbts: config string not provided\n" ); +return -EINVAL ; + } +if (strlen (opt) >=MAX_CONFIG_LEN ) {printk (KERN_ERR "kgdbts: config string too long\n" );return -ENOSPC ;
Signature · 1 line
2.7.4
Greg KH
maintainerQuoted 3 lines · Defang Bo
Similar to commit<1bd54d85>,kgdbts_option_setup does not check input argument before passing it to strlen. The argument would be a NULL pointer.
As per the documentation, you should write commits out as 1bd54d851f50 ("kgdboc: Passing ekgdboc to command line causes panic").
Can you fix that up and resend this?
thanks,
greg k-h