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=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS 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 4CB3FC43381 for ; Thu, 21 Mar 2019 12:48:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 265AC218D4 for ; Thu, 21 Mar 2019 12:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728172AbfCUMso convert rfc822-to-8bit (ORCPT ); Thu, 21 Mar 2019 08:48:44 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:34438 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727959AbfCUMso (ORCPT ); Thu, 21 Mar 2019 08:48:44 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id B0988609B26F; Thu, 21 Mar 2019 13:48:41 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KSrBmZ7Wph45; Thu, 21 Mar 2019 13:48:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 18E08608A397; Thu, 21 Mar 2019 13:48:41 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id q2xZYHhJpstt; Thu, 21 Mar 2019 13:48:41 +0100 (CET) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id 632BC609B26F; Thu, 21 Mar 2019 13:48:40 +0100 (CET) From: Richard Weinberger To: David Howells Cc: viro@zeniv.linux.org.uk, linux-block@vger.kernel.org, squashfs-devel@lists.sourceforge.net, Marek Vasut , Brian Norris , Nicolas Pitre , Boris Brezillon , linux-mtd@lists.infradead.org, David Woodhouse , Phillip Lougher , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/6] Convert mount_single-using filesystems to fs_context Date: Thu, 21 Mar 2019 13:48:39 +0100 Message-ID: <3463221.D14WHduXq3@blindfold> In-Reply-To: <155316902426.29884.2476392753144421312.stgit@warthog.procyon.org.uk> References: <155316902426.29884.2476392753144421312.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Am Donnerstag, 21. März 2019, 12:50:24 CET schrieb David Howells: > > Hi Al, > > Here's a set of patches that convert romfs, cramfs, jffs2 and squashfs to > use the new fs_context struct and replace mount_mtd(). They have > prerequisite commits (such as replacing mount_bdev()) that can be found in > the branch detailed below. > > (1) Provide a replacement for mount_mtd() that takes an fs_context to > specify the parameters. > > I also put an mtd device pointer into the fs_context struct for use in > the sget_fc() test and set functions plus a destructor because > put_fs_context() can't reach into the mtd module. > > (2) Convert romfs. > > (3) Convert cramfs. > > (4) Convert jffs2. > > (5) Get rid of the now-obsolete mount_mtd() function. > > (6) Convert squashfs. > > These can be found in the following branch: > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=mount-api-viro Hmm, I pulled this into 5.1-rc1 to test jffs2 but it oopes already while booting: [ 5.999847] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068 [ 6.002273] #PF error: [normal kernel read fault] [ 6.002912] PGD 0 P4D 0 [ 6.003241] Oops: 0000 [#1] SMP PTI [ 6.003690] CPU: 3 PID: 1221 Comm: mount Not tainted 5.1.0-rc1+ #372 [ 6.004494] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.11.0-0-g63451fc-prebuilt.qemu-project.org 04/01/2014 [ 6.004504] RIP: 0010:reconfigure_super+0x17/0x1e0 [ 6.004505] Code: 00 01 75 83 48 89 df e8 c7 e5 ff ff e9 76 ff ff ff 66 90 41 56 41 55 41 54 55 53 f7 47 68 ae ff 7f fd 48 8b 47 28 44 8b 77 64 <48> 8b 68 68 0f 85 a2 01 00 00 8b 95 38 02 00 00 85 d2 0f 85 89 01 [ 6.004506] RSP: 0018:ffffb43cc0dafdf0 EFLAGS: 00010246 [ 6.004507] RAX: 0000000000000000 RBX: ffff9d21b925cb00 RCX: ffff9d21b973009c [ 6.004508] RDX: 0000000000000001 RSI: ffff9d21b925cb00 RDI: ffff9d21b925cb00 [ 6.004508] RBP: ffff9d21b9730000 R08: 0000000000200000 R09: 0000000000000000 [ 6.004509] R10: ffffb43cc0dafe78 R11: 61c8864680b583eb R12: ffff9d21ba0cd000 [ 6.004509] R13: ffffffff8d95a460 R14: 0000000000000000 R15: 0000000000000020 [ 6.004512] FS: 00007fad96cea480(0000) GS:ffff9d21bab80000(0000) knlGS:0000000000000000 [ 6.004514] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6.004515] CR2: 0000000000000068 CR3: 0000000178dec000 CR4: 00000000000006e0 [ 6.004516] Call Trace: [ 6.004530] ? debugfs_get_inode+0x50/0x50 [ 6.022494] vfs_get_super+0x9c/0xe0 [ 6.022973] vfs_get_tree+0x38/0xf0 [ 6.023451] do_mount+0x728/0xd20 [ 6.023905] ? _copy_from_user+0x37/0x60 [ 6.024436] ? memdup_user+0x39/0x60 [ 6.024917] ksys_mount+0x7b/0xd0 [ 6.025368] __x64_sys_mount+0x1c/0x20 [ 6.025876] do_syscall_64+0x43/0xf0 [ 6.026375] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Do I miss some other fix? Thanks, //richard