From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (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 5C147C8DF for ; Sat, 28 Dec 2024 12:20:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735388404; cv=none; b=SBR1taX1jjT4rr4JQlv9beAmyqfYlhUPGDTGuP5zeNir0BkAiH2txyehU3mEsOVItIC/XXnqbOsw78KumYMjz3EsFAEheb945XGcYN9mdWiWjcHJ4y3hKM9DNqaQWwyD7NdsrgQSA8J62tAAX6mdvOtOa1gczcypqRqpzlFxGTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735388404; c=relaxed/simple; bh=q8Su1Shq8X6tMGFlLvDS/JI/3pN4HtaZy8NArOMj+Qs=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=B4NdDLYnpQRnuzqgt9LUqyJUfzgdQCxZIHTwtDF0t1l8RKXG6Ew1+oC6mGsNQPGJcyYeaHwBUv3rr8t7nSrvseZg4Fb4/redV7PZOLLOpoTyyhe69gCwH0cTgVSlvAhFEI/F9033EM2F2gRbUhAEbbBNl4FquKLhbC2a5wMEPLs= 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.200 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-il1-f200.google.com with SMTP id e9e14a558f8ab-3a9d303a5ccso161522055ab.3 for ; Sat, 28 Dec 2024 04:20:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735388402; x=1735993202; 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=/pnfSQeR9WWQFJJneMSuDety8Nxm8TDxlr6DeKsvbQw=; b=VNKjUlF/sX9N38PejDclTVGEYIC9PbomARldSXLOTNIQozxOba94sv6a7S+I3Y5iQs bK7ux/w4btfvKtX/hAW3qx8ABzSaWOIDgNkF/NTi8FLBbDt4G/f7jxV947l3S2pVVp4C aj6h5asvC+H2YCl2Ba84lroybYoTAmzKOR7QX4ot2PJd3cwfjfuXbbjANyRyi4OHoxoQ 03iydYg/0kA96pB8R5LAuu6UbQ4v/XkXM8YM6QSz7/oHTJXphVLnLxI2iuLpervWFGtT HG3NW3I7AaKGSO6WMRxX+pYDYqNEd5PWPOBKnZdGrnZeZE6S6c14SEIlWTEsB115iQbJ K7Ug== X-Forwarded-Encrypted: i=1; AJvYcCVyfFVzYNjD2sL3LfZhuC8BIX7ZNClQH8kVtCbQ6tG/nCVhizNt/ZKT3+cZZI/VRCFy410pxBHxrav0fX8=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8F73FOmseYZ2S3Y4j3V+jrolfaLx/OM937CYc7pt8Z6hUvHa8 w46hNQaA42dp82HRAbVRl1pWCN0DNQAnzxalYFBW9v0dFoW1NcwTaCXP8MLnQRex4cxCdqg63Ln Afr2gr+c1jl2y7OKeNe9M2KUiRjLu9ZT6SksuK1ujxj3N19vuSM6YY78= X-Google-Smtp-Source: AGHT+IF/9cw+GWBMM2369c6wPRQVoNaV+3wyF6STDNjW7FPw+zTuUpytpMMFKYlWPzfQSHxRXKvdT0xhVos7HlA1v0k8T+w1yoZu Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1d0e:b0:3a7:87f2:b013 with SMTP id e9e14a558f8ab-3c2d1e7df90mr232167775ab.4.1735388402069; Sat, 28 Dec 2024 04:20:02 -0800 (PST) Date: Sat, 28 Dec 2024 04:20:02 -0800 In-Reply-To: <20241228103627.577-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <676fecf2.050a0220.226966.00ad.GAE@google.com> Subject: Re: [syzbot] [mm?] WARNING in __folio_rmap_sanity_checks (2) From: syzbot To: hdanton@sina.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: WARNING in __folio_rmap_sanity_checks 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: 8512 at ./include/linux/rmap.h:222 __folio_rmap_sanity_checks+0x52a/0xb30 include/linux/rmap.h:222 Modules linked in: CPU: 0 UID: 0 PID: 8512 Comm: syz.4.115 Not tainted 6.13.0-rc3-next-20241220-syzkaller-05236-g8155b4ef3466-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__folio_rmap_sanity_checks+0x52a/0xb30 include/linux/rmap.h:222 Code: 49 ff cd e9 29 fd ff ff e8 e3 c3 ab ff 48 ff cd e9 6b fd ff ff e8 d6 c3 ab ff 4c 89 e7 48 c7 c6 60 aa 15 8c e8 87 9c f5 ff 90 <0f> 0b 90 e9 66 fd ff ff e8 b9 c3 ab ff 48 ff cd e9 a6 fd ff ff e8 RSP: 0018:ffffc9000d986fb8 EFLAGS: 00010246 RAX: 9579638a77c65000 RBX: 00000000000001f8 RCX: ffffc9000d986b03 RDX: 0000000000000005 RSI: ffffffff8c0aac20 RDI: ffffffff8c5ff180 RBP: ffffea00014d8200 R08: ffffffff901ab2f7 R09: 1ffffffff203565e R10: dffffc0000000000 R11: fffffbfff203565f R12: ffffea00014d0000 R13: ffffea00014d8200 R14: dffffc0000000000 R15: ffffea00014d8200 FS: 00007f399ed686c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555898e7808 CR3: 00000000776f0000 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:0x7f399df85d29 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:00007f399ed68038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f399e175fa0 RCX: 00007f399df85d29 RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f399e001b08 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f399e175fa0 R15: 00007fff8d381608 Tested on: commit: 8155b4ef Add linux-next specific files for 20241220 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12d84818580000 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 patch: https://syzkaller.appspot.com/x/patch.diff?x=12c850b0580000