Re: tty_ldisc_try_get(): BUG kmalloc-8: Poison overwritten

From: Pekka Enberg
Date: Sun Jun 14 2009 - 04:32:29 EST


On Sun, Jun 14, 2009 at 11:20 AM, Pekka Enberg<penberg@xxxxxxxxxxxxxx> wrote:
>> You could add something like
>>
>>  WARN_ON(ld->refcount == 0x6b)
>>
>> to tty_ldisc_deref() to see if that triggers.

On Sun, Jun 14, 2009 at 11:30 AM, Pekka Enberg<penberg@xxxxxxxxxxxxxx> wrote:
> Make that
>
>    WARN_ON(ld->refcount == (int)0xa56b6b6b)
>
> instead.

And oh, kmemcheck should be able to catch this too. :-)
--
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/