Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1805916imm; Thu, 14 Jun 2018 04:16:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJF5YJzyOB2CSOuk/R1Jyt8gIXBuKbAITmCM7FEF71hTe+BmQO6EJu+HDrgacVPbMLmetWF X-Received: by 2002:a17:902:2864:: with SMTP id e91-v6mr2509023plb.240.1528975011516; Thu, 14 Jun 2018 04:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528975011; cv=none; d=google.com; s=arc-20160816; b=gP2ejhdv/pmSF9bSkWh5eX+8hCyVO1n7Gb1t6QWHuhaQHaZKDVBkmq4YmngVn8TvSK PsilztConqaPEcIqhg/XJksg+MMmDkQAwps7VYcdGEPU9a6DUSJEcLCTUx6Wuaflc/7+ YCsqyCspxEeLq5TNggLkby/HFNUGwG1UxvQPp6BEC3MUKESddVuF89Eqz5evsNGidjzH T6N/C2zkmU+j2Y4jg9jhsxdLT0QrQk3BEG/u0yrV4nnzMbWs7bA2nJa/fFuzLw11sQqh KQEVfPq0CNbDp82AvIwk6PUowAypUXaCts0LBApDNuZTG5A6/HxeSTxEvP162/rEldeI ag6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=ORwrH8lRQBIRGUV1HLVFHNeOJihIU9PFC8TgUzNQmLw=; b=VRhtwZeM/rxdR+vn+5oadhq/eIPaM4btHEKE9T3Ck8NQG3NfSj8n1pOh1SHJ6rlW9l kO3SMsvSa5elEObADKbY4z+Z1lGsFGRBg1Jm4XzKOPRsI4R0y5eDDjyNuOzPvN+CPOEM ubIgkpF+CMZAf+CwSRxty/5tbLVJ6BBCkGAPakQm9sOGWCAeHv/NIJ5clCWTT6jNW3zc lr8wfjYZNcNMLENJyCZWEnbWBxhkmCQWUM6G+/RDmACc+9bUoA4GQx/S6JW6oljZOTDc 9wLH0GgFdt1DONoLeGRskwLE/gKcjV2FlM00YkDoh/Bq3BFSVKue3c6q5rioV8NKADUK 66WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DuJT75Wc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f28-v6si5297189pfk.107.2018.06.14.04.16.37; Thu, 14 Jun 2018 04:16:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DuJT75Wc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935116AbeFNLQP (ORCPT + 99 others); Thu, 14 Jun 2018 07:16:15 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35146 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754869AbeFNLQN (ORCPT ); Thu, 14 Jun 2018 07:16:13 -0400 Received: by mail-qk0-f194.google.com with SMTP id d130-v6so3353129qkc.2; Thu, 14 Jun 2018 04:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ORwrH8lRQBIRGUV1HLVFHNeOJihIU9PFC8TgUzNQmLw=; b=DuJT75WcDoHPmQlbhyc0OqQrg5YIa6WM60nUN1k7fVr+GGY0Wkxyqn3Va04l+2ysxT y/9sY0VgTouw6tVjwXIh5ncWrMomHb66atj2U/oPzJibzU4YqYkUA35p2VZg0lOkPeBB pjQoDfl1EuKmH11oA/0RPF3cqx2tzLrft3wY3I0GzYkrpg12Z20Ek6rnIXPNf18ufOkb ALMyKj0RGLtvXaCxrzH2zoLe2WJfsmoNxn6q4GOv8CdRpZLh2AAkM92UP+nqe+uiNvkM JERx94X8dyTty3LbCdexi6Bdtu5l7REGdy2oJCdU5UXXrTxqRoP0Jv805NG8CLgFZY0F 9m6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ORwrH8lRQBIRGUV1HLVFHNeOJihIU9PFC8TgUzNQmLw=; b=GifmfXHqK8UkRF5R3HiSetPR6B+ktCdFu8uC2wezXOKm5+FDpqVgY4rORCWorQ/y/I BRzxf2pCHHaHlgdAuIyhTzgIHzoY3kt0F4tXQKUxA9sChSzzi8qtPmpsL7btAfxc5mC/ XcViEviTV2/cSPHTwbPmRDBUlG3XS48PolUzIhY9vuWo+zPeVaJdgfm3qtUlv/yn8St5 IrHn2VowDCD+0YGcRipBDtlbZRYE9QWnP8kZDbFvNuATPJIUMmKKl10Uh7EGzla8tw2i xV+HglY1ZC3ONIMpefJwM7O2oJXjayNMILK1Fu7L15zMY4qcWQQXjHfCJrjctp1goQRJ nszA== X-Gm-Message-State: APt69E0fBWo3rDGW5mTUkfeVixJSB9P4b4YLRzhOPTpJ26gAU5z1WW74 I+FXqNVoUGsG3STixEP65uKGA46hBs0AG+Rg7aI= X-Received: by 2002:a37:4142:: with SMTP id o63-v6mr1659659qka.287.1528974972833; Thu, 14 Jun 2018 04:16:12 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:22b2:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 04:15:32 -0700 (PDT) In-Reply-To: References: <20180612083435.7f7k4exergraaa2u@gauss3.secunet.de> From: William Tu Date: Thu, 14 Jun 2018 04:15:32 -0700 Message-ID: Subject: Re: mainline: x86_64: kernel panic: RIP: 0010:__xfrm_policy_check+0xcb/0x690 To: Anders Roxell Cc: Steffen Klassert , Naresh Kamboju , Networking , "David S. Miller" , herbert@gondor.apana.org.au, "open list:KERNEL SELFTEST FRAMEWORK" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 5:09 AM, Anders Roxell w= rote: > On 12 June 2018 at 10:34, Steffen Klassert = wrote: >> On Mon, Jun 11, 2018 at 10:11:46PM +0530, Naresh Kamboju wrote: >>> Kernel panic on x86_64 machine running mainline 4.17.0 kernel while tes= ting >>> selftests bpf test_tunnel.sh test caused this kernel panic. >>> I have noticed this kernel panic start happening from >>> 4.17.0-rc7-next-20180529 and still happening on 4.17.0-next-20180608. >>> >>> [ 213.638287] BUG: unable to handle kernel NULL pointer dereference >>> at 0000000000000008 >>> ++[ ip xfrm poli 213.674036] PGD 0 P4D 0 >>> [ 213.674118] audit: type=3D1327 audit(1528917683.623:7): >>> proctitle=3D6970007866726D00706F6C69637900616464007372630031302E312E312= E3130302F3332006473740031302E312E312E3230302F33320064697200696E00746D706C00= 737263003137322E31362E312E31303000647374003137322E31362E312E3230300070726F7= 46F006573700072657169640031006D6F64650074756E6E >>> [ 213.677950] Oops: 0000 [#1] SMP PTI >>> cy[ add src 10.1. 213.677952] CPU: 2 PID: 0 Comm: swapper/2 Tainted: >>> G W 4.17.0-next-20180608 #1 >>> [ 213.677953] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS >>> 2.0b 07/27/2017 >>> [ 213.726998] RIP: 0010:__xfrm_policy_check+0xcb/0x690 >>> [ 213.731962] Code: 80 3d 0a d8 f1 00 00 0f 84 c1 02 00 00 4c 8b 25 >>> 2b af f4 00 e8 66 a6 6a ff 85 c0 74 0d 80 3d eb d7 f1 00 00 0f 84 d5 >>> 02 00 00 <49> 8b 44 24 08 48 85 c0 74 0c 48 8d b5 78 ff ff ff 4c 89 ff >>> ff d0 >> >> This looks like a bug that I've seen already. If it is what I think, >> then commit 2c205dd3981f ("netfilter: add struct nf_nat_hook and use >> it") introduced this bug. >> >> There was already a fix for this on the netdev list, but >> I don't know the current status of that patch: >> >> https://patchwork.ozlabs.org/patch/921387/ > > Hi, I applied the patch and ran bpf/test_tunnel.sh and I I couldn't > see any crash. > However, the script never returned (I had to Ctrl+c to get back), any ide= as ? > See log from the test below. > > Cheers, > Anders > > [0;92mPASS: xfrm tunnel[0m Hi Anders, I think it should return 0 if you reach the above line. The console output looks pretty messy due to using 'tee' I will send a patch to make the output more readable. Thanks William