Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3875346rwl; Mon, 10 Apr 2023 02:27:40 -0700 (PDT) X-Google-Smtp-Source: AKy350YAVDeGP2C2Ny9QfKmDs61oDrxqZw5QUnXKy4fmmAJSCIeGveKLStCbJWLJjmPHCd6QZTv4 X-Received: by 2002:a17:906:9bd8:b0:94b:28dc:e748 with SMTP id de24-20020a1709069bd800b0094b28dce748mr763360ejc.64.1681118860191; Mon, 10 Apr 2023 02:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681118860; cv=none; d=google.com; s=arc-20160816; b=xJDi2HA8S0n9EYcruta8knArYYKEFTF0qaTOEzPDrGJIWlHlh0WrAnaxyvBjTjzZVM 6tgXG5ULmObnHKAa8oZG7xba5xFJ+x+M+jgIFzSVk99q9vsI9UMEn/YgjkIN1ngzHq9l yaU1uWcV+Sy/l8uy5KTKJkTzS4awq4lqvFmu8GkCjQUI6Xr4uUe4xvC302TIV279Nze2 FTESGdU9paeemeevBLplUzTggwPlb2N49WmxLWqZ9+bnZtKUUSxDH25chatPEEEzUqqU Idthi9ICC9CRZWcsOVVeZtHQYaAqh/9ZJMtoSF3fGKbK/vPcI/mqzJAjxQm7EPWsCKEq zq6g== 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:in-reply-to:date :mime-version; bh=Wc2sUwlFpKZrrDVUHkKjAK8MSfapluqU8r9yqcMm9YE=; b=qvwoZF+sOU0NBIfjQUEggmK9PP9cWRLS+0fXMUvmXob5odnaBPOk+nreetiLD000ej 0mIxWNqsKZ/7b83hiO7TXvebn523fJyuA9ZZzcD0dYSwuMJNVV5J+50q/ix4vnsDOxOy J6AL/ALmQVe33QeivyEs6Sh2S3HRCsqBdNxrCDxb1Eikl9dzQyl8uBZRFmDWhxfUjBUg PkOHZYtwGrgweIdxJ23CCHK7yfeSAHXQ21xU7I4i3Z71bhWO1pZZpNj0TKd4vCoxt6cB zKt2iQC9+6DDCIoridhE//yg+K3afHd5YSIBKgxqRdpdzFZ3PKzanGmvqVcesgms6Ho7 uQ1Q== 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 f24-20020aa7d858000000b0050489dffcc6si4774322eds.270.2023.04.10.02.27.15; Mon, 10 Apr 2023 02:27:40 -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 S229794AbjDJJ02 (ORCPT + 99 others); Mon, 10 Apr 2023 05:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjDJJ0Z (ORCPT ); Mon, 10 Apr 2023 05:26:25 -0400 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39675E54 for ; Mon, 10 Apr 2023 02:26:24 -0700 (PDT) Received: by mail-io1-f71.google.com with SMTP id y74-20020a6bc84d000000b00758ac1b67f8so3375881iof.17 for ; Mon, 10 Apr 2023 02:26:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681118783; x=1683710783; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wc2sUwlFpKZrrDVUHkKjAK8MSfapluqU8r9yqcMm9YE=; b=ZkZHvFyZ579ese+6NN0tjtaVbHwZ0EftuMmcSV6UteZi0n6Nq1nDt0hw/TyzqafoPf 38XoI+c+M0Jl20beWbMKwQA4n+Vm/mTZmCYwHR7VJ7UiPG8nVdZVuUNbpK3yN1KL7Etb cZ3fQ9Dnro62mb88NLQeOQ7UT54OiuY27l2eo8fh/Y2+jFxAhBBWrjUQScR37oD1dXE2 GCDEYe4jdL3SZuGEOb1838YfuTfWrO19rv0rOJeNt94TKKH4eTgkOhLkI6J03uvhA7Sr dHXlskVDHChEwV3j5y/8/4CzcOgAsnjZ5FACvAy6Hc87YgAxDRli1Q980IGjKd1iFYBw aUgg== X-Gm-Message-State: AAQBX9dItTnNNeI18MmAaaS9vSRoRRfnn7eMVSrpfGUdC4TEQo3VX7Vi RXRTeNGvPyZoyIukXSSOnrgIqisz40YETUQqOnohjHdoRub3 MIME-Version: 1.0 X-Received: by 2002:a02:6287:0:b0:3a7:e46f:2a32 with SMTP id d129-20020a026287000000b003a7e46f2a32mr3783038jac.6.1681118783588; Mon, 10 Apr 2023 02:26:23 -0700 (PDT) Date: Mon, 10 Apr 2023 02:26:23 -0700 In-Reply-To: <90d29dc6-39b3-439c-904b-7a2207610d64@linux.alibaba.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ebd27d05f8f7f713@google.com> Subject: Re: [syzbot] [erofs?] WARNING in rmqueue From: syzbot To: hsiangkao@linux.alibaba.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, xiang@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.6 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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 has tested the proposed patch but the reproducer is still triggering an issue: BUG: unable to handle kernel paging request in z_erofs_decompress_queue BUG: unable to handle page fault for address: fffff52101a3fff9 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 23ffed067 P4D 23ffed067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4398 Comm: kworker/u5:1 Not tainted 6.3.0-rc6-syzkaller-g09a9639e56c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: erofs_worker z_erofs_decompressqueue_work RIP: 0010:z_erofs_decompress_queue+0xb7e/0x2b40 Code: 0a 48 8b 7c 24 68 e8 51 fe 00 fe 89 db 48 c1 e3 03 48 03 9c 24 20 03 00 00 49 89 de 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 06 00 74 08 48 89 df e8 23 fe 00 fe 48 83 3b 00 0f 84 a1 RSP: 0018:ffffc90006a5f7c0 EFLAGS: 00010a06 RAX: dffffc0000000000 RBX: ffffc9080d1fffc8 RCX: 1ffff92000d4bf5c RDX: ffff88802b800000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90006a5fbb0 R08: ffffffff83ddecfa R09: fffff52001a40000 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000ffff8f00 R13: ffff888073fad0b8 R14: 1ffff92101a3fff9 R15: ffffea0001b54b40 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff52101a3fff9 CR3: 000000002b4b9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: z_erofs_decompressqueue_work+0x99/0xe0 process_one_work+0x8f6/0x1170 worker_thread+0xa63/0x1210 kthread+0x270/0x300 ret_from_fork+0x1f/0x30 Modules linked in: CR2: fffff52101a3fff9 ---[ end trace 0000000000000000 ]--- RIP: 0010:z_erofs_decompress_queue+0xb7e/0x2b40 Code: 0a 48 8b 7c 24 68 e8 51 fe 00 fe 89 db 48 c1 e3 03 48 03 9c 24 20 03 00 00 49 89 de 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 06 00 74 08 48 89 df e8 23 fe 00 fe 48 83 3b 00 0f 84 a1 RSP: 0018:ffffc90006a5f7c0 EFLAGS: 00010a06 RAX: dffffc0000000000 RBX: ffffc9080d1fffc8 RCX: 1ffff92000d4bf5c RDX: ffff88802b800000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90006a5fbb0 R08: ffffffff83ddecfa R09: fffff52001a40000 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000ffff8f00 R13: ffff888073fad0b8 R14: 1ffff92101a3fff9 R15: ffffea0001b54b40 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff52101a3fff9 CR3: 000000002b4b9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 8b 7c 24 68 mov 0x68(%rsp),%rdi 5: e8 51 fe 00 fe callq 0xfe00fe5b a: 89 db mov %ebx,%ebx c: 48 c1 e3 03 shl $0x3,%rbx 10: 48 03 9c 24 20 03 00 add 0x320(%rsp),%rbx 17: 00 18: 49 89 de mov %rbx,%r14 1b: 49 c1 ee 03 shr $0x3,%r14 1f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 26: fc ff df * 29: 41 80 3c 06 00 cmpb $0x0,(%r14,%rax,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 23 fe 00 fe callq 0xfe00fe5b 38: 48 83 3b 00 cmpq $0x0,(%rbx) 3c: 0f .byte 0xf 3d: 84 .byte 0x84 3e: a1 .byte 0xa1 Tested on: commit: 09a9639e Linux 6.3-rc6 git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ v6.3-rc6 console output: https://syzkaller.appspot.com/x/log.txt?x=1125d353c80000 kernel config: https://syzkaller.appspot.com/x/.config?x=174dd96f08254844 dashboard link: https://syzkaller.appspot.com/bug?extid=aafb3f37cfeb6534c4ac compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 Note: no patches were applied.