Re: [PATCH] proc: fix unterminated string

From: Alan Cox
Date: Mon Sep 17 2012 - 09:54:23 EST


On Mon, 17 Sep 2012 11:49:30 +0100
Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> From: Alan Cox <alan@xxxxxxxxxxxxxxx>
>
> oom_score_adj_write doesn't terminate the string as it should. Also fix
> sched_autogroup_write and other copy/pastes of the bug.
>
> Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
> Cc: Horses <stable@xxxxxxxxxxxxxxx>

Ok ignore this one - its in fact safe having poked at it further - the
memset ensures the buffer is terminated. Ugly but the existing code works
fine 8)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/