From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 653A337E2ED for ; Fri, 10 Jul 2026 23:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783724664; cv=none; b=EVPf9r03AlgG1uCqoH0rCKu84wO1ygnJYocOUeIBpwCdvBE0lWU/ngSf4WKotn67gF/PisXAANSZcKA2GgVuLuV7iHc0bkez15vJtmgfcAtpInLEWt8IvTVCqXLNPurOfzUl5icGx74PzQ6hiSUuu57l6xAyxhRZTjxvrpDygVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783724664; c=relaxed/simple; bh=5pt2RLrfUI7Ak37enovj7BxtkaS8nvHbQ4Zf4Ulk78A=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=OKWix9/3n4w0VOlaC9XVYfElslMlHsTp15paSrwHpzNAtbdJqEpKSD9xZ8XOTYv0dU3rzueuy2IzJZLenqxlyYM5YJ3xDGK/yzntZG1R85eYJrkZSYrgZOx+xTDKa0PGiYAL1dj961+X5Dg+5UpmtsCOwyehebNY+jXk5dAL8aw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-49001defc4dso1925247b6e.3 for ; Fri, 10 Jul 2026 16:04:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783724659; x=1784329459; h=content-type:cc:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=PILKuP1baRMrI40srAIIZX6vgxgjZMMRu2N2qYBgI64=; b=Ef8n+XEU2s9J2x4y+eX1WIEnJ5cBQDXNzaMHXqk5dI9qy7Gb+cY11M34BhNksEMTOv SPzt4vB+2BPtz1tgm3QeLtJ2RV9XgVrhZgI3tvIkmoZZ0O/ZeWzOw/KO3B6E9IDiRjwn eXc5BBDlKsxT+9mPBcfkMUSgdNXJQdz8Qw+qAtLwQ1EBDdnOoNlnNeocobByqJwa9C4Y zVuvI3Mn2c3v1FKORKFZQpbTzOZUo9IBkt8b8PWn8bEVMpO3Jb+M6b9HfbhgQUAEWc7H DqE5CEdm27Wm3CxM1rSWPOwQnb5+XCb8ZvKf27osKg8RM1BDkR6E3MjJRtTR0VpitliQ 1sUw== X-Gm-Message-State: AOJu0YxYnVl412nhf9Ukj5/ctqMIc23EWyPwjzgBzPaI0OFmhOgaVxhs p+QlJafe5DmJIV2UHUVf911lC7gNhPyoKLXW2g9cU3j/8chv7MNYeF0ftgVQDPXL/U7fVJIqWY4 LLG9oPI4f130r2J4EqmF71BpmHFdfwUyYkZ+gU2DdFWzqHiDi1klIbwY7B6g= Precedence: bulk X-Mailing-List: syzbot@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:c3f2:b0:4a3:58a6:8a2f with SMTP id 5614622812f47-4a42af2782cmr764717b6e.33.1783724659442; Fri, 10 Jul 2026 16:04:19 -0700 (PDT) Date: Fri, 10 Jul 2026 16:04:19 -0700 In-Reply-To: <20260709184740.1286561-1-willy@infradead.org> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a517a73.278cdcd2.e885.0009.GAE@google.com> Subject: [syzbot ci] Re: Use generic_file_read_iter() in hugetlbfs From: syzbot ci To: akpm@linux-foundation.org, christian@brauner.io, david@kernel.org, jack@suse.cz, jane.chu@oracle.com, linmiaohe@huawei.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, muchun.song@linux.dev, nao.horiguchi@gmail.com, osalvador@suse.de, willy@infradead.org Cc: syzbot@lists.linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot ci has tested the following series [v2] Use generic_file_read_iter() in hugetlbfs https://lore.kernel.org/all/20260709184740.1286561-1-willy@infradead.org * [PATCH v2 01/10] mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page() * [PATCH v2 02/10] hugetlb: Mark some function arguments as const * [PATCH v2 03/10] filemap: Remove checks in mapping_set_folio_order_range() * [PATCH v2 04/10] hugetlb: Set mapping folio order * [PATCH v2 05/10] memory-failure: Remove raw_hwp_list_head() * [PATCH v2 06/10] memory-failure: Prevent UAF in raw_hwp_page list * [PATCH v2 07/10] mm: Handle hugetlb correctly in is_page_hwpoison() * [PATCH v2 08/10] filemap: Add hwpoison handling to filemap_read() * [PATCH v2 09/10] filemap: Add support for authoritative mappings * [PATCH v2 10/10] hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter() and found the following issue: BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio Full report is available here: https://ci.syzbot.org/series/35ead019-1e81-4d15-8801-8ff11d9c959b *** BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio tree: mm-new URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/akpm/mm.git base: dc59e4fea9d83f03bad6bddf3fa2e52491777482 arch: amd64 compiler: Debian clang version 22.1.6 (++20260514074242+fc4aad7b5db3-1~exp1~20260514074407.73), Debian LLD 22.1.6 config: https://ci.syzbot.org/builds/fedb89e4-11ba-4995-927f-a51101829a59/config syz repro: https://ci.syzbot.org/findings/7a0cb565-4340-4daf-8de2-06f5b1d2af93/syz_repro BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 8000000117bc9067 P4D 8000000117bc9067 PUD 0 Oops: Oops: 0010 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 5840 Comm: syz.2.19 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0018:ffffc900035eebf8 EFLAGS: 00010293 RAX: ffffffff82063559 RBX: 1ffff920006bdd84 RCX: ffff88810ba18000 RDX: 0000000000000000 RSI: ffffea0000948000 RDI: ffff88810139d200 RBP: ffffc900035eecb0 R08: ffffea0000948007 R09: 1ffffd4000129000 R10: dffffc0000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 1ffffd4000129000 R14: ffffea0000948000 R15: 1ffffd4000129001 FS: 00007f2e39ef46c0(0000) GS:ffff88818dc11000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000011578a000 CR4: 00000000000006f0 Call Trace: filemap_read_folio+0x12c/0x3a0 mm/filemap.c:2512 filemap_create_folio mm/filemap.c:2650 [inline] filemap_get_pages+0xe9a/0x21e0 mm/filemap.c:2714 filemap_read+0x428/0x1700 mm/filemap.c:2841 __kernel_read+0x4ca/0x960 fs/read_write.c:532 integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:222 [inline] ima_calc_file_hash+0x451/0x890 security/integrity/ima/ima_crypto.c:280 ima_collect_measurement+0x51b/0xa00 security/integrity/ima/ima_api.c:300 process_measurement+0x1272/0x1c10 security/integrity/ima/ima_main.c:425 ima_file_mmap+0x1b0/0x200 security/integrity/ima/ima_main.c:523 security_mmap_file+0x773/0xa20 security/security.c:2581 vm_mmap_pgoff+0x134/0x4e0 mm/util.c:575 ksys_mmap_pgoff+0x57d/0x760 mm/mmap.c:606 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2e38f9ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2e39ef4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f2e39215fa0 RCX: 00007f2e38f9ce59 RDX: 0000000000000007 RSI: 0000000000003000 RDI: 0000200000000000 RBP: 00007f2e39032e6f R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000040033 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2e39216038 R14: 00007f2e39215fa0 R15: 00007ffe3450a298 Modules linked in: CR2: 0000000000000000 ---[ end trace 0000000000000000 ]--- RIP: 0010:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0018:ffffc900035eebf8 EFLAGS: 00010293 RAX: ffffffff82063559 RBX: 1ffff920006bdd84 RCX: ffff88810ba18000 RDX: 0000000000000000 RSI: ffffea0000948000 RDI: ffff88810139d200 RBP: ffffc900035eecb0 R08: ffffea0000948007 R09: 1ffffd4000129000 R10: dffffc0000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 1ffffd4000129000 R14: ffffea0000948000 R15: 1ffffd4000129001 FS: 00007f2e39ef46c0(0000) GS:ffff88818dc11000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000011578a000 CR4: 00000000000006f0 *** If these findings have caused you to resend the series or submit a separate fix, please add the following tag to your commit message: Tested-by: syzbot@syzkaller.appspotmail.com --- This report is generated by a bot. It may contain errors. syzbot ci engineers can be reached at syzkaller@googlegroups.com. To test a patch for this bug, please reply with `#syz test` (should be on a separate line). The patch should be attached to the email. Note: arguments like custom git repos and branches are not supported.