Skip to contentSkip to conversation

BUG_ON in sg code

DISCUSSION Johannes Berg 2 participants 3 messages Feb 27, 2017

lore
Share & tools
lore
#0 lore raw

Hi Ard,

Apologies for the non-follow-up - couldn't find the original patch.

Your patch "crypto: ccm - switch to separate cbcmac driver" causes a BUG_ON when virtual stacks are used, in crypto_ccm_auth() is called, because you put odata/idata on the stack. What's going on there? I thought we knew we can't do that? Did I miss something?

johannes

#1 lore raw
Quoted 9 lines · Johannes Berg

Hi Ard,

Apologies for the non-follow-up - couldn't find the original patch.

Your patch "crypto: ccm - switch to separate cbcmac driver" causes a BUG_ON when virtual stacks are used, in crypto_ccm_auth() is called, because you put odata/idata on the stack. What's going on there? I thought we knew we can't do that? Did I miss something?

It was I who missed something, obviously.

I will send out a fix asap

#2 lore raw
Quoted 6 lines · Ard Biesheuvel
Quoted 4 lines

because you put odata/idata on the stack. What's going on there? I thought we knew we can't do that? Did I miss something?

It was I who missed something, obviously.

Ok. I thought maybe I missed a plan to actually make it allowed or something :)

Thanks!

johannes