Re: [patch 09/35 error-handling] reiserfs: add locking around error buffer

From: Andi Kleen
Date: Mon Mar 30 2009 - 14:49:00 EST


Jeff Mahoney <jeffm@xxxxxxxx> writes:

> The formatting of the error buffer is race prone. It uses static buffers
> for both formatting and output. While overwriting the error buffer
> can product garbled output, overwriting the format buffer with incompatible
> % directives can cause crashes.

Really? Just curious but could you describe the steps how a garbled printk can
leads to a crash?

Thanks,

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/