Re: [BUG] from x86: Support kmap_local() forced debugging

From: Steven Rostedt
Date: Wed Jan 06 2021 - 20:50:16 EST


On Wed, 6 Jan 2021 17:03:48 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> --- a/include/linux/skbuff.h
> +++ b/include/linux/skbuff.h
> @@ -366,7 +366,7 @@ static inline void skb_frag_size_sub(skb_frag_t *frag, int delta)
> static inline bool skb_frag_must_loop(struct page *p)
> {
> #if defined(CONFIG_HIGHMEM)
> - if (PageHighMem(p))
> + if (IS_ENABLED(CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP) || PageHighMem(p))
> return true;
> #endif
> return false;

I applied this and I haven't been able to crash it again.

Thanks,

-- Steve