Re: [PATCH v2 08/10] drivers/auxdisplay: add a KFuzzTest for parse_xy()

From: Alexander Potapenko

Date: Fri Sep 19 2025 - 11:07:53 EST


On Fri, Sep 19, 2025 at 4:58 PM Ethan Graham <ethan.w.s.graham@xxxxxxxxx> wrote:
>
> From: Ethan Graham <ethangraham@xxxxxxxxxx>
>
> Add a KFuzzTest fuzzer for the parse_xy() function, located in a new
> file under /drivers/auxdisplay/tests.
>
> To validate the correctness and effectiveness of this KFuzzTest target,
> a bug was injected into parse_xy() like so:
>
> drivers/auxdisplay/charlcd.c:179
> - s = p;
> + s = p + 1;
>
> Although a simple off-by-one bug, it requires a specific input sequence
> in order to trigger it, thus demonstrating the power of pairing
> KFuzzTest with a coverage-guided fuzzer like syzkaller.
>
> Signed-off-by: Ethan Graham <ethangraham@xxxxxxxxxx>
Acked-by: Alexander Potapenko <glider@xxxxxxxxxx>