From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Charvat Subject: Re: flow cache removed = xfrm doesnt work Date: Mon, 27 Nov 2017 17:46:28 +0100 Message-ID: References: <1871ed24-b210-44ad-2a9f-8ff6c9c8fcb5@excello.cz> <20171124193212.GB17459@breakpoint.cc> <20171125.045031.1035207953582211425.davem@davemloft.net> <20171127090215.ovy2ysmv6z4fdlkh@gauss3.secunet.de> <20171127114130.5vxcm2viunoy25ij@gauss3.secunet.de> <0b30b861-225f-bebf-baf6-23958b2a335c@excello.cz> <20171127124956.qe2uwrxv537nwksu@gauss3.secunet.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eSoL3922lvs5WHOPi3kXxQXUnKwBBEQCO" Cc: David Miller , fw@strlen.de, netdev@vger.kernel.org To: Steffen Klassert Return-path: Received: from out2.virusfree.cz ([79.133.37.42]:52078 "EHLO out2.virusfree.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752949AbdK0QxU (ORCPT ); Mon, 27 Nov 2017 11:53:20 -0500 In-Reply-To: <20171127124956.qe2uwrxv537nwksu@gauss3.secunet.de> Sender: netdev-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eSoL3922lvs5WHOPi3kXxQXUnKwBBEQCO Content-Type: multipart/mixed; boundary="1kCRXH9LiKcOcAMjndcCBwinj7cGPxlat"; protected-headers="v1" From: Tomas Charvat To: Steffen Klassert Cc: David Miller , fw@strlen.de, netdev@vger.kernel.org Message-ID: Subject: Re: flow cache removed = xfrm doesnt work References: <1871ed24-b210-44ad-2a9f-8ff6c9c8fcb5@excello.cz> <20171124193212.GB17459@breakpoint.cc> <20171125.045031.1035207953582211425.davem@davemloft.net> <20171127090215.ovy2ysmv6z4fdlkh@gauss3.secunet.de> <20171127114130.5vxcm2viunoy25ij@gauss3.secunet.de> <0b30b861-225f-bebf-baf6-23958b2a335c@excello.cz> <20171127124956.qe2uwrxv537nwksu@gauss3.secunet.de> In-Reply-To: <20171127124956.qe2uwrxv537nwksu@gauss3.secunet.de> --1kCRXH9LiKcOcAMjndcCBwinj7cGPxlat Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Gentoo-sources has no change vs vanilla in ipsec. However here is result from Vanila 4.14.2 with OFFLOAD=3DN [ 2338.440735] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 [ 2338.440830] IP: xfrm_output_resume+0x211/0x460 [ 2338.440897] PGD 0 P4D 0 [ 2338.440960] Oops: 0000 [#1] SMP [ 2338.441025] CPU: 0 PID: 31977 Comm: stunnel Not tainted 4.14.2 #2 [ 2338.441098] Hardware name: Supermicro H8DGU/H8DGU, BIOS 3.5c=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 03/18/2016 [ 2338.441174] task: ffff98c4dc0ee4c0 task.stack: ffffb41460d84000 [ 2338.441248] RIP: 0010:xfrm_output_resume+0x211/0x460 [ 2338.441343] RSP: 0018:ffffb41460d87900 EFLAGS: 00010246 [ 2338.441413] RAX: 0000000000000000 RBX: ffff98c54090e2e0 RCX: 0000000000000000 [ 2338.441489] RDX: 000000000000001b RSI: 0000000000000000 RDI: 0000000000000000 [ 2338.441565] RBP: ffffb41460d87960 R08: ffffb41460d87780 R09: ffff98c54b94ec50 [ 2338.441640] R10: ffff98c4d6bd38cc R11: 0000000000000000 R12: ffffffff8cb0f740 [ 2338.441716] R13: ffff98c54b94e400 R14: ffff98c54b94e43c R15: ffffb41460d87b28 [ 2338.441792] FS:=C2=A0 00007ec52f91c700(0000) GS:ffff98c54fc00000(0000)= knlGS:0000000000000000 [ 2338.441871] CS:=C2=A0 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2338.441942] CR2: 0000000000000018 CR3: 000000100a5e6000 CR4: 00000000000406f0 [ 2338.442018] Call Trace: [ 2338.442083]=C2=A0 ? skb_checksum+0x3f/0x60 [ 2338.442227]=C2=A0 ? reqsk_fastopen_remove+0x160/0x160 [ 2338.442374]=C2=A0 ? skb_panic+0x70/0x70 [ 2338.442546]=C2=A0 xfrm_output+0x6a/0x110 [ 2338.442689]=C2=A0 xfrm6_output_finish+0x38/0x40 [ 2338.442834]=C2=A0 __xfrm6_output+0x57/0x1e0 [ 2338.442978]=C2=A0 xfrm6_output+0x9e/0x110 [ 2338.443121]=C2=A0 ? xfrm6_local_rxpmtu+0x90/0x90 [ 2338.443267]=C2=A0 ip6_xmit+0x297/0x550 [ 2338.443409]=C2=A0 ? ip6_dst_check+0xd7/0xf0 [ 2338.443555]=C2=A0 ? __ip6_append_data.isra.42+0xc00/0xc00 [ 2338.443705]=C2=A0 inet6_csk_xmit+0xaa/0x100 [ 2338.443880]=C2=A0 tcp_transmit_skb+0x57f/0xa00 [ 2338.444038]=C2=A0 tcp_write_xmit+0x1cd/0xf90 [ 2338.444183]=C2=A0 __tcp_push_pending_frames+0x3f/0xb0 [ 2338.444330]=C2=A0 tcp_push+0xf6/0x120 [ 2338.444471]=C2=A0 tcp_sendmsg_locked+0x672/0xe30 [ 2338.444617]=C2=A0 tcp_sendmsg+0x3a/0x60 [ 2338.444760]=C2=A0 inet_sendmsg+0x3b/0xb0 [ 2338.444904]=C2=A0 sock_sendmsg+0x48/0x60 [ 2338.445070]=C2=A0 sock_write_iter+0x8d/0x100 [ 2338.445216]=C2=A0 __vfs_write+0x154/0x1b0 [ 2338.445359]=C2=A0 vfs_write+0xcd/0x1c0 [ 2338.445501]=C2=A0 SyS_write+0x62/0xd0 [ 2338.445643]=C2=A0 entry_SYSCALL_64_fastpath+0x13/0x94 [ 2338.445789] RIP: 0033:0x7ec52eb3336d [ 2338.445930] RSP: 002b:00007ec52f91bd40 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 2338.446189] RAX: ffffffffffffffda RBX: 00007ec520011010 RCX: 00007ec52eb3336d [ 2338.446341] RDX: 000000000000001c RSI: 000056f01370b5a0 RDI: 0000000000000003 [ 2338.446495] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 2338.446647] R10: 0000000000000000 R11: 0000000000000293 R12: 000056f011c8010c [ 2338.446800] R13: 00007ec520010fc0 R14: 000056f013706da0 R15: 0000000000000047 [ 2338.446952] Code: f6 0f 8f b9 fe ff ff 31 f6 85 d2 0f 8f af fe ff ff e9 bb fe ff ff 85 f6 89 f0 0f 85 d6 fe ff ff 48 8b 7b 58 48 89 f8 48 83 e0 fe <4c> 8b 70 18 4d 85 f6 0f 84 a3 01 00 00 41 8b 86 80 00 00 00 85 [ 2338.447330] RIP: xfrm_output_resume+0x211/0x460 RSP: ffffb41460d87900 [ 2338.447505] CR2: 0000000000000018 [ 2338.447748] ---[ end trace ed1d8c14abc8e6d6 ]--- Tomas Charvat EXCELLO | Virusfree w: www.virusfree.cz e: tc@excello.cz On 11/27/2017 01:49 PM, Steffen Klassert wrote: > Cc netdev@vger.kernel.org, remove stable@vger.kernel.org from Cc. > > On Mon, Nov 27, 2017 at 01:36:50PM +0100, Tomas Charvat wrote: >> It was on gentoo-sources-4.14.2 (almost vanila), config is attached. > Could you please test with a vanilla v4.14.2 from kernel.org with > the referred patch? > > If the problem is still there, please try to disable: > > CONFIG_INET_ESP_OFFLOAD > CONFIG_INET6_ESP_OFFLOAD > > These are quite new, so might cause problems. > --1kCRXH9LiKcOcAMjndcCBwinj7cGPxlat-- --eSoL3922lvs5WHOPi3kXxQXUnKwBBEQCO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEBwBJa1RdHmHEEyO1Z1k3LPZxPHAFAlocQWQACgkQZ1k3LPZx PHCIfQ//UPCR2wMYEtAqRXiQzD+c+XlIhdqb2eNqZuGv3GK1kJER4Z6rlJIzGKug PZtPUQfps784cDp57+JvyAY7q0czmiqSLvVfCsLeozGUmiA5J6gTO5E1j7K9+ANf vDOuphC9M/3JvkfnezTaSyZn96odNvvnMAEX+wNyMol550Le1pEduGU1MDj0wnKO MqArrK7iqiCnKfs++4I4KnjXcq4+bRmA3px2aMrPsvyypO//So88ntjsyU4PtKdh FHxgjbpeVzV1XiyKRUIRvwJcNWHnE/iIivNht0sAv+ZbQEd8xf0fcAq5s/+Amjyc 3gpUJI/QUibLyfeFmRBiqW/7EvyQ9L6bRCtugrmtyqOru1Yn1zYUQqdyvVuJkwsC qxggzhvxCTaJo8gbAfC2nMN9TWC61gnC95ZsWfSX4SeLyK1bxpGVlpb9Nz5VoXzW 89gd2M9wlKLzDZrvzaeCc4gyer+CAzDG0uDOOQh/NGt3B2huysVZRk2JJ/TOFhH/ mwS9yzJDNOOSHO/84IlVMa9sV5Mp8ntANPcjb1iPmOnejMeJgBmiYbfSDQMpEh4Z 532gMkRATMyTXH8iYuZ9njdiQDKi1jvd3UmgetbY8I7emFEqhp5BnWEAbF5h/poV m4Y+W2S6bmPD4BVumCOSgFvxsydTtsC6Y6bIst7ALiuMPV1HmXs= =AFKU -----END PGP SIGNATURE----- --eSoL3922lvs5WHOPi3kXxQXUnKwBBEQCO--