Re: [PATCH v2] sanitize task->comm to avoid leaking escape codes

From: Alan Cox
Date: Wed Jun 30 2010 - 05:09:53 EST

> What I do have interest in is fixing get_task_comm's use of buffers, which
> is theoretically problematic in some future where someone accidentally
> calls it with a buffer smaller than sizeof(task->comm).

Lots of things are theoretically problematic and kernel would take a week
to boot if we covered them all 8)

Having a
struct task_name {
char [propersize];

would produce the same code as far as I can tell and so typechecking
though - so as you say it can be done sanely.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at