Re: [mac80211] BUG_ON with current -git (4.8.0-11417-g24532f7)

2 messages, 2 authors, 2016-10-12 · open the first message on its own page

Re: [mac80211] BUG_ON with current -git (4.8.0-11417-g24532f7)

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2016-10-12 09:05:40

Hi,

Sorry - I meant to look into this yesterday but forgot.
Andy, can this be related to CONFIG_VMAP_STACK?
I think it is.
quoted
current -git kills my system. 
Can you elaborate on how exactly it kills your system?
quoted
adding

	if (!virt_addr_valid(&aad[2])) {
		WARN_ON(1);
		return -EINVAL;
	}
That's pretty obviously false with VMAP_STACK, since the caller
(ieee80211_crypto_ccmp_decrypt) puts the aad on the stack. b_0 is also
on the stack, but maybe that doesn't matter.

Herbert, do you know what could cause this, and how we should fix it?

We can't really afford to do an allocation here, and we don't have
space in the skb (not even in skb->cb at that point), so if we really
have no way to continue using the stack we'd ... not sure, use a per-
CPU buffer perhaps.
We need 32 bytes for aad and 16 bytes for b_0, if that also can't be on
the stack any more.

johannes

Re: [mac80211] BUG_ON with current -git (4.8.0-11417-g24532f7)

From: Sergey Senozhatsky <hidden>
Date: 2016-10-12 14:13:44

Hello,

On (10/12/16 11:05), Johannes Berg wrote:
Sorry - I meant to look into this yesterday but forgot.
quoted
Andy, can this be related to CONFIG_VMAP_STACK?
I think it is.
yeah, the system works fine with !CONFIG_VMAP_STACK.
quoted
quoted
current -git kills my system.
Can you elaborate on how exactly it kills your system?
the last time I saw it it was a NULL deref at ieee80211_aes_ccm_decrypt.

	-ss
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help