Re: "panic: malloc(M_WAITOK) in non-sleepable context" after r364296 -> r364341

From: David Wolfskill <david_at_catwhisker.org>
Date: Tue, 18 Aug 2020 05:58:25 -0700
On Tue, Aug 18, 2020 at 02:48:47PM +0200, Mateusz Guzik wrote:
> see https://reviews.freebsd.org/D26027
> ....

Right; I was just reviewing the list of updated files and noted
src/sys/kern/kern_malloc.c, and its svn log showed:

------------------------------------------------------------------------
r364310 | glebius | 2020-08-17 08:37:08 -0700 (Mon, 17 Aug 2020) | 8
lines

With INVARIANTS panic immediately if M_WAITOK is requested in a
non-sleepable context.  Previously only _sleep() would panic.
This will catch misuse of M_WAITOK at development stage rather
than at stress load stage.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D26027

------------------------------------------------------------------------

And if we were still going in to the office, I'd discuss it with Gleb.  :-)

But in the mean time: I'm not a committer; I didn't cause the error.
Seems I can't try running head now with a GENERIC kernel.

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Donald Trump is either ignorant of how to govern or is refusing to do so.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Tue Aug 18 2020 - 10:58:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:24 UTC