Re: bad page state under possibly oom situation

From: Nick Piggin
Date: Wed Nov 02 2005 - 18:31:17 EST


Hugh Dickins wrote:


Phew! It seems I'm off the hook (but having said that, I'll probably
turn out to be guilty in some other way). Sorry, I don't have any
ideas (and have never reproduced this here).


PG_dirty should be cleared when the page is freed. In which case,
perhaps you could stick an extra field in struct page which stores
the address of the last guy who did a (Test)SetPageDirty on the
page. Print it in your bad_page handler.

That might get you started.

--
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com -
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/