Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19917248rwd; Wed, 28 Jun 2023 16:45:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kRlItHItR2BKS9r+qS13qBDfMMvaJ5Kbm6FihLNrQ2fqi4DV50wgV2kX1/Pe9urV//vu7 X-Received: by 2002:a9d:6310:0:b0:6af:a0d7:1819 with SMTP id q16-20020a9d6310000000b006afa0d71819mr35342249otk.28.1687995910471; Wed, 28 Jun 2023 16:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687995910; cv=none; d=google.com; s=arc-20160816; b=bP9GeQFwKg4xX2Z0XoHohuzIHTncmH4q5glCUgLfCanYSLQ/xZpldlYyf1kRGqDR2d XEge08koleh0ErqrLKqhAIR/9yhoge0GTy+0J6LbJ45muTqdZaa6AxTHX9/6WhPxTG2b 1mpXkxhpnhz8XEFT9poWTgSgcuV523YNX2BgtkHBQplGNDYOOYlHsemwq1XqfQ3eLgGf sPBw+bKDcgzQcOCh5X9cCb7+QbVvZ0kEPsji2S20jQlPniUTpfwrOmQDuTbpLrLagU3R VRDsA3VNcRaCEL2LYnAATo/XksfxG5xD5N+YdIeLw+z8E4VLNHLgqEpYEu34l+g7IT2H IoKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=204g8cjo1gxXYSclnNAUMWrF8i0lTo+TqOMIY9rPY+E=; fh=zWoLIqY7GY8LR623Fq9QQbRIpl0wDbjfKqK5BRzO2I8=; b=0jIpBeRahzMfDJ+FWx+fVhM7Y68vgbnn7KxM6Dq8utoKaQYQzu6yBX37t8DGx1O429 j3aCCjCfT1hUbJGQJ+/pXGw74szCTSCkki6bGgTaSM8U/L4cVJTTcqhtkePFwL8UGuu0 sDZ/x4R1RvSJJDzZUzjls3BFUmlYTEvU1txFTUbAaNkM158CDHsgdB+JZWkwBJt3q5uW JGlCrxB0OX4I0tY6BCs/tX4f1doG0VOmw6SiEznfvI1AkxESHYucz50JvtnO2daLoUDp YiYw6TvVFAJOP0mJUbOMTX4vI8J0/TUmRyq1NNWnkK6tKbv9HtjoCL3+M4wGM0YrRCJ9 Jlow== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g124-20020a636b82000000b0055acc9229a4si7236480pgc.803.2023.06.28.16.44.56; Wed, 28 Jun 2023 16:45:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231134AbjF1X1z (ORCPT + 99 others); Wed, 28 Jun 2023 19:27:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjF1X1y (ORCPT ); Wed, 28 Jun 2023 19:27:54 -0400 Received: from mail-ot1-f80.google.com (mail-ot1-f80.google.com [209.85.210.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D071F19B4 for ; Wed, 28 Jun 2023 16:27:51 -0700 (PDT) Received: by mail-ot1-f80.google.com with SMTP id 46e09a7af769-6b86bff7180so107589a34.1 for ; Wed, 28 Jun 2023 16:27:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687994871; x=1690586871; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=204g8cjo1gxXYSclnNAUMWrF8i0lTo+TqOMIY9rPY+E=; b=Fc4vX0oiqfvGbVLV+Px8MDs3KNNCtlfNMFnWiNLACo6bHgYQV8P/++ZbbYCP3DDLHc Ki2WWdm+pl4bBq0jk+mcV7n5v6MGxCLZvnWDZZDDmmor16bAqJAI1Gc9w/ypPXjSZhH1 RRIHs2IyVoeFhVmQ2q3xegARcJl4y6PZU8+R3WQygQPFVteN8uF7uQkLUjfyPvYtM+B4 kNh/QkWXP9Ztpsd0Oq4GIW+5+NHgZJnDwfbYfZ2y3ka56EKatyesMTiED2dAFWHzGi7N iNA5ttJeIALn9GsC2F2a3Jwc0jWr/8tGGLu/KJPIXcBg1vItP7symAK7IQte0iUlBsvl bBuw== X-Gm-Message-State: AC+VfDzJqHMoGJlFmHtBCFUXiIA0jDq6LI6J9bY15vgYGEymjleqONZZ L1RA9gXlu8joW7D/EWRSqn/zwMwEcVTV7NU1Kk7UxxVEJ1SB MIME-Version: 1.0 X-Received: by 2002:a05:6870:d799:b0:1ad:4a75:39b8 with SMTP id bd25-20020a056870d79900b001ad4a7539b8mr8952484oab.7.1687994871264; Wed, 28 Jun 2023 16:27:51 -0700 (PDT) Date: Wed, 28 Jun 2023 16:27:51 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000af3d3105ff38ee3c@google.com> Subject: [syzbot] [f2fs?] general protection fault in f2fs_drop_extent_tree From: syzbot To: chao@kernel.org, jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Hello, syzbot found the following issue on: HEAD commit: a92b7d26c743 Merge tag 'drm-fixes-2023-06-23' of git://ano.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=107e3e50a80000 kernel config: https://syzkaller.appspot.com/x/.config?x=2cbd298d0aff1140 dashboard link: https://syzkaller.appspot.com/bug?extid=f4649be1be739e030111 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1564afb0a80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166928c7280000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/53d1be238f30/disk-a92b7d26.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/04748ac79920/vmlinux-a92b7d26.xz kernel image: https://storage.googleapis.com/syzbot-assets/78634d05a96b/bzImage-a92b7d26.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/dcc03ca9e012/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f4649be1be739e030111@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000009: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000048-0x000000000000004f] CPU: 0 PID: 5015 Comm: syz-executor425 Not tainted 6.4.0-rc7-syzkaller-00226-ga92b7d26c743 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:__lock_acquire+0xe01/0x5f30 kernel/locking/lockdep.c:4956 Code: 00 00 3b 05 01 b0 59 0f 0f 87 7a 09 00 00 41 be 01 00 00 00 e9 84 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 9e 33 00 00 49 81 3c 24 20 38 16 90 0f 84 cd f2 RSP: 0018:ffffc90003b6f9d8 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: 1ffff9200076df6c RCX: 0000000000000000 RDX: 0000000000000009 RSI: 0000000000000000 RDI: 0000000000000048 RBP: ffff88802834d940 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000048 R13: 0000000000000000 R14: 0000000000000048 R15: 0000000000000000 FS: 00007f2b8ef07700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2b8efac0c8 CR3: 00000000235f8000 CR4: 0000000000350ef0 Call Trace: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __raw_write_lock include/linux/rwlock_api_smp.h:209 [inline] _raw_write_lock+0x2e/0x40 kernel/locking/spinlock.c:300 __drop_extent_tree fs/f2fs/extent_cache.c:1100 [inline] f2fs_drop_extent_tree+0xf0/0x3a0 fs/f2fs/extent_cache.c:1116 f2fs_insert_range fs/f2fs/file.c:1664 [inline] f2fs_fallocate+0xce5/0x36d0 fs/f2fs/file.c:1838 vfs_fallocate+0x48b/0xe40 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xd3/0x140 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2b8ef5b459 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2b8ef072f8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f2b8efe57a0 RCX: 00007f2b8ef5b459 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000005 RBP: 00007f2b8efb27f8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 00007f2b8efb26c0 R13: 0030656c69662f2e R14: 4b55cd3db08b6c4e R15: 00007f2b8efe57a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__lock_acquire+0xe01/0x5f30 kernel/locking/lockdep.c:4956 Code: 00 00 3b 05 01 b0 59 0f 0f 87 7a 09 00 00 41 be 01 00 00 00 e9 84 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 9e 33 00 00 49 81 3c 24 20 38 16 90 0f 84 cd f2 RSP: 0018:ffffc90003b6f9d8 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: 1ffff9200076df6c RCX: 0000000000000000 RDX: 0000000000000009 RSI: 0000000000000000 RDI: 0000000000000048 RBP: ffff88802834d940 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000048 R13: 0000000000000000 R14: 0000000000000048 R15: 0000000000000000 FS: 00007f2b8ef07700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2b8efac0c8 CR3: 00000000235f8000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 3b 05 01 b0 59 0f cmp 0xf59b001(%rip),%eax # 0xf59b009 8: 0f 87 7a 09 00 00 ja 0x988 e: 41 be 01 00 00 00 mov $0x1,%r14d 14: e9 84 00 00 00 jmpq 0x9d 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 4c 89 e2 mov %r12,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 9e 33 00 00 jne 0x33d2 34: 49 81 3c 24 20 38 16 cmpq $0xffffffff90163820,(%r12) 3b: 90 3c: 0f .byte 0xf 3d: 84 cd test %cl,%ch 3f: f2 repnz --- 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. If the bug is already fixed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to change bug's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the bug is a duplicate of another bug, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup