[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z45taJAEqdcyIXX-@casper.infradead.org>
Date: Mon, 20 Jan 2025 15:36:08 +0000
From: Matthew Wilcox <willy@...radead.org>
To: Hyesoo Yu <hyesoo.yu@...sung.com>
Cc: janghyuck.kim@...sung.com, Andrew Morton <akpm@...ux-foundation.org>,
Jonathan Corbet <corbet@....net>, Christoph Lameter <cl@...ux.com>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Vlastimil Babka <vbabka@...e.cz>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Hyeonggon Yoo <42.hyeyoo@...il.com>, linux-mm@...ck.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: slub: Panic if the object corruption is checked.
On Mon, Jan 20, 2025 at 05:28:21PM +0900, Hyesoo Yu wrote:
> If a slab object is corrupted or an error occurs in its internal
> value, continuing after restoration may cause other side effects.
> At this point, it is difficult to debug because the problem occurred
> in the past. A flag has been added that can cause a panic when there
> is a problem with the object.
>
> Signed-off-by: Hyesoo Yu <hyesoo.yu@...sung.com>
> Change-Id: I4e7e5e0ec3421a7f6c84d591db052f79d3775493
Linux does not use Change IDs. Please omit these from future patches.
Panicing is a very unfriendly approach. I think a better approach would
be to freeze the slab where corruption is detected. That is, no future
objects are allocated from that slab, and attempts to free objects from
that slab become no-ops. I don't think that should be hard to implement.
Powered by blists - more mailing lists