From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,LOTS_OF_MONEY, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12A08C17442 for ; Wed, 13 Nov 2019 14:50:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC8D2222C9 for ; Wed, 13 Nov 2019 14:50:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MHPCzN4D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727746AbfKMOut (ORCPT ); Wed, 13 Nov 2019 09:50:49 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:35568 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727112AbfKMOus (ORCPT ); Wed, 13 Nov 2019 09:50:48 -0500 Received: by mail-io1-f67.google.com with SMTP id x21so2851116ior.2 for ; Wed, 13 Nov 2019 06:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=erPNq86gxLjcpHmdcyHBxxW4eq31jVZo1FvjBeVDdC0=; b=MHPCzN4DwTVANH/T1+0jtrYEXxSdW4jnu9l924evxtkLR7/RyHmbvGFkYtf1MzTVyo sXRBlpTru2qO1BJop/3QJlSCK0rgyAtCjVWfW9h4hSUW2GG6y9V3JdOAFcVB3oauateH jRStWZJ4TuiqUOuFbLI/rqPg2oD+VcFAHLQuCFB41fPHYUa5olL2Lyx6FKTM/lEtd7QU +kV69bQRvY/CuyNH4twINHtfj6mtT2dQ0OmtrXQjddakuyUxqrR4Sv6q2HFoieVhnF11 j18PJzUDw0YY0+NLygm0ak7CFBZGFi8MVekgHThUSl+LHts4doG7m1YicV1BDJ2zXSBD xA1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=erPNq86gxLjcpHmdcyHBxxW4eq31jVZo1FvjBeVDdC0=; b=l144lzMBN9liIP8rMy79UQTneRUPLC5dMX+aax1askhtWkaEHjrcHkzT2UD3lDSJlO 7esB/St1vAyMyFZ1NPppzdJyLvGZqfIar4L40FHxCRi3L41z0aOhQJFlP+7c7rGPQzlX v0xMffEn1XlkdSj8acSD4RMBhRBt5f6YQsthE7BgcrHxU5M7pDQOhBBIYsFGqSLr0EH6 0eBliwQ3J+K65qeK9DZuJchCBdZwhVQjNhjmUXW88zDcgZmT7Ha+PkY2yjjBWEP/52Uw /YKr+qm0t2RoAVtXSoPuyzb0gjteKObe0MpZTZC/GWOsfecxsjrcCLiVXfcoNND09M2R MoaA== X-Gm-Message-State: APjAAAUnoxOP0AfXwVBqHqkxyfN2SehQmancjtK0ImNXQ6QE5+pQf4mO KnCoWg4LWox/MtnicrGwvHlMrO2S3w/Fq2x7zTGDKu0+4pE= X-Google-Smtp-Source: APXvYqw0n5pXVsnz/zpkJ9ruR+QBXH+SlBvdBhsg+jA1f87+XlvLCnxG/p53yVB34+8o46K5lSzuRCbQ/twhPTUgKxw= X-Received: by 2002:a6b:7307:: with SMTP id e7mr3380073ioh.218.1573656647363; Wed, 13 Nov 2019 06:50:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eric Dumazet Date: Wed, 13 Nov 2019 06:50:36 -0800 Message-ID: Subject: Re: crash since commit "net/flow_dissector: switch to siphash" To: Koen Vandeputte Cc: netdev , Greg KH Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Nov 13, 2019 at 3:52 AM Koen Vandeputte wrote: > > Hi Eric, > > I'm currently testing kernel 4.14.153 bump for OpenWrt and noticed splat > below on my testing boards. > They all reboot continuously nearly immediately when linked. > > It feels like it's tied to a commit of yours [1] Have you tried current upstream kernels ? Is is a backport issue, or a bug in original commit ? Can you give us gcc version ? Can you check what SIPHASH_ALIGNMENT value is at compile time ? > > Any idea? > > If you need more info, please let me know. > > Thanks, > > Koen > > > [1]: > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.14.154&id=a9de6f42e945cdb24b59c7ab7ebad1eba6cb5875 > > > [ 48.269789] wlan0: Trigger new scan to find an IBSS to join > [ 48.680754] wlan0: Trigger new scan to find an IBSS to join > [ 49.041907] wlan0: Trigger new scan to find an IBSS to join > [ 49.079668] wlan0: Trigger new scan to find an IBSS to join > [ 49.149738] wlan0: Selected IBSS BSSID 16:5b:94:39:cb:5f based on > configured SSID > [ 49.199633] Unhandled kernel unaligned access[#1]: > [ 49.204505] CPU: 0 PID: 1634 Comm: wpa_supplicant Tainted: G > W 4.14.153 #0 > [ 49.212619] task: 87d14580 task.stack: 860c6000 > [ 49.217209] $ 0 : 00000000 77ea0b33 00000000 ceb5840c > [ 49.222515] $ 4 : 860c7a78 00000014 67aae3bf 00000000 > [ 49.227821] $ 8 : 00000000 8040c9b0 87d1e460 0000d000 > [ 49.233128] $12 : 74650000 00000000 00000001 00000002 > [ 49.238435] $16 : 0000fffe 804f0000 67aae3bf 8766e5a4 > [ 49.243741] $20 : 00000000 804f0000 804f3978 87d1e054 > [ 49.249048] $24 : 00000002 00000003 > [ 49.254353] $28 : 860c6000 860c7a30 00000000 8032cff8 > [ 49.259661] Hi : 00000050 > [ 49.262573] Lo : 00000002 > [ 49.265500] epc : 804061a4 __siphash_aligned+0x24/0x730 > [ 49.270985] ra : 8032cff8 skb_get_hash_perturb+0x160/0x1a8 > [ 49.276803] Status: 1100dc03 KERNEL EXL IE > [ 49.281045] Cause : 00800010 (ExcCode 04) > [ 49.285110] BadVA : 67aae3c7 > [ 49.288024] PrId : 00019750 (MIPS 74Kc) > [ 49.291990] Modules linked in: mbt ath9k ath9k_common qcserial pppoe > ppp_async option cdc_mbim ath9k_hw ath10k_pci ath10k_core ath usb_wwan > sierra_net sierra rndis_host qmi_wwan pppox ppp_generic mac80211 > iptable_nat iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE > ip_tables huawei_cdc_ncm ftdi_sio cfg80211 cdc_subset cdc_ncm cdc_ether > xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_lim2 > [ 49.363914] cls_tcindex cls_route cls_matchall cls_fw cls_flow > cls_basic act_skbedit act_mirred i2c_dev ledtrig_usbport cryptodev msdos > bonding ip_gre gre dummy udp_tunnel ip_tunnel tun vfat fat nls_utf8 > nls_iso8859_1 nls_cp437 authenc ehci_platform sd_mod scsi_mod ehci_hcd > gpio_button_hotplug ext4 mbcache jbd2 usbcore nls_base usb_common ptp > pps_core mii aead crypto_null cryptomgr crc32c_generic crypto_hash > [ 49.400738] Process wpa_supplicant (pid: 1634, threadinfo=860c6000, > task=87d14580, tls=77f6defc) > [ 49.409638] Stack : 67aae3bf 0000fffe 804f0000 67aae3bf 8766e5a4 > 00000000 804f0000 804f3978 > [ 49.418121] 00000056 80580000 879b84c8 879cb088 00000000 > 00000000 00000085 00000004 > [ 49.426604] 00220000 00000000 888e0000 00000000 00000000 > 00000000 00000000 00000000 > [ 49.435087] 00000000 00000000 00000000 00000000 00000000 > 00000000 00000000 00000000 > [ 49.443570] 860c7b68 ceb5840c 86cb0bc0 860c2300 8766e508 > 86d2b604 879cb088 8793a750 > [ 49.452053] ... > [ 49.454537] Call Trace: > [ 49.457014] [<804061a4>] __siphash_aligned+0x24/0x730 > [ 49.462146] [<8032cff8>] skb_get_hash_perturb+0x160/0x1a8 > [ 49.467737] [<86d2b604>] ieee80211_reserve_tid+0x26c/0xeb8 [mac80211] > [ 49.474300] Code: afb2000c afb10008 afb00004 <8cd40008> 8cc90000 > 3c136c79 3c02646f 3c07736f 24427261 > [ 49.484200] > [ 49.485774] ---[ end trace ec8947d373843bf7 ]--- > [ 49.492228] Kernel panic - not syncing: Fatal exception in interrupt > [ 49.499642] Rebooting in 3 seconds.. >