Re: [PATCH 5/5] x86: test early command-line code

From: Borislav Petkov
Date: Wed Jan 27 2016 - 07:28:25 EST


On Tue, Dec 22, 2015 at 02:52:44PM -0800, Dave Hansen wrote:
>
> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> Here are some simple tests for the early command-line code. It
> had way more bugs than it should have, so let's make sure they
> never pop up again.
>
> Note, there are a few failures in here now. We will fix those
> up in the next few patches.
>
> This is complete overkill for this code, but I had to do it to
> convince myself that I wasn't making it any worse.
>
> Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxx>
> Cc: H. Peter Anvin <hpa@xxxxxxxxx>
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Cc: fenghua.yu@xxxxxxxxx
> Cc: yu-cheng.yu@xxxxxxxxx
> ---
>
> b/arch/x86/Kconfig.debug | 7 ++
> b/arch/x86/kernel/check.c | 1
> b/arch/x86/kernel/setup.c | 9 +++
> b/arch/x86/lib/cmdline.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++

First 4 applied, thanks.

This one belongs into tools/testing/selftests/x86/, AFAICT, and can be
run in userspace just the same.

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--