|
Message-ID: <a7b47f45-5929-ae07-1a10-46a02f6db078@huawei.com> Date: Mon, 26 Feb 2018 14:11:58 +0200 From: Igor Stoppa <igor.stoppa@...wei.com> To: J Freyensee <why2jjj.linux@...il.com>, <david@...morbit.com>, <willy@...radead.org>, <keescook@...omium.org>, <mhocko@...nel.org> CC: <labbott@...hat.com>, <linux-security-module@...r.kernel.org>, <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org>, <kernel-hardening@...ts.openwall.com> Subject: Re: [PATCH 2/7] genalloc: selftest On 24/02/18 00:42, J Freyensee wrote: > >> + locations[action->location] = gen_pool_alloc(pool, action->size); >> + BUG_ON(!locations[action->location]); > > Again, I'd think it through if you really want to use BUG_ON() or not: > > https://lwn.net/Articles/13183/ > https://lkml.org/lkml/2016/10/4/1 Is it acceptable to display only a WARNing, in case of risking damaging a mounted filesystem? -- igor
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.