Thread (27 messages) 27 messages, 4 authors, 2018-02-11

[PATCH 2/6] genalloc: selftest

From: Igor Stoppa <hidden>
Date: 2018-02-10 22:59:58
Also in: linux-mm, lkml

On 05/02/18 00:19, Randy Dunlap wrote:
On 02/04/2018 08:47 AM, Igor Stoppa wrote:
[...]
Please use kernel multi-line comment style.
ok for all of them

[...]
quoted
+	BUG_ON(!locations[action->location]);
+	print_first_chunk_bitmap(pool);
+	BUG_ON(compare_bitmaps(pool, action->pattern));
BUG_ON() seems harsh to me, but some of the other self-tests also do that.
I would expect that the test never fails, if one is not modifying
anything related to genalloc.

But if an error slips in during development of genalloc or anything
related (like the functions used to scan the bitmaps), I think it's
better to pull the handbrake immediately, because failure in tracking
correctly the memory allocation is likely to cause corruption and every
sort of mysterious weird errors.

--
igor
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help