From: Christian Brauner <brauner@kernel.org>
To: Alexander Mikhalitsyn <alexander@mihalicyn.com>
Cc: Chandan Babu R <chandanbabu@kernel.org>,
linux-next@vger.kernel.org, mszeredi@redhat.com
Subject: Re: [BUG REPORT] linux-next/fs-next released on 6th September fails to boot
Date: Mon, 9 Sep 2024 13:00:22 +0200 [thread overview]
Message-ID: <20240909-unwillig-irreal-26bd9fa085c6@brauner> (raw)
In-Reply-To: <CAJqdLrq+pScjJdnrp2jAZMqKEq-SyEjsBdb-=9QAFN6=h1=S5w@mail.gmail.com>
On Mon, Sep 09, 2024 at 12:55:53PM GMT, Alexander Mikhalitsyn wrote:
> Am Mo., 9. Sept. 2024 um 12:40 Uhr schrieb Christian Brauner
> <brauner@kernel.org>:
> >
> > On Mon, Sep 09, 2024 at 01:53:24PM GMT, Chandan Babu R wrote:
> > > Hi,
> > >
> > > linux-next/fs-next released on 6th September is failing to boot on a x86
> > > guest,
> > >
> > > [ 42.659136] Oops: general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN NOPTI
> > > [ 42.660501] fbcon: Taking over console
> > > [ 42.660930] KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
> > > [ 42.661752] CPU: 1 UID: 0 PID: 1589 Comm: dtprobed Not tainted 6.11.0-rc6+ #1
> > > [ 42.662565] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.6.6 08/22/2023
> > > [ 42.663472] RIP: 0010:fuse_get_req+0x36b/0x990 [fuse]
> > > [ 42.664046] Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 8c 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6d 08 48 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 4d 05 00 00 f6 45 59 20 0f 85 06 03 00 00 48 83
> > > [ 42.666945] RSP: 0018:ffffc900009a7730 EFLAGS: 00010212
> > > [ 42.668837] RAX: dffffc0000000000 RBX: 1ffff92000134eed RCX: ffffffffc20dec9a
> > > [ 42.670122] RDX: 000000000000000b RSI: 0000000000000008 RDI: 0000000000000058
> > > [ 42.672154] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1022110172
> > > [ 42.672160] R10: ffff888110880b97 R11: ffffc900009a737a R12: 0000000000000001
> > > [ 42.672179] R13: ffff888110880b60 R14: ffff888110880b90 R15: ffff888169973840
> > > [ 42.672186] FS: 00007f28cd21d7c0(0000) GS:ffff8883ef280000(0000) knlGS:0000000000000000
> > > [ 42.672191] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > > [ 42.[ CR02: ;32m00007f3237366208 CR3: 0 OK 79e001 CR4: 0000000000770ef0
> > > [ 42.672214] PKRU: 55555554
> > > [ 42.672218] Call Trace:
> > > [ 42.672223] <TASK>
> > > [ 42.672226] ? die_addr+0x41/0xa0
> > > [ 42.672238] ? exc_general_protection+0x14c/0x230
> > > [ 42.672250] ? asm_exc_general_protection+0x26/0x30
> > > [ 42.672260] ? fuse_get_req+0x77a/0x990 [fuse]
> > > [ 42.672281] ? fuse_get_req+0x36b/0x990 [fuse]
> > > [ 42.672300] ? kasan_unpoison+0x27/0x60
> > > [ 42.672310] ? __pfx_fuse_get_req+0x10/0x10 [fuse]
> > > [ 42.672327] ? srso_alias_return_thunk+0x5/0xfbef5
> > > [ 42.672333] ? alloc_pages_mpol_noprof+0x195/0x440
> > > [ 42.672340] ? srso_alias_return_thunk+0x5/0xfbef5
> > > [ 42.672345] ? kasan_unpoison+0x27/0x60
> > > [ 42.672350] ? srso_alias_return_thunk+0x5/0xfbef5
> > > [ 42.672355] ? __kasan_slab_alloc+0x4d/0x90
> > > [ 42.672362] ? srso_alias_return_thunk+0x5/0xfbef5
> > > [ 42.672367] ? __kmalloc_cache_noprof+0x134/0x350
> > > [ 42.672376] fuse_simple_background+0xe7/0x180 [fuse]
> >
> > I think this is basically:
> >
> > fuse_simple_background()
> > -> !args->force
> > -> fuse_get_req(NULL, fm, true);
> >
> > and there you have fm->sb->s_iflags & SB_I_NOIDMAP with idmap == NULL
> > afaict.
>
> Yeah, but fuse_get_req() is ready for idmap == NULL case:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/fs/fuse/dev.c?h=fs-next#n111
>
> It must be something else. Maybe there is a mistake during merge? I'll check.
Oh yeah, I'm blind.
Well, this is a background request? In that case can't the idmap go away
in the meantime and become freed? If so, then you need mnt_idmap_get()
and mnt_idmap_put().
next prev parent reply other threads:[~2024-09-09 11:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 8:23 [BUG REPORT] linux-next/fs-next released on 6th September fails to boot Chandan Babu R
2024-09-09 10:38 ` Alexander Mikhalitsyn
2024-09-09 10:40 ` Christian Brauner
2024-09-09 10:55 ` Alexander Mikhalitsyn
2024-09-09 11:00 ` Christian Brauner [this message]
2024-09-09 11:03 ` Alexander Mikhalitsyn
2024-09-09 11:07 ` Christian Brauner
2024-09-09 11:19 ` Alexander Mikhalitsyn
2024-09-09 12:32 ` Christian Brauner
2024-09-09 12:43 ` Alexander Mikhalitsyn
2024-09-09 15:56 ` Alexander Mikhalitsyn
2024-09-09 16:11 ` Alexander Mikhalitsyn
2024-09-10 6:39 ` Chandan Babu R
2024-09-10 6:50 ` Alexander Mikhalitsyn
2024-09-10 7:51 ` Chandan Babu R
2024-09-10 7:56 ` Alexander Mikhalitsyn
2024-09-09 11:05 ` Christian Brauner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240909-unwillig-irreal-26bd9fa085c6@brauner \
--to=brauner@kernel.org \
--cc=alexander@mihalicyn.com \
--cc=chandanbabu@kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mszeredi@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox