Re: Detect list corruption at early stage to avoid BUG hitting?

2013-01-07 Thread richard -rw- weinberger
On Fri, Jan 4, 2013 at 5:49 AM, Ritesh Harjani ritesh.harj...@gmail.com wrote:
 Hi Everyone,

 Many times we see the following warning, which causes some kernel Bug to
 hit. I googled for any solution to detect list corruption so as to avoid the
 bug hit, but couldnt find any.
 Do you guys have any info ?? Does kernel provide any generic solution to do
 this?

 Warning: list_del corruption. next-prev should be xx, but was y.

Is your code dealing with lists?
If yes, looks like you are using the list API in a wrong manner.
E.g. double list_add().

Or your code corrupts memory...

-- 
Thanks,
//richard

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Detect list corruption at early stage to avoid BUG hitting?

2013-01-03 Thread Ritesh Harjani
Hi Everyone,

Many times we see the following warning, which causes some kernel Bug to
hit. I googled for any solution to detect list corruption so as to avoid
the bug hit, but couldnt find any.
Do you guys have any info ?? Does kernel provide any generic solution to do
this?

*Warning: list_del corruption. next-prev should be xx, but was y. *

Regards
Ritesh
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies