Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1058246rwb; Tue, 27 Sep 2022 07:57:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bYN0+oufOF/dlrxn68p9vlJZcBoku8S8rXpolinyNselzwyDCh9rr/QBukhMfjNq67mj9 X-Received: by 2002:aa7:c78d:0:b0:454:fe1d:8eb1 with SMTP id n13-20020aa7c78d000000b00454fe1d8eb1mr27895782eds.59.1664290644753; Tue, 27 Sep 2022 07:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664290644; cv=none; d=google.com; s=arc-20160816; b=KxdVC2w5kSBF8KbkQ+5CBkiP2CUgRifE0Vs8TYApTTnVOKVRmTgAsat+rhKVLl2uWF SaTC3r+cyywahTAvC2bQznk85RolzdMNLutysCNokApa1cC8AoeA9y9jFitQJ83+B1PI QiNZ8YVSsX26YsU3EUBmMHbCJ/JbzuiQo8Gci607sO2O10buGpsH66vhXMfSjNWyEFfc jDsvycvMcPgZkGwZg6jFXS6IcbRip3NlkKkSd0RlUrRZc9XoizENrziXBspPlJ7J6h1Q y0Ylvd1hXVb6M8Ww+Hqwk9uJRKXdIJ4Yih5eiu8CeJ7AbfO7NVrZkVKkKzw8TbQqGZrZ QlEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1kmSACpTUpQFMKFjBw1sVbOoeMhRcmNy9W4vZr1+8Pg=; b=YbvABgSCUVUiVhQgjBIkDi776i7a5setlBBZVcDZ143lMf5IhhZEowo33zaV6LCQ3V U41BMB2vampw9eQOmBGB62oAIFlzWv+dCU5g1RcpkMxdfy/p5BAlNrPLgFfwqddRIkon i8VrY+R+9D6XARTtKnI0RNlrpQpBSMx96JwxXVqSz8QB+t9wwsk6+IdBFEeMoDWI4N1W uaduuUnvZnDYW0SU6XCHkLX0mwnjlwmN59dYG9cT++iugONDSCcs/RcIDNqpP5BU9zjN PiO69L3IaCd+XpwYdajWcYyC8QiTqXV4kK+re0XMNBK0qR+RijC/G/E589VrXHJS999f I7fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MdlRQY1N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk24-20020a170907767800b0073dc32ccd9fsi1118045ejc.104.2022.09.27.07.56.58; Tue, 27 Sep 2022 07:57:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MdlRQY1N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbiI0OLW (ORCPT + 99 others); Tue, 27 Sep 2022 10:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbiI0OLJ (ORCPT ); Tue, 27 Sep 2022 10:11:09 -0400 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9E9A5986; Tue, 27 Sep 2022 07:11:07 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id m65so9805254vsc.1; Tue, 27 Sep 2022 07:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=1kmSACpTUpQFMKFjBw1sVbOoeMhRcmNy9W4vZr1+8Pg=; b=MdlRQY1NT42XawxBjQgXYbtaI91ytx7nHGfvON/NIQpfM++Zo3IWJ9gT8fQ20hlvFp qhUMIniq6bwqYCyv+7BbaQOA5mWJazh+1tYCFUg5Jwp0t/po6vXdvU0PiMjlsmYyq1UM S9Tr/mXLKZDsMyVBPlJieRy99O546qfUj1zwKacbuR2kZ6SSgebKCK5RzbEoF41Xinf9 FXWqQ7x6wsL6adOU2T53NO2aiVTUUiKchcap6hIgC542+I0QugFSYNK3XieNnDApKy8G rZ2cH+amEjplPac8sQyM09+BdEJk+ki970cDlE9BGeAqeo2BDHzkB4D67S0AcGqtuMHw ZmOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=1kmSACpTUpQFMKFjBw1sVbOoeMhRcmNy9W4vZr1+8Pg=; b=BNTYGrWAneb47luRK32qV71fRNQafPKi0OmpO3b91u/YItaQaB+Vrq3oMwz0VyRx7n FaWkPHdJkdqoZaP1i8UqrZQ8i2DeqvRGhm8l6MDh/u3Sfj5THY2B1I0zg9uzG/lqDZ4E wzsL3Ypyb9EAqkqdaV+RVPE9FdJ34AIwVEo9P4QhjWl/kdk+vdkloNsFHabXT7aQ8Aji IfWcn4llap4OSSTYYSc5rTanSPJSvlF1sWwyg/DrPOoS2YT4DcDpXBaozFvMHcTNfVQc Ow8mnruzTFsgkaOUk+qkJVH9aZ/XXRKkNaYuXLC68J9v9Lts9nzYI3674V34eZ9FsvcL LE6Q== X-Gm-Message-State: ACrzQf0sxrR7WKcoHWfYlcHfSIyGIdHb7rYmPNHOfx8JvhUFKZh9MBu0 88LJTHxhuNR7mVsy6AfPPwduWqsuXnDwtmVXPb8dLytIQcQ= X-Received: by 2002:a05:6102:97:b0:39a:1e7a:ef77 with SMTP id t23-20020a056102009700b0039a1e7aef77mr10092980vsp.37.1664287866107; Tue, 27 Sep 2022 07:11:06 -0700 (PDT) MIME-Version: 1.0 References: <000000000000922a2105e8615576@google.com> In-Reply-To: <000000000000922a2105e8615576@google.com> From: Ryusuke Konishi Date: Tue, 27 Sep 2022 23:10:49 +0900 Message-ID: Subject: Re: [syzbot] BUG: unable to handle kernel paging request in alloc_nilfs To: syzbot Cc: linux-kernel@vger.kernel.org, linux-nilfs@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 11, 2022 at 4:00 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 25050c56fa3c Merge branch 'for-next/fixes' into for-kernelci > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci > console output: https://syzkaller.appspot.com/x/log.txt?x=176f0273080000 > kernel config: https://syzkaller.appspot.com/x/.config?x=db8b30b83a444315 > dashboard link: https://syzkaller.appspot.com/bug?extid=19d51a2ee09e1cb9ba06 > compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 > userspace arch: arm64 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=152b3417080000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13ded8f5080000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+19d51a2ee09e1cb9ba06@syzkaller.appspotmail.com > > loop0: detected capacity change from 0 to 200 > Unable to handle kernel paging request at virtual address dead4ead00000400 > Mem abort info: > ESR = 0x0000000096000004 > EC = 0x25: DABT (current EL), IL = 32 bits > SET = 0, FnV = 0 > EA = 0, S1PTW = 0 > FSC = 0x04: level 0 translation fault > Data abort info: > ISV = 0, ISS = 0x00000004 > CM = 0, WnR = 0 > [dead4ead00000400] address between user and kernel address ranges > Internal error: Oops: 96000004 [#1] PREEMPT SMP > Modules linked in: > CPU: 0 PID: 3066 Comm: syz-executor208 Not tainted 6.0.0-rc4-syzkaller-17186-g25050c56fa3c #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 > pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) > pc : slab_alloc mm/slub.c:3251 [inline] > pc : kmem_cache_alloc_trace+0x184/0x324 mm/slub.c:3282 > lr : slab_pre_alloc_hook mm/slab.h:702 [inline] > lr : slab_alloc_node mm/slub.c:3157 [inline] > lr : slab_alloc mm/slub.c:3251 [inline] > lr : kmem_cache_alloc_trace+0x8c/0x324 mm/slub.c:3282 > sp : ffff8000127f3a80 > x29: ffff8000127f3a90 x28: ffff0000c58c0000 x27: ffff80000d379000 > x26: ffff80000cdb4419 x25: 0000000000000083 x24: dead4ead00000000 > x23: 0000000000000000 x22: ffff800008f7bda0 x21: ffff0000c0001600 > x20: 00000000000004d0 x19: 0000000000000dc0 x18: 0000000000000000 > x17: 0000000000000000 x16: ffff80000dbb8658 x15: ffff0000c58c0000 > x14: 0000000000000010 x13: 0000000000000000 x12: ffff0000c58c0000 > x11: 0000000000000001 x10: 0000000000000000 x9 : 0000000000000400 > x8 : 0000000000001ec8 x7 : ffff8000084b7800 x6 : 0000000000000000 > x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000001ed0 > x2 : 0000000000000000 x1 : 0000000000000800 x0 : 0000000000000000 > Call trace: > next_tid mm/slub.c:2311 [inline] > slab_alloc_node mm/slub.c:3227 [inline] > slab_alloc mm/slub.c:3251 [inline] > kmem_cache_alloc_trace+0x184/0x324 mm/slub.c:3282 > kmalloc include/linux/slab.h:600 [inline] > kzalloc include/linux/slab.h:733 [inline] > alloc_nilfs+0x2c/0x13c fs/nilfs2/the_nilfs.c:59 > nilfs_fill_super+0x40/0x2e8 fs/nilfs2/super.c:1041 > nilfs_mount+0x370/0x52c fs/nilfs2/super.c:1317 > legacy_get_tree+0x30/0x74 fs/fs_context.c:610 > vfs_get_tree+0x40/0x140 fs/super.c:1530 > do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040 > path_mount+0x358/0x914 fs/namespace.c:3370 > do_mount fs/namespace.c:3383 [inline] > __do_sys_mount fs/namespace.c:3591 [inline] > __se_sys_mount fs/namespace.c:3568 [inline] > __arm64_sys_mount+0x2f8/0x408 fs/namespace.c:3568 > __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] > invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] > el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 > do_el0_svc+0x48/0x154 arch/arm64/kernel/syscall.c:206 > el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:624 > el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642 > el0t_64_sync+0x18c/0x190 > Code: 54000d41 34000d4b b9402aa9 91002103 (f8696b19) > ---[ end trace 0000000000000000 ]--- > ---------------- > Code disassembly (best guess): > 0: 54000d41 b.ne 0x1a8 // b.any > 4: 34000d4b cbz w11, 0x1ac > 8: b9402aa9 ldr w9, [x21, #40] > c: 91002103 add x3, x8, #0x8 > * 10: f8696b19 ldr x25, [x24, x9] <-- trapping instruction > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > syzbot can test patches for this issue, for details see: > https://goo.gl/tpsmEJ#testing-patches This one turned out to be the same issue as the following report: #syz dup: BUG: unable to handle kernel paging request in kernfs_put_active I confirmed that the associated fix commit "fs: fix UAF/GPF bug in nilfs_mdt_destroy" fixes the oops. Ryusuke Konishi