From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB90DC433F5 for ; Sat, 4 Dec 2021 09:56:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2D6196B007E; Sat, 4 Dec 2021 04:55:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 284A86B0080; Sat, 4 Dec 2021 04:55:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 173046B0087; Sat, 4 Dec 2021 04:55:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0160.hostedemail.com [216.40.44.160]) by kanga.kvack.org (Postfix) with ESMTP id 091876B007E for ; Sat, 4 Dec 2021 04:55:29 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C41E81839449A for ; Sat, 4 Dec 2021 09:55:18 +0000 (UTC) X-FDA: 78879653916.15.966DB1E Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by imf31.hostedemail.com (Postfix) with ESMTP id 702D41046300 for ; Sat, 4 Dec 2021 09:55:18 +0000 (UTC) Received: by mail-io1-f69.google.com with SMTP id s199-20020a6b2cd0000000b005ed3e776ad0so4399756ios.18 for ; Sat, 04 Dec 2021 01:55:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=u3AsoxQU/tK950hpFqbByeUWB2sygjl3RJ7kN22TcwA=; b=a20JIep+T49hh6c/Jid+phLFHTzHllBSuBtpXGLPAm6R3Zf25hSd/iupY9taWtmnWR RdXW0DiNAn6o+7KFo+Wo5c9IiF0AM6FDPemUvseL4piiUXFtc9JonvcWj4hrp8Dif5AT J2SlpEDvYoj7pI+wmTh5l7dTVddkexTuPETiE/SN4IqJckY6z7glcn/JJwxN2AKSnwo9 xAi9pf40nBw72UpXeoWjgY6UKy+o5CmTHNTLsPmkn3taWpS6EN1ce3o3dUafPWugg+hT fBf1IUiJJ7/Xb6vlZQTCRSL7ly0SzfRJlsCXGr7H56KuyiCpUju7SRcD+Qtt3IuRj7u/ 2tAQ== X-Gm-Message-State: AOAM533RWY6q2fjOnXCf0HCnCsmEmvNsG+XCAMBzthsnNPm+ZW2u8kdo dNWL6RCT60vWDnhYN6J4fhYfd+TmeKJX96/RYzUY6rQAF/yB X-Google-Smtp-Source: ABdhPJw1obiBok/ARF2Pcafr1QlBTnCw+v2GFk1FSdlOe1581hI6USfe8e1YUTTgfJMIt0Q/vDZdgnIJNqpEHPs8j1trWt+9MLn1 MIME-Version: 1.0 X-Received: by 2002:a92:c562:: with SMTP id b2mr23168568ilj.108.1638611717923; Sat, 04 Dec 2021 01:55:17 -0800 (PST) Date: Sat, 04 Dec 2021 01:55:17 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000005f297e05d24f05f6@google.com> Subject: [syzbot] BUG: unable to handle kernel NULL pointer dereference in folio_mark_dirty From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf31.hostedemail.com; dkim=none; spf=pass (imf31.hostedemail.com: domain of 3BTurYQkbADwqwxiYjjcpYnngb.emmejcsqcpamlrclr.amk@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.69 as permitted sender) smtp.mailfrom=3BTurYQkbADwqwxiYjjcpYnngb.emmejcsqcpamlrclr.amk@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 702D41046300 X-Stat-Signature: 9jpkngscqk83s19r5ohqq7tupicmz7do X-HE-Tag: 1638611718-661906 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, syzbot found the following issue on: HEAD commit: 58e1100fdc59 MAINTAINERS: co-maintain random.c git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1362881eb00000 kernel config: https://syzkaller.appspot.com/x/.config?x=e9ea28d2c3c2c389 dashboard link: https://syzkaller.appspot.com/bug?extid=7cd473c2cac13fd2dd72 compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+7cd473c2cac13fd2dd72@syzkaller.appspotmail.com BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 70764067 P4D 70764067 PUD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6541 Comm: syz-executor.3 Not tainted 5.16.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc900027ff7f8 EFLAGS: 00010246 RAX: 1ffffffff14fef03 RBX: ffffffff8a7f7818 RCX: ffff88801b40d700 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffea0002790ec0 RBP: dffffc0000000000 R08: ffffffff81b0fa16 R09: fffff940004f21d9 R10: fffff940004f21d9 R11: 0000000000000000 R12: ffff88806c11c7b0 R13: 0000000000000000 R14: 1ffffd40004f21d9 R15: ffffea0002790ec0 FS: 0000555557165400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 0000000030d85000 CR4: 00000000003526e0 Call Trace: folio_mark_dirty+0x136/0x270 mm/page-writeback.c:2639 f2fs_update_meta_page+0x4b/0x380 fs/f2fs/segment.c:2485 do_checkpoint fs/f2fs/checkpoint.c:1513 [inline] f2fs_write_checkpoint+0x31ad/0x5430 fs/f2fs/checkpoint.c:1674 f2fs_issue_checkpoint+0x361/0x4e0 sync_filesystem+0x19c/0x1f0 fs/sync.c:63 generic_shutdown_super+0x6b/0x300 fs/super.c:448 kill_block_super+0x79/0xd0 fs/super.c:1397 kill_f2fs_super+0x2f9/0x3c0 fs/f2fs/super.c:4478 deactivate_locked_super+0xa7/0xf0 fs/super.c:335 cleanup_mnt+0x462/0x510 fs/namespace.c:1137 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x209/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f6cfdd59f57 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffcbddcad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6cfdd59f57 RDX: 00007fffcbddcbac RSI: 000000000000000a RDI: 00007fffcbddcba0 RBP: 00007fffcbddcba0 R08: 00000000ffffffff R09: 00007fffcbddc970 R10: 0000555557166903 R11: 0000000000000246 R12: 00007f6cfddb2105 R13: 00007fffcbdddc60 R14: 0000555557166810 R15: 00007fffcbdddca0 Modules linked in: CR2: 0000000000000000 ---[ end trace 08eda5a5e35b48a0 ]--- RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc900027ff7f8 EFLAGS: 00010246 RAX: 1ffffffff14fef03 RBX: ffffffff8a7f7818 RCX: ffff88801b40d700 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffea0002790ec0 RBP: dffffc0000000000 R08: ffffffff81b0fa16 R09: fffff940004f21d9 R10: fffff940004f21d9 R11: 0000000000000000 R12: ffff88806c11c7b0 R13: 0000000000000000 R14: 1ffffd40004f21d9 R15: ffffea0002790ec0 FS: 0000555557165400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 0000000030d85000 CR4: 00000000003526e0 --- 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.