From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) (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 118C733EA for ; Sat, 28 Dec 2024 04:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735361783; cv=none; b=lXQybZEKMPWk8RZbIWNzYyuJwzSC/U6b+H4GrS2B7gzfAWiN2E7iQg6M4OXGb3PVs4Qe3lTUe1LMUNg76IF37m04GBemumrd+2FDLVYMpji9c0okPqPNBFjgfZWW3GvwD44+JqTECKRsMuFwk7ZN+mZf9Khj1JCK0e5l0MU5DWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735361783; c=relaxed/simple; bh=KRMwW14apJnfnSzY1kNF9NysexjJ9vXaS923qh77+vE=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=rtxK3vLFdYwHRdXRMpHDjWmhsay2KrNtf+PYunDvASNy9WA9PgviEpb1uBCotaEnNW59G45Qs5e1gkqp2PM4+HhWY2o0lTLVtHj25l1u53Ue9uei9qi6FxRkghjZEiue1ZTvgSxxatF096ODIN+M3nbLx+vJ1J0TW59rcn4+Fms= 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.166.78 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-io1-f78.google.com with SMTP id ca18e2360f4ac-844dfe8dad5so1364457539f.1 for ; Fri, 27 Dec 2024 20:56:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735361781; x=1735966581; 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=+MkkeKXyFJ29jF/+ta0Chj3dKPqy8UaYWMad3lmkeIw=; b=QGmvu/lUMUtyTLEDt743FCMFxa08rjGRanCbmJxbJzgqyvm+gruIZjz7Ry7GRTw9CO oVtIbSw0UN2jSEQAP/suhA4uAFbwlSut+X0klpc5YTWkRVCDhhz6xIXq5NOuZde3lqSA +XJC71ypF9Aj6wwmNFU8O7Jn78pGmMrZanIKRC9of/VsufUXp0SMcgrK3Zl+mHbaqHXx 31Y5tIeHt1RPkiRQbd20wEg31MEaKMv1ry8p2dsAREDjWEf5lcn2Wk4JHsF1yrgI0tnT EW8SPWQRYPzq5p82cDcBaqx8btDjR5q56PK8JiTLQP8LB7uMvcRQ17ERWJ2N5MQA5g1k +ODw== X-Forwarded-Encrypted: i=1; AJvYcCXmljT/tTelhs6hy4I9acqN1r2ZjXUk6suvVGUPrm8D+oIKXRcmMy1T1psLZdifOlFbI8CnzxnzpL8nGwA=@vger.kernel.org X-Gm-Message-State: AOJu0YyazC23BrOLCkOodEX+ahCFtEFt07oL1IanO/uP0sGOzNcqdDXP 7YlqApziXqhp1iH3z32OrpE8oSZX6OZexB0TMfklAiHkY/jlJM52SDj9A0PgfOGUvYWDUcGZcpH d+yHZUsy+J+MHSvAMNxow3g6ROC/sgER9G7slMOefjHcsccBPR9J5yQ4= X-Google-Smtp-Source: AGHT+IHbfAfvcD3SlO6cvhSBPa7oSNBCfZgfuMgTkoW+n4HW7oVWtFHu/4xoR6JWL7O5O4oZVQf3fzIfeOW4gRewOgeNq5MHnHAm Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a92:ca47:0:b0:3a7:e701:bd0f with SMTP id e9e14a558f8ab-3c2d5b273d9mr233359015ab.21.1735361781116; Fri, 27 Dec 2024 20:56:21 -0800 (PST) Date: Fri, 27 Dec 2024 20:56:21 -0800 In-Reply-To: <6758f0cc.050a0220.17f54a.0001.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <676f84f5.050a0220.2f3838.0493.GAE@google.com> Subject: Re: [syzbot] [mm?] WARNING in __folio_rmap_sanity_checks (2) From: syzbot To: akpm@linux-foundation.org, david@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, willy@infradead.org Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 8155b4ef3466 Add linux-next specific files for 20241220 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=15248af8580000 kernel config: https://syzkaller.appspot.com/x/.config?x=9c90bb7161a56c88 dashboard link: https://syzkaller.appspot.com/bug?extid=c0673e1f1f054fac28c2 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1652fadf980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/98a974fc662d/disk-8155b4ef.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2dea9b72f624/vmlinux-8155b4ef.xz kernel image: https://storage.googleapis.com/syzbot-assets/593a42b9eb34/bzImage-8155b4ef.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/07bcc698db35/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c0673e1f1f054fac28c2@syzkaller.appspotmail.com do_ftruncate+0x4a1/0x540 fs/open.c:192 do_sys_ftruncate fs/open.c:207 [inline] __do_sys_ftruncate fs/open.c:212 [inline] __se_sys_ftruncate fs/open.c:210 [inline] __x64_sys_ftruncate+0x94/0xf0 fs/open.c:210 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7889 at ./include/linux/rmap.h:216 __folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216 Modules linked in: CPU: 0 UID: 0 PID: 7889 Comm: syz.0.163 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216 Code: 0f 0b 90 e9 b7 fd ff ff e8 8e cb ab ff 48 ff cb e9 f8 fd ff ff e8 81 cb ab ff 4c 89 e7 48 c7 c6 00 a7 15 8c e8 32 a4 f5 ff 90 <0f> 0b 90 e9 e9 fd ff ff e8 64 cb ab ff 48 ff cb e9 34 fe ff ff e8 RSP: 0018:ffffc90002f26fd8 EFLAGS: 00010246 RAX: 2a0e9269706cf300 RBX: ffffea00014280c0 RCX: ffffc90002f26b03 RDX: 0000000000000005 RSI: ffffffff8c0aaba0 RDI: ffffffff8c5fed00 RBP: 00000000000131bb R08: ffffffff901ab1f7 R09: 1ffffffff203563e R10: dffffc0000000000 R11: fffffbfff203563f R12: ffffea0001420000 R13: ffffea00014280c0 R14: 0000000000000000 R15: 00000000000001fc FS: 00007f75ef9f16c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020a56000 CR3: 00000000642f0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __folio_add_rmap mm/rmap.c:1170 [inline] __folio_add_file_rmap mm/rmap.c:1489 [inline] folio_add_file_rmap_ptes+0x82/0x380 mm/rmap.c:1511 set_pte_range+0x30c/0x750 mm/memory.c:5136 filemap_map_folio_range mm/filemap.c:3639 [inline] filemap_map_pages+0xfbe/0x1900 mm/filemap.c:3748 do_fault_around mm/memory.c:5351 [inline] do_read_fault mm/memory.c:5384 [inline] do_fault mm/memory.c:5527 [inline] do_pte_missing mm/memory.c:4048 [inline] handle_pte_fault+0x3888/0x5ee0 mm/memory.c:5890 __handle_mm_fault mm/memory.c:6033 [inline] handle_mm_fault+0x11f5/0x1d50 mm/memory.c:6202 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0x1a92/0x4140 mm/gup.c:1491 populate_vma_page_range+0x264/0x330 mm/gup.c:1929 __mm_populate+0x27a/0x460 mm/gup.c:2032 mm_populate include/linux/mm.h:3400 [inline] vm_mmap_pgoff+0x303/0x430 mm/util.c:585 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:607 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f75eeb85d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f75ef9f1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f75eed76080 RCX: 00007f75eeb85d29 RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f75eec01b08 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f75eed76080 R15: 00007ffd2129f438 --- 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.