From: Johannes Berg Subject: Re: [PATCH 7/7] mac80211: Switch to new AEAD interface Date: Fri, 22 May 2015 09:43:28 +0200 Message-ID: <1432280608.3493.4.camel@sipsolutions.net> References: <20150521103938.GA23035@gondor.apana.org.au> <1432279948.3493.2.camel@sipsolutions.net> <20150522074126.GA2921@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Linux Crypto Mailing List , netdev@vger.kernel.org, "David S. Miller" , Marcel Holtmann , Steffen Klassert To: Herbert Xu Return-path: Received: from s3.sipsolutions.net ([5.9.151.49]:50131 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752567AbbEVHnb (ORCPT ); Fri, 22 May 2015 03:43:31 -0400 In-Reply-To: <20150522074126.GA2921@gondor.apana.org.au> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Fri, 2015-05-22 at 15:41 +0800, Herbert Xu wrote: > Did this have a code section at the end? Without it it's difficult > to pin-point the crash because your compiler produces different > output than mine. Oops, sorry, of course - I was running in a VM :) [ 26.143579] BUG: unable to handle kernel NULL pointer dereference at (null) [ 26.144406] IP: [] scatterwalk_map_and_copy+0x3d/0xd0 [ 26.145071] PGD da3a067 PUD d9ee067 PMD 0 [ 26.145514] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 26.146146] CPU: 1 PID: 661 Comm: hostapd Not tainted 4.0.0+ #860 [ 26.146746] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014 [ 26.148333] task: ffff88000d9a4a20 ti: ffff880000070000 task.ti: ffff880000070000 [ 26.149625] RIP: 0010:[] [] scatterwalk_map_and_copy+0x3d/0xd0 [ 26.151223] RSP: 0018:ffff8800000733b8 EFLAGS: 00010246 [ 26.152156] RAX: 0000000000000000 RBX: 0000000000000010 RCX: 000077ff80000000 [ 26.153396] RDX: 0000000080000000 RSI: 0000000000000000 RDI: ffff8800000733c8 [ 26.153481] RBP: ffff880000073428 R08: 0000000000000001 R09: 0000000000000010 [ 26.153481] R10: 0000000000000010 R11: 0000000000000012 R12: 0000000000000001 [ 26.153481] R13: ffff8800000735f8 R14: 0000000000000000 R15: 0000000000000030 [ 26.153481] FS: 00007f20eee60700(0000) GS:ffff88000f600000(0000) knlGS:0000000000000000 [ 26.153481] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 26.153481] CR2: 0000000000000000 CR3: 000000000da2a000 CR4: 00000000000007a0 [ 26.153481] Stack: [ 26.153481] 0000000000000000 0000000000000030 ffff8800000733d8 ffffffff811e05c6 [ 26.153481] ffff8800000733f8 ffffffff811df815 ffff8800000735f8 ffff880000073598 [ 26.153481] ffff880000073408 ffffffff811dfc86 ffff880000073438 ffff8800000735f8 [ 26.153481] Call Trace: [ 26.153481] [] ? shash_async_final+0x16/0x20 [ 26.153481] [] ? crypto_ahash_op+0x25/0x60 [ 26.153481] [] ? crypto_ahash_final+0x16/0x20 [ 26.153481] [] gcm_enc_copy_hash+0x28/0x30 [ 26.153481] [] crypto_gcm_encrypt+0xec/0x100 [ 26.153481] [] ? gcm_enc_copy_hash+0x30/0x30 [ 26.153481] [] old_crypt+0xc5/0xe0 [ 26.153481] [] old_encrypt+0x1d/0x20 [ 26.153481] [] ieee80211_aes_gmac+0x21b/0x230 [...] [ 26.153481] [] system_call_fastpath+0x12/0x76 [ 26.153481] Code: 89 e5 41 55 49 89 fd 41 54 48 8d 7d a0 45 89 c4 53 89 cb 48 83 ec 58 e8 12 ff ff ff ba 00 00 00 80 48 b9 00 00 00 80 ff 77 00 00 <48> 8b 30 48 83 e6 fc 4c 01 ea 48 0f 42 0d 81 31 63 00 48 01 ca [ 26.153481] RIP [] scatterwalk_map_and_copy +0x3d/0xd0 [ 26.153481] RSP [ 26.153481] CR2: 0000000000000000 [ 26.153481] ---[ end trace b6af799d0103eb26 ]--- johannes