Re: [v4.14-rc8 ghes_copy_tofrom_phys] BUG: sleeping function called from invalid context at lib/ioremap.c:165

From: Linus Torvalds
Date: Mon Nov 06 2017 - 17:57:28 EST


On Mon, Nov 6, 2017 at 2:46 PM, Fengguang Wu <fengguang.wu@xxxxxxxxx> wrote:
>
> I can see that in RC8, too:

James Morse posted a new version of his series to fix this, and it's
gotten a few tests, but not a lot. Since you clearly have GHES support
on at least some of your machines, it might be worth adding that
series from James to 0day testing.

The patches look good to me, and I assume I'll be be getting it
through Rafael from the ACPI tree (which is how the other ghes code
reaches me), but maybe by now for 4.15 with a stable backport.

The actual problem is definitely not new. Only the warning message.

So the code should work as well as it ever has, which may or may not
be saying a lot. It might be worth fixing for 4.14 just to not scare
people too much with messages, but at the same time it's not a
_functional_ regression.

Linus