Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6760331rwl; Thu, 29 Dec 2022 20:12:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXuhuHnGLo8aNcI9sDb2/mfQO2tvz+kugV3yhL/2zlKwTpqDv7yzRojJ0eTaBICLGbmUe+BR X-Received: by 2002:a05:6a20:3b22:b0:af:cede:8dee with SMTP id c34-20020a056a203b2200b000afcede8deemr33665740pzh.35.1672373546843; Thu, 29 Dec 2022 20:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672373546; cv=none; d=google.com; s=arc-20160816; b=vMbmo3EWOvF2P/5jfK60a8jIncxEsOrEhjxbEtaHf4raz2yW8bD9ACFomGS3bqoJCN ZWmYDM+zcTM4swb8F1Wz9cjYcg9i8Qjk4QfvAipTBXfVMPdLRIAFa7TqUGxNJnxGjrVo lRJtaHv8Lr69MSrv7udEyZl3OBxW7jocF7y9eWtFd27hPY1uhSeZvrIAgPTpbbBbPeDC l7D2S3YK7pBjodM1KUMbPG6DIGLSKWvt0U5l35Y9bjyEKRCT8fuzkfDMEhvt9mndsLbl d9irpa+ipD/ULwYmBf7S7eVCPh9aKlizmurahoiLwj9lu5wPGcjUx+ZMCgb14Ljeh0QP j1+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qCt5T8j69vFW2sQ77aGsEnhH9bYGHOXKoqu/4Xg5wSQ=; b=q4AyxgW1ur+MXJUE9EfY6a7s84Kvp31nu433R68ddkGG5Rzniue906AoKDRJJogNx6 Vrgq07o5vzP3wMHSFa6okWQ549kPN+Xa8cMuClNGG02Y73tBWkqhYkSHbbcHPnClq0Ka byhdiFz2bMbDO4i5g4AzaWTDzlCG1qwlD7WcGNz2dg9xz2hyZ/dIQG7kiShBfv5qj1/H NjBlfVAxvDFcHKQNGuvVCqnV13KBzDR410L7JusC1FTw15CCRIEWNTv1bjkuBG9QDPHD dIA/o+X5o7zuqV70MSlldcQ2yTvsfR/BYDgTw68Jzjpmcuj7lCbXhlrOM+vTcpoetl2U iTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Bwv9gFGT; 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 f1-20020a636a01000000b004792b08adaasi21487746pgc.418.2022.12.29.20.12.16; Thu, 29 Dec 2022 20:12:26 -0800 (PST) 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=Bwv9gFGT; 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 S234162AbiL3EEY (ORCPT + 65 others); Thu, 29 Dec 2022 23:04:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbiL3EES (ORCPT ); Thu, 29 Dec 2022 23:04:18 -0500 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B251F6 for ; Thu, 29 Dec 2022 20:04:16 -0800 (PST) Received: by mail-vs1-xe30.google.com with SMTP id m129so14485729vsc.11 for ; Thu, 29 Dec 2022 20:04:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=qCt5T8j69vFW2sQ77aGsEnhH9bYGHOXKoqu/4Xg5wSQ=; b=Bwv9gFGTkbWc/FwjxntLDkoNr0hB0CWBbS09rh0p/Pv58Z3f0PxIRz9oPKoTetePPL NdZPXLx6f+JaunmiLHb0+LhE7karb8VLpbLUcjbv2wHUAYsh4HVUWgulGxtF4lPkUtiq HqyYhZNr1PB/aXvm8JzwRZkbh4YKWd5Uah3oq3s5+5M7QSGY7Y6RZke4zsQHM18lSY25 UQx5xQSrWv5MJw2WQHCZvt/O0OFQg//X7F2ppUbAmudsDZ6yV2hBc4qa+nA06EyrWY5J Uc4IPo8Qv9afzEjThfvYRRMwXYHzy9KhpNaaMoOYMvGWWfDI355g2NZkgsJTSPIo1l0T MR4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qCt5T8j69vFW2sQ77aGsEnhH9bYGHOXKoqu/4Xg5wSQ=; b=YtocKsLOLQ7848NlQQFIC2N2jWjCxkKCYNFqzTGUOiYvTLhKQAyacC6s0vfjd480jh w+fVcwDRTt1B8rbs8TpiMF7eaDCYh8XY04MHnhTAWxSRg0nHY1+e1pmDqM5EpCdw9cS6 ZaSkl8YIVYXECrwB5BxjAIV8EABjsYzyiJuk19pDFX/kYFNPb65OSzA4pUY7I3PBYYqD 20dqxjqY53puFURjmKWCOEynUfcUwtJqjtIakCjHxRJqNuQW47HT4VoxHTxHsb9+/JAJ weQfM7G+7WPHRG9CDVY+gs/LwzbcBKQyamQJBy3voaKCps9yVZRe4UgzZWIqtloBYIB+ wrwA== X-Gm-Message-State: AFqh2koqzgnyhQvBHDHyKRaucqmdDgFv+hF7+HiOfbB+AdQJf1jKiSKT P/KL5eCZNFJPO2aXBS8JxYFPInkB8Rqa3OifJhOjnNLR1mg= X-Received: by 2002:a67:fd48:0:b0:3c9:59f7:2486 with SMTP id g8-20020a67fd48000000b003c959f72486mr1346990vsr.50.1672373055681; Thu, 29 Dec 2022 20:04:15 -0800 (PST) MIME-Version: 1.0 References: <0c70ba66-ef00-7242-d198-844f803662fa@gmail.com> In-Reply-To: <0c70ba66-ef00-7242-d198-844f803662fa@gmail.com> From: Jeff Chua Date: Fri, 30 Dec 2022 12:04:04 +0800 Message-ID: Subject: Fwd: f2fs write error Linux v6.2 To: lkml , Linus Torvalds , Bagas Sanjaya , Jaegeuk Kim , Chao Yu , F2FS Development , Linux Regressions 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 12/24/22 19:43, Bagas Sanjaya wrote: > On Sat, Dec 24, 2022 at 01:48:55PM +0800, Jeff Chua wrote: >> Got the following error in latest linux-6.2-git with just vim (:w >> file1). No problem with linux-6.1.1 What happened to the f2fs developers? No response from anyone yet. Am I the only one facing this? Linux-6.2 is unusable until this is fixed. What can I do to help? Jeff >> 2022-12-22T14:09:51.419409+08:00 [localhost] kernel: BUG: kernel NULL >> pointer dereference, address: 0000000000000024 >> 2022-12-22T14:09:51.419422+08:00 [localhost] kernel: #PF: supervisor >> write access in kernel mode >> 2022-12-22T14:09:51.419423+08:00 [localhost] kernel: #PF: >> error_code(0x0002) - not-present page >> 2022-12-22T14:09:51.419424+08:00 [localhost] kernel: PGD 147b63067 P4D >> 147b63067 PUD 177d5c067 PMD 0 >> 2022-12-22T14:09:51.419424+08:00 [localhost] kernel: Oops: 0002 [#7] PREEMPT SMP >> 2022-12-22T14:09:51.419428+08:00 [localhost] kernel: CPU: 6 PID: 22891 >> Comm: vi Tainted: G UD 6.1.0 #11 >> 2022-12-22T14:09:51.419428+08:00 [localhost] kernel: Hardware name: >> LENOVO 21CCS1GL00/21CCS1GL00, BIOS N3AET69W (1.34 ) 12/05/2022 >> 2022-12-22T14:09:51.419428+08:00 [localhost] kernel: RIP: >> 0010:f2fs_issue_flush+0x10e/0x180 >> 2022-12-22T14:09:51.419429+08:00 [localhost] kernel: Code: ba 01 00 00 >> 00 be 03 00 00 00 e8 ad e8 d5 ff 48 83 3b 00 74 1e 48 89 e7 e8 7f c1 >> 84 00 f0 ff 4b 24 8b 44 24 2c e9 66 ff ff ff ff 43 24 e9 4a ff ff >> ff 45 31 ff 4c 87 7b 28 4d 85 ff 74 d6 44 >> 2022-12-22T14:09:51.419429+08:00 [localhost] kernel: RSP: >> 0018:ffffc90000b13df0 EFLAGS: 00010246 >> 2022-12-22T14:09:51.419430+08:00 [localhost] kernel: RAX: >> ffff888101caccc0 RBX: 0000000000000000 RCX: 0000000000000000 >> 2022-12-22T14:09:51.419430+08:00 [localhost] kernel: RDX: >> 0000000010000088 RSI: 000000000005a844 RDI: ffff8881027bf000 >> 2022-12-22T14:09:51.419431+08:00 [localhost] kernel: RBP: >> ffff8881027bf000 R08: 0000000000000000 R09: ffff8881027bf2a8 >> 2022-12-22T14:09:51.419431+08:00 [localhost] kernel: R10: >> 0000000000000000 R11: 0000000000000000 R12: 0000000000000024 >> 2022-12-22T14:09:51.419432+08:00 [localhost] kernel: R13: >> 000000000005a844 R14: 000000000005a844 R15: 0000000000000000 >> 2022-12-22T14:09:51.419432+08:00 [localhost] kernel: FS: >> 00007ff03fdf0b80(0000) GS:ffff88883f380000(0000) >> knlGS:0000000000000000 >> 2022-12-22T14:09:51.419432+08:00 [localhost] kernel: CS: 0010 DS: >> 0000 ES: 0000 CR0: 0000000080050033 >> 2022-12-22T14:09:51.419433+08:00 [localhost] kernel: CR2: >> 0000000000000024 CR3: 000000013d64e006 CR4: 0000000000770ee0 >> 2022-12-22T14:09:51.419433+08:00 [localhost] kernel: PKRU: 55555554 >> 2022-12-22T14:09:51.419434+08:00 [localhost] kernel: Call Trace: >> 2022-12-22T14:09:51.419434+08:00 [localhost] kernel: >> 2022-12-22T14:09:51.419435+08:00 [localhost] kernel: ? >> preempt_count_add+0x63/0x90 >> 2022-12-22T14:09:51.419435+08:00 [localhost] kernel: ? >> preempt_count_add+0x63/0x90 >> 2022-12-22T14:09:51.419435+08:00 [localhost] kernel: ? >> preempt_count_add+0x63/0x90 >> 2022-12-22T14:09:51.419436+08:00 [localhost] kernel: >> f2fs_do_sync_file+0x489/0x650 >> 2022-12-22T14:09:51.419436+08:00 [localhost] kernel: __x64_sys_fsync+0x2f/0x60 >> 2022-12-22T14:09:51.419437+08:00 [localhost] kernel: do_syscall_64+0x35/0x80 >> 2022-12-22T14:09:51.419437+08:00 [localhost] kernel: >> entry_SYSCALL_64_after_hwframe+0x46/0xb0 >> 2022-12-22T14:09:51.419438+08:00 [localhost] kernel: RIP: 0033:0x7ff03feef20b >> 2022-12-22T14:09:51.419438+08:00 [localhost] kernel: Code: 3d 00 f0 ff >> ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 a3 a2 f8 >> ff 8b 7c 24 0c 41 89 c0 b8 4a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 >> 44 89 c7 89 44 24 0c e8 01 a3 f8 ff 8b 44 >> 2022-12-22T14:09:51.419438+08:00 [localhost] kernel: RSP: >> 002b:00007ffe6ecca530 EFLAGS: 00000293 ORIG_RAX: 000000000000004a >> 2022-12-22T14:09:51.419439+08:00 [localhost] kernel: RAX: >> ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff03feef20b >> 2022-12-22T14:09:51.419439+08:00 [localhost] kernel: RDX: >> 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000003 >> 2022-12-22T14:09:51.419440+08:00 [localhost] kernel: RBP: >> 0000000000002000 R08: 0000000000000000 R09: 00000000024bcfb0 >> 2022-12-22T14:09:51.419440+08:00 [localhost] kernel: R10: >> fffffffffffff4bf R11: 0000000000000293 R12: 00000000000006b7 >> 2022-12-22T14:09:51.419440+08:00 [localhost] kernel: R13: >> 000000000000003d R14: 0000000000000000 R15: 00000000024a1680 >> 2022-12-22T14:09:51.419441+08:00 [localhost] kernel: >> 2022-12-22T14:09:51.419441+08:00 [localhost] kernel: Modules linked >> in: [last unloaded: ecc] >> 2022-12-22T14:09:51.419442+08:00 [localhost] kernel: CR2: 0000000000000024 >> 2022-12-22T14:09:51.419442+08:00 [localhost] kernel: ---[ end trace >> 0000000000000000 ]--- >> 2022-12-22T14:09:51.419443+08:00 [localhost] kernel: RIP: >> 0010:f2fs_issue_flush+0x10e/0x180 >> 2022-12-22T14:09:51.419443+08:00 [localhost] kernel: Code: ba 01 00 00 >> 00 be 03 00 00 00 e8 ad e8 d5 ff 48 83 3b 00 74 1e 48 89 e7 e8 7f c1 >> 84 00 f0 ff 4b 24 8b 44 24 2c e9 66 ff ff ff ff 43 24 e9 4a ff ff >> ff 45 31 ff 4c 87 7b 28 4d 85 ff 74 d6 44 >> 2022-12-22T14:09:51.419443+08:00 [localhost] kernel: RSP: >> 0018:ffffc90003903df0 EFLAGS: 00010246 >> 2022-12-22T14:09:51.419444+08:00 [localhost] kernel: RAX: >> ffff888100106d80 RBX: 0000000000000000 RCX: 0000000000000000 >> 2022-12-22T14:09:51.419444+08:00 [localhost] kernel: RDX: >> 0000000010000088 RSI: 0000000000b0e2ba RDI: ffff888116227000 >> 2022-12-22T14:09:51.419445+08:00 [localhost] kernel: RBP: >> ffff888116227000 R08: 0000000000000000 R09: ffff8881162272a8 >> 2022-12-22T14:09:51.419445+08:00 [localhost] kernel: R10: >> 0000000000000000 R11: 0000000000000000 R12: 0000000000000024 >> 2022-12-22T14:09:51.419445+08:00 [localhost] kernel: R13: >> 0000000000b0e2ba R14: 0000000000b0e2ba R15: 0000000000000000 >> 2022-12-22T14:09:51.419446+08:00 [localhost] kernel: FS: >> 00007ff03fdf0b80(0000) GS:ffff88883f380000(0000) >> knlGS:0000000000000000 >> 2022-12-22T14:09:51.419446+08:00 [localhost] kernel: CS: 0010 DS: >> 0000 ES: 0000 CR0: 0000000080050033 >> 2022-12-22T14:09:51.419446+08:00 [localhost] kernel: CR2: >> 0000000000000024 CR3: 000000013d64e006 CR4: 0000000000770ee0 >> 2022-12-22T14:09:51.419447+08:00 [localhost] kernel: PKRU: 55555554 > > Thanks for the report! I'm adding this to regzbot: > > #regzbot ^introduced v6.1.1..v6.2 > #regzbot title f2fs: kernel NULL pointer dereference when writing file > Oops, I mean: #regzbot introduced v6.1.1..72a85e2b0a1e1e Also, Cc'ed other F2FS maintainers and relevant lists. Thanks. -- An old man doll... just what I always wanted! - Clara