[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130520135635.GA18693@kroah.com>
Date: Mon, 20 May 2013 06:56:35 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Oskar Andero <oskar.andero@...ymobile.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Radovan Lekanovic <radovan.lekanovic@...ymobile.com>,
David Rientjes <rientjes@...gle.com>,
Glauber Costa <glommer@...nvz.org>,
Dave Chinner <dchinner@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Hugh Dickins <hughd@...gle.com>
Subject: Re: [PATCH] mm: vmscan: add BUG_ON on illegal return values from
scan_objects
On Mon, May 20, 2013 at 11:14:27AM +0200, Oskar Andero wrote:
> Add a BUG_ON to catch any illegal value from the shrinkers. This fixes a
> potential bug if scan_objects returns a negative other than -1, which
> would lead to undefined behaviour.
So it's better to crash a machine and keep anyone from using it?
Instead of recovering from an error you found? Not good.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists