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=-0.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 4F5BFC433E0 for ; Wed, 20 May 2020 00:17:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18418207E8 for ; Wed, 20 May 2020 00:17:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NhQxs9eS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727941AbgETARp (ORCPT ); Tue, 19 May 2020 20:17:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbgETARo (ORCPT ); Tue, 19 May 2020 20:17:44 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A44C061A0E for ; Tue, 19 May 2020 17:17:44 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id 23so202341oiq.8 for ; Tue, 19 May 2020 17:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:reply-to:mime-version :content-disposition:user-agent; bh=UYoOd8AM/Yp9BPVsKpI3c/42NYWwCXTzVEOS872/v9M=; b=NhQxs9eS4rNS9u07k9rTw0lPdsGT3Cd8KD9LK7FM8uiUVysCIkiHe9PHM/Hfv4rM0m zjWCeq+uKEvWrIRODPAGEChV3pLeenLLW6qyuBYWd4w4tPVJCzNOzDlm4Ye/J0Lsv5Cg K6fYgKd0vbQYQCLqVu7q7qXWY9MNvw9lvVI9W5DpfzgRrObjGi+4FqvASQS4+dgd2Fn0 SZVBai9qDo1m1PRJF2hJ9U/kdfNAvuxS571bqBRcowGZdUMOU+/IDfewAixtCliqwl+D oT99qyFVptdvzGqvjktE5C+1winW/ol3PJ2/baOyMK0YSxZUf3bCsJMQGQmMZ0D5f8yX bXbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:reply-to :mime-version:content-disposition:user-agent; bh=UYoOd8AM/Yp9BPVsKpI3c/42NYWwCXTzVEOS872/v9M=; b=l/7iir/0WFKawwQphInAOKupoZkKRCUCUyZnMwP5N6xTk4Cg+DeLO6IVbxb+MBTPma gvoW2N//xFxzqTTyt2noQNn5fFPGwgygep08nIKTlp68w+DFwXHt71EQm6BaxL4jG9nm h8HieW29ciGBfuiD239y4wZkm1/bEdwem+8SMUR4klytqPCGpp/91qP5QXPzvsMVklTO EKDZWSTumfluhmqoki9WVAuhr4U8NKpjEP97BjtaJVCv/M82bka8YZcOhWsZDWTcGhd3 vuNHQX3biA3UvXpJJjZ4vi99eU1MiTM990ZFFLzgQ2PVruzxDX1iX8jThCYFCAq2TuyO Yabw== X-Gm-Message-State: AOAM530o6VTbpe+AWSjyAf9Wy1ZbsKI6rset+qP4/P2YBi3YpnO9yAW8 h3soa1b5zmICpqhSrzjNXy0Irn1/7Vo= X-Google-Smtp-Source: ABdhPJzEzD9MuUo9vZ/Zt7s9fvu0XXiFzl1AUGyp+CU/THV+g/3B2brqixWlcVmJNdVt5cPcNGq3zQ== X-Received: by 2002:aca:4155:: with SMTP id o82mr1582551oia.16.1589933863109; Tue, 19 May 2020 17:17:43 -0700 (PDT) Received: from sreeram-MS-7B98 (cpe-173-174-83-82.austin.res.rr.com. [173.174.83.82]) by smtp.gmail.com with ESMTPSA id t22sm365558ooc.37.2020.05.19.17.17.42 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 May 2020 17:17:42 -0700 (PDT) From: Sreeram Veluthakkal X-Google-Original-From: Sreeram Veluthakkal Date: Tue, 19 May 2020 19:17:40 -0500 To: dwmw2@infradead.org, richard@nod.at, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: PROBLEM: JFFS2 Summary Oops - v4.19.16 Message-ID: <20200520001740.GA14040@sreeram-MS-7B98> Reply-To: srrmvlt+dell@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [1.] One line summary of the problem: JFFS2 Summary Oops - v4.19.16 [2.] Full description of the problem/report: Kernel oops in JFFS2 in 4.19.16 (tainted). I couldn't find any similar known problems or a way to recreate this bug. Appreciate any leads to help recreate/rootcause/fix this bug. There are two partitions mounted with jffs2. mtd:abc on /flash/mnt1 type jffs2 (rw,seclabel,noatime) /dev/mtdblock1 on /flash/mnt2 type jffs2 (rw,seclabel,relatime) /flash/mnt2 generally has more I/O than /flash/mnt1. After the system rebooted, I checked the disk usage of both paritions and they were under 40%. [3.] Keywords (i.e., modules, networking, kernel): JFFS2, filesystem, SPI [4.] Kernel information [4.1.] Kernel version (from /proc/version): Linux version 4.19.16 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Thu Mar 12 02:29:52 UTC 2020 [4.2.] Kernel .config file: [5.] Most recent kernel version which did not have the bug: [6.] Output of Oops.. message (if applicable) with symbolic information resolved (see Documentation/admin-guide/bug-hunting.rst) [ 513.760000] ------------[ cut here ]------------ [ 513.760000] kernel BUG at fs/jffs2/summary.c:862! [ 513.770000] Internal error: Oops - BUG: 0 [#1] SMP ARM [ 513.800000] CPU: 1 PID: 1976 Comm: jffs2_gcd_mtd10 Tainted: G O 4.19.16 #1 [ 513.810000] PC is at jffs2_sum_write_sumnode+0x88/0x54c [ 513.820000] LR is at jffs2_sum_write_sumnode+0x88/0x54c [ 513.820000] pc : [] lr : [] psr: 60000013 [ 513.830000] sp : c5d17c90 ip : 00000000 fp : c5d17d8c [ 513.830000] r10: 000000c4 r9 : 00000f84 r8 : c5c7829c [ 513.840000] r7 : c7ce5800 r6 : 00000fac r5 : c7ce5800 r4 : c6a22a80 [ 513.850000] r3 : 86281bc8 r2 : 86281bc8 r1 : ccb2e2e8 r0 : 00000045 [ 513.850000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 513.860000] Control: 18c5387d Table: 0ecb804a DAC: 00000051 [ 513.870000] Process jffs2_gcd_mtd10 (pid: 1976, stack limit = 0xa8ed1488) [ 513.870000] Stack: (0xc5d17c90 to 0xc5d18000) [ 513.880000] 7c80: 60000013 00000001 c5d17cb0 b08880ec [ 513.880000] 7ca0: c7ce5940 c7ce5918 00000000 b0d054c8 00000000 00000000 00000000 c5d17cbc [ 513.890000] 7cc0: c5d17cbc 86281bc8 a0000013 c7ce5960 c7ce5800 c7eb6ba0 00000002 000005d6 [ 513.900000] 7ce0: 00000000 86281bc8 c79621f8 c7ce5800 c5c7829c 00000fac c7ce5800 b0a333bc [ 513.910000] 7d00: 00000f84 000000c4 c5d17d8c b03b5068 00001f40 b03b73e4 00000044 000000c4 [ 513.920000] 7d20: c5d17de8 c5c9cb00 c7ce5918 000000c4 c7ce5800 00000f84 c5d17d8c c7eb6ba0 [ 513.930000] 7d40: c7ce5800 b03b56f0 c5c9cb00 c796221c c7ce5800 00000000 00000f84 c5cff4e0 [ 513.930000] 7d60: c7eb6ba0 b03bafe4 c7ce5960 ffffe000 c79621f8 00000008 b0142b98 00000001 [ 513.940000] 7d80: b0d054c8 b03b7720 b0d05340 000000c4 c5d17de8 86281bc8 c7962238 c5c9cb00 [ 513.950000] 7da0: c796221c c6a2b0f0 00000000 c5cff4e0 00001000 c79621f8 c7ce5800 b03bb9ec [ 513.960000] 7dc0: c7962238 b0d054c8 c79621f8 b08880d4 00001f40 b03be798 c5c799f8 000000c4 [ 513.970000] 7de0: b0d054c8 c7ce5800 e0021985 00000d10 d440f0bb 00000008 000005d6 000081fc [ 513.970000] 7e00: 03d90000 00001f40 5e9af375 5e9af375 5e9af375 00000334 00000ccc 00000ccc [ 513.980000] 7e20: 00000000 f0504a5b a929cd16 86281bc8 c7ce5800 b0d054c8 c7ce5800 00000008 [ 513.990000] 7e40: 00000000 c5cff4e0 00000008 b03bec90 c7ce5918 86281bc8 00000000 c7ce5800 [ 514.000000] 7e60: c7ce5918 b0d054c8 00000000 ffffffb3 c5c799f8 c5cff4e0 c79621f8 b03baeb0 [ 514.010000] 7e80: c695dcf0 b012701c c7ce5960 c7ce584c 0000000c 00000001 c695d800 b0888104 [ 514.020000] 7ea0: b0d054c8 c5d17edc 86281bc8 86281bc8 b0d054c8 c695d800 c7ce5800 c7ce5918 [ 514.020000] 7ec0: c5d16000 ffffe000 00000504 00000001 c6b24228 b03bdac0 b0d03900 00000001 [ 514.030000] 7ee0: 00000000 00000001 00000000 00000080 00000000 00000000 00000000 00000000 [ 514.040000] 7f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 514.050000] 7f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 514.060000] 7f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 514.060000] 7f60: 00000000 86281bc8 c6b24200 c9da5d80 00000000 c5d16000 c7ce5800 b03bd8ec [ 514.070000] 7f80: c7f41dd8 b01392ec 00000099 c9da5d80 b013919c 00000000 00000000 00000000 [ 514.080000] 7fa0: 00000000 00000000 00000000 b01010e8 00000000 00000000 00000000 00000000 [ 514.090000] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 514.100000] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 [ 514.110000] [] (jffs2_sum_write_sumnode) from [] (jffs2_do_reserve_space+0x84/0x3e0) [ 514.110000] [] (jffs2_do_reserve_space) from [] (jffs2_reserve_space_gc+0x40/0x80) [ 514.120000] [] (jffs2_reserve_space_gc) from [] (jffs2_garbage_collect_pristine+0x64/0x400) [ 514.130000] [] (jffs2_garbage_collect_pristine) from [] (jffs2_garbage_collect_live+0x4a0/0x10f0) [ 514.140000] [] (jffs2_garbage_collect_live) from [] (jffs2_garbage_collect_pass+0x7d4/0x8a4) [ 514.150000] [] (jffs2_garbage_collect_pass) from [] (jffs2_garbage_collect_thread+0x1d4/0x20c) [ 514.170000] [] (jffs2_garbage_collect_thread) from [] (kthread+0x150/0x15c) [ 514.170000] [] (kthread) from [] (ret_from_fork+0x14/0x2c) [ 514.180000] Exception stack(0xc5d17fb0 to 0xc5d17ff8) [ 514.190000] 7fa0: 00000000 00000000 00000000 00000000 [ 514.190000] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 514.200000] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 514.210000] Code: e34b00a3 e593300c e59313a8 ebf69ae1 (e7f001f2) [ 514.220000] ---[ end trace d60044e37afc2dfd ]--- [ 514.230000] Kernel panic - not syncing: Fatal exception [ 514.240000] CPU0: stopping [ 514.240000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D O 4.19.16 #1 [ 514.240000] [] (unwind_backtrace) from [] (show_stack+0x18/0x1c) [ 514.240000] [] (show_stack) from [] (dump_stack+0x88/0x9c) [ 514.240000] [] (dump_stack) from [] (handle_IPI+0x1d8/0x370) [ 514.240000] [] (handle_IPI) from [] (gic_handle_irq+0x7c/0x80) [ 514.240000] [] (gic_handle_irq) from [] (__irq_svc+0x6c/0x90) [ 514.240000] Exception stack(0xb0d01f18 to 0xb0d01f60) [ 514.240000] 1f00: 00000000 002ba614 [ 514.240000] 1f20: ccb21300 b0112560 00000000 ffffe000 b0d054e8 b0d05530 00000001 00000000 [ 514.240000] 1f40: b0c87968 b0d054c8 00000000 b0d01f68 b01043f0 b01043f4 600b0013 ffffffff [ 514.240000] [] (__irq_svc) from [] (arch_cpu_idle+0x3c/0x40) [ 514.240000] [] (arch_cpu_idle) from [] (do_idle+0x104/0x200) [ 514.240000] [] (do_idle) from [] (cpu_startup_entry+0x20/0x24) [ 514.240000] [] (cpu_startup_entry) from [] (start_kernel+0x468/0x490) [ 514.240000] Rebooting in 90 seconds.. [7.] A small shell script or example program which triggers the problem (if possible) [8.] Environment [8.1.] Software (add the output of the ver_linux script here) Linux 4.19.16 #1 SMP Thu Mar 12 02:29:52 UTC 2020 armv7l armv7l armv7l GNU/Linux Util-linux 226532 Mount 226532 Module-init-tools 25 E2fsprogs 1.43.8 Nfs-utils 2.1.1 Linux C Library 2.27 Linux C++ Library 6.0.24 Procps 3.3.12 Kbd 2.0.4 Console-tools 2.0.4 Sh-utils 8.29 Udev 237 Thanks Sreeram