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

From: Andy Lutomirski
Date: Thu Oct 13 2016 - 02:06:36 EST

On Wed, Oct 12, 2016 at 7:22 AM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
>> > 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.
> Hm. I was expecting something within the crypto code would cause the
> crash, this seems strange.
> Anyway, I'm surely out of my depth wrt. the actual cause. Something
> like the patch below probably works around it, but it's horribly
> inefficient due to the locking and doesn't cover CMAC/GMAC either.

In a pinch, I have these patches sitting around:

I don't like them, though. I think it's rather silly that we can't
just pass virtual addresses to the crypto code.