Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32015089rwd; Fri, 7 Jul 2023 07:34:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWWRDrwoM2I2BOlVoiW+XUp3xAqnRy2EXO9NjvH72uvdev3J511Z+zhESi482XURyxRVYQ X-Received: by 2002:a17:903:2584:b0:1b8:5fb4:1c82 with SMTP id jb4-20020a170903258400b001b85fb41c82mr4879715plb.50.1688740479697; Fri, 07 Jul 2023 07:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688740479; cv=none; d=google.com; s=arc-20160816; b=IgFrBC8HxGPdiRTRwxNg70oQmcidR6IewFIqDgWNBaupK6ZKA6Gf96cO0qMrDo8OVJ bUHO/MJT0edWq9vjz5dqNoYzQX7n5teW3Sosydy78uwmvimESv2HVwcAaF2x8u/pQ1l+ lCVbDmiZ87SjPi498a1ix4weoNv/sYsSrzieemMlgrN19jITQz+L1AAb1tsz/QvpNXL6 DH4dtRo8WoIseyTOF+E9/4VdJtQXKlhDzEm1KluaMQweJTIhSxEWCgNBEKv1Qexw0Kkl I48rbgK9qiOG9T5NxMfBjCOPYp9WPidNQ6nw9EVS07L6NOhLGsCnVX1JtqHHJl6skkS9 4reA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3duEBuglYHJPiW+Zxu6laR0xjOyTgL2sZiY4YxhF0hY=; fh=z090F+gVaBclLco4nb0ERoDFoGDUxU0ebomaiodaP3E=; b=AqSnYizHc/Hip4rbtcf09YU0+7UKvcWwNRS2EDBxEfPIpAmCwrF38jzBXtmmFJRpr0 wUuXRBWN4vDK/NTdv2GPhthEqMrdIVqsbP3X/yP0ThtRECBEp83RXjhlrnEwZbfOXdwe MGhsyTcDvczAsB9ZfV1bM33rsnwc5gabDzDnRODkMgv8bb0hGL/7+sxzQj58FNFs/39w okw65BfHj1z1pji/hGL3m2TQYh+R2BJ+O/oL520KCJYy5iBL0ZG3qo8NECzoCU9jzudq BLgHqbENSy03uxUTYpU12I2zoFdP+jhtaG2dfH0Xx3ncVM0IokFRBKMCh5UND1eGq/8Y YbXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nLvLzEHC; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a170902a3c600b001b19ceca240si3540690plb.169.2023.07.07.07.34.24; Fri, 07 Jul 2023 07:34:39 -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=@kernel.org header.s=k20201202 header.b=nLvLzEHC; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231249AbjGGOUS (ORCPT + 99 others); Fri, 7 Jul 2023 10:20:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbjGGOUR (ORCPT ); Fri, 7 Jul 2023 10:20:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A494510B for ; Fri, 7 Jul 2023 07:20:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3C51561961 for ; Fri, 7 Jul 2023 14:20:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CAC3C433C8; Fri, 7 Jul 2023 14:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688739613; bh=mNP/gqJLpyaxvzSWcLJtN1wqNRT4VvoT6PdxXISC5Pc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nLvLzEHCHs4XO4acIOVyMtZtmHOZOHtZYAeSf3h969sQ7MChkBNwNvFfMvbIpsBUB yfXohAya2vhixmHxuF+O7bv28cJYo/deGNLGVoXHJqjxdX7dRW+vZU1xCXc6zjv/30 WTV0seOEyGtSKXSeyjfwVmHF5pilJ1oKXo6f4wpYOcHu6tk/Uz5kialL3QWE86QIzg /5tAO9fg6aGZi0GucFQXw0m45jnR7yKV1CE4JS4nsNLvAZHpT7JDWbK5JYDJ7PJptg z31z/Tlu8KKQQF+mLw/e3g4Klh1HbFSwcX0Hxw6cQ6JG5w3Qzsgde1hdNC84VadVnm +WKdwsYZXSB/A== Date: Fri, 7 Jul 2023 07:20:11 -0700 From: Jaegeuk Kim To: syzbot Cc: akpm@linux-foundation.org, chao@kernel.org, hughd@google.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [f2fs?] [tmpfs?] kernel BUG in f2fs_evict_inode Message-ID: References: <000000000000f020a905f061d4c2@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000f020a905f061d4c2@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test On 12/21, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 77856d911a8c Merge tag 'arm64-fixes' of git://git.kernel.o.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=17c418c8480000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f967143badd2fa39 > dashboard link: https://syzkaller.appspot.com/bug?extid=e1246909d526a9d470fa > compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=160ea04f880000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17e2a99d880000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/4b424d9203f5/disk-77856d91.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/47fd68051834/vmlinux-77856d91.xz > kernel image: https://storage.googleapis.com/syzbot-assets/d3091f087a86/bzImage-77856d91.xz > mounted in repro: https://storage.googleapis.com/syzbot-assets/36b1377afaef/mount_0.gz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+e1246909d526a9d470fa@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > kernel BUG at fs/f2fs/inode.c:864! > invalid opcode: 0000 [#1] PREEMPT SMP KASAN > CPU: 1 PID: 5067 Comm: syz-executor118 Not tainted 6.1.0-syzkaller-13031-g77856d911a8c #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 > RIP: 0010:f2fs_evict_inode+0x1306/0x1310 fs/f2fs/inode.c:864 > Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a f5 ff ff 48 89 df e8 4b 51 1a fe e9 7d f5 ff ff e8 e1 b4 c4 fd 0f 0b e8 da b4 c4 fd <0f> 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56 53 48 89 fb e8 c2 b4 > RSP: 0018:ffffc90003b3f8f8 EFLAGS: 00010293 > RAX: ffffffff83c720e6 RBX: 0000000000000002 RCX: ffff8880251257c0 > RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 > RBP: 0000000000000000 R08: ffffffff83c71bc3 R09: ffffed100e5a41b5 > R10: ffffed100e5a41b5 R11: 1ffff1100e5a41b4 R12: dffffc0000000000 > R13: ffff888072d208f0 R14: ffff888072d20da0 R15: 0000000000000000 > FS: 000055555685a300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007ffd85832d68 CR3: 00000000726a5000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > evict+0x2a4/0x620 fs/inode.c:664 > dispose_list fs/inode.c:697 [inline] > evict_inodes+0x658/0x700 fs/inode.c:747 > generic_shutdown_super+0x94/0x310 fs/super.c:480 > kill_block_super+0x79/0xd0 fs/super.c:1386 > kill_f2fs_super+0x2f9/0x3c0 fs/f2fs/super.c:4640 > deactivate_locked_super+0xa7/0xf0 fs/super.c:332 > cleanup_mnt+0x494/0x520 fs/namespace.c:1291 > task_work_run+0x243/0x300 kernel/task_work.c:179 > ptrace_notify+0x29a/0x340 kernel/signal.c:2354 > ptrace_report_syscall include/linux/ptrace.h:411 [inline] > ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline] > syscall_exit_work+0x8c/0xe0 kernel/entry/common.c:251 > syscall_exit_to_user_mode_prepare+0x63/0xc0 kernel/entry/common.c:278 > __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] > syscall_exit_to_user_mode+0xa/0x60 kernel/entry/common.c:296 > do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 > entry_SYSCALL_64_after_hwframe+0x63/0xcd > RIP: 0033:0x7fd8e1d06d97 > Code: 08 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007ffd858334a8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 > RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fd8e1d06d97 > RDX: 00007ffd85833569 RSI: 000000000000000a RDI: 00007ffd85833560 > RBP: 00007ffd85833560 R08: 00000000ffffffff R09: 00007ffd85833340 > R10: 000055555685b653 R11: 0000000000000202 R12: 00007ffd858345d0 > R13: 000055555685b5f0 R14: 00007ffd858334d0 R15: 0000000000000001 > > Modules linked in: > ---[ end trace 0000000000000000 ]--- > RIP: 0010:f2fs_evict_inode+0x1306/0x1310 fs/f2fs/inode.c:864 > Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a f5 ff ff 48 89 df e8 4b 51 1a fe e9 7d f5 ff ff e8 e1 b4 c4 fd 0f 0b e8 da b4 c4 fd <0f> 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56 53 48 89 fb e8 c2 b4 > RSP: 0018:ffffc90003b3f8f8 EFLAGS: 00010293 > RAX: ffffffff83c720e6 RBX: 0000000000000002 RCX: ffff8880251257c0 > RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 > RBP: 0000000000000000 R08: ffffffff83c71bc3 R09: ffffed100e5a41b5 > R10: ffffed100e5a41b5 R11: 1ffff1100e5a41b4 R12: dffffc0000000000 > R13: ffff888072d208f0 R14: ffff888072d20da0 R15: 0000000000000000 > FS: 000055555685a300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007ffd85832d68 CR3: 00000000726a5000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > --- > 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