Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8271716imu; Tue, 4 Dec 2018 05:55:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/UR1siGpX3IBIAkcHyX5p8awUHjc7ChX4fvZX9xV9XAs4oUsriSUy6eRUQB4p6V2S2lnMGa X-Received: by 2002:a17:902:3064:: with SMTP id u91mr19793675plb.325.1543931722965; Tue, 04 Dec 2018 05:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543931722; cv=none; d=google.com; s=arc-20160816; b=RLxiPJH00lgwyCPflcxvunejLIJz9HkCwutYTtpVSy5EBfBkrOSLHix/SeKXjyHF7/ c9z8vgH6ZUxc8kd/XWx21AaPhxqU9gqNfrWp+LKPe2EteQS3N/IQrQlPQV2Zyw2Pszyk 88LpQTbvcDDrB7Mqpl9NVZuEUiLQaFcuY7vtWw/9OPIqNtalUhAZzB0aEepFTWmLV3QZ t7I9VWMDC/e+bfguc/RaXuJtXFrTqw/i5yQwFs8xhgvnOdpGRZ4/1dX+RC5VdyoY0Eih vFJtlV2U4zrs+lz5kyu5HpDZPfLWVDK5H5N+543RBGzAGgnkeHp9ylR/aFRO4cPENFXc lHzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version; bh=eKdG+iTjuP1kZgJ6VlVsCsbtPXtiOHTWrPRmZYvCpb8=; b=WGCGKtHP2SsMDsgKuXN66NsOu1L9O8nZ0POz8+x7pUA1ohVAqjWhyYnm3KdUETWEuv D/IXhme/81PB1CDhklw844ijziCE212Rk0Pew1pjc9uP9PuAeoedOdq8y8+62hXiRjbX 3a218Nn9ErG41UDkHF9zsf+42PLPI6l5Ythgbox1koJAs6iGspCHNRvGzMlyTgPO4RT0 NleuaOOaZMOPKFumaBo13aysKuBetLH69NuSuPYRJsmeQSDlLbngmzahlPjdF5Ur1Ixq QWUZErm6c0+qIXjnNJMOrQ5CcXA78a5/+T7hrn/FeO7bMe5R5Gbrs/5hUiTwNV9ShTVJ aQOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si14549380pgi.575.2018.12.04.05.55.06; Tue, 04 Dec 2018 05:55:22 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726415AbeLDNxU (ORCPT + 99 others); Tue, 4 Dec 2018 08:53:20 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:41197 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbeLDNxU (ORCPT ); Tue, 4 Dec 2018 08:53:20 -0500 Received: by mail-vs1-f68.google.com with SMTP id t17so9814888vsc.8; Tue, 04 Dec 2018 05:53:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=eKdG+iTjuP1kZgJ6VlVsCsbtPXtiOHTWrPRmZYvCpb8=; b=r9wbXzE7pF9o+wKf4dOFFBx3+kdknDJdG5CMwl9dOpbYrOUHuK6zYIPO2bvQJWhv06 +/rvDtYfcunotEi4dNNIndBRUcjOAod9juI4G1Up7KoksodBXIF9A61GPSLaF+qVovst dYLTSY9SZPnMyQWw8WGUw10czKdE/fGXCEAEIY7ih2uFvjeDWsstZCdyyk8uKi4MDU/i fVDPPGrNNFYpQv8/1KQfU2mC8jLcTPj9qgJEdU+49BED7LsUv55W6DvEGvucZiPeZ99P EEBX6IFQjJgV+rhr7YSTzlw7/Z64sRVCBQZZNg5eC/Vko7YlkaODor7SezT+REt6ZEM9 igfA== X-Gm-Message-State: AA+aEWao7Fg2ubnfSL5HpZB14SIJbeJmfa8IUS7pK4qOZWLJD7V9Mhz3 +jn6gnVB4tg8cATt1xOsYkXXIR8cMSGpXyRHChk= X-Received: by 2002:a67:f43:: with SMTP id 64mr8946495vsp.166.1543931599318; Tue, 04 Dec 2018 05:53:19 -0800 (PST) MIME-Version: 1.0 From: Geert Uytterhoeven Date: Tue, 4 Dec 2018 14:53:07 +0100 Message-ID: Subject: NFS/TCP crashes on MIPS/RBTX4927 in v4.20-rcX (bisected) To: Trond Myklebust Cc: Atsushi Nemoto , "open list:NFS, SUNRPC, AND..." , linux-mips@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Trond, Recently, I've upgraded my NFS server to Ubuntu 18.04LTS. Apparently the NFS server in that release dropped support for NFS over UDP, hence I appended ",tcp,v3" to all my nfsroot kernel command line parameters. This works fine on my arm/arm64 development boards, but causes a crash on RBTX4927: VFS: Mounted root (nfs filesystem) on device 0:13. devtmpfs: mounted Freeing prom memory: 1020k freed Freeing unused kernel memory: 208K This architecture does not have kernel memory protection. Run /sbin/init as init process do_page_fault(): sending SIGSEGV to init for invalid read access from 57e7e414 epc = 77f9e188 in ld-2.19.so[77f9c000+22000] ra = 77f9d91c in ld-2.19.so[77f9c000+22000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b I found similar crashes in a report from 2006, but of course the code has changed too much to apply the solution proposed there (https://www.linux-mips.org/archives/linux-mips/2006-09/msg00169.html). Userland is Debian 8 (the last release supporting "old" MIPS). My kernel is based on v4.20.0-rc5, but the issue happens with v4.20-rc1, too. However, I noticed it works in v4.19! Hence I've bisected this, to commit 277e4ab7d530bf28 ("SUNRPC: Simplify TCP receive code by switching to using iterators"). Dropping the ",tcp" part from the nfsroot parameter also fixes the issue. Given RBTX4926 is little endian, just like my arm/arm64 boards, it's probably not an endianness issue. Sparse didn't show anything suspicious before/after the guilty commit. Do you have a clue? Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds