From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.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 BA44F219ED for ; Sun, 29 Dec 2024 07:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735456384; cv=none; b=GgVqaDo6eDWoG5Ul8nyMVNrUokhHOEH84J7RwS+KkpmBbHfaQvNqT2F7+zj3KbiPJg8u28D/jX6IqzbFV+JDg53k6NHP3XQKw0un5UeNstjPo0Utspf9G9cMj5VaOxgM8iCr0rWoKoe/oY4dV2UXJ43ysC6VGgsVrYusVp9jVx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735456384; c=relaxed/simple; bh=cPkT+rKBYG42DkkUWv8qPIShuZ6kQQ3mcvgnjQze8KU=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Hg0B2ZWzuN+2cQ5kiKb6NXNu65K6V4F8REFcsrcWvVgk92pECO19do9E4RbZy+AgfPOZ6SgzyGfh5zsXKh/lIi9gVitoBhmKKg997DBPYxzrZgiD8kY+5xpiinZmVx+vEfzUXzw0q9ZIJnqzoOeQMjgCSXlbTZyDoE6BTzoWGco= 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.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-il1-f198.google.com with SMTP id e9e14a558f8ab-3a81684bac0so172283815ab.0 for ; Sat, 28 Dec 2024 23:13:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735456381; x=1736061181; 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=Qi2e/3gVZ8DzqT6/AmLkV45jgWJWPsNNel7Ivz/qS5k=; b=Rmr0/Nsva99Cr1nUa/EV7WBP3FePqJ3cpT2GATU5bc7FJfePJyFC41eHOsT5z5C6wm GBVVu+8QxU7dMN3D6PwJvuoh5hSixsy280ViuNZ7wILiiVYFqOqYFzd9F5kFr2+Ptq2+ Nj+G7sjuUWaewUgythkCnKB01+rWXc4+lL1D0HkIRuvmOHNeGtxp/n4zSquLGrjRvv7d KVmEu2cwaU//Vko+rsuuwaYLTqpYcIJ8EKx3D5PqO4rQPjjgf4CMudo8/7UISgdZl7tg 4Ce3pCIllL9hW6zbFiiNlyAY1saeMCoaXrZtM/aCAQrNAxHMR1BkaWOhmtJaL1qDuAG8 cUpg== X-Forwarded-Encrypted: i=1; AJvYcCUL2HX9gxgqDED1W17SDPqNNIisNiM0AzimOU+JxL9ZdtvsI6teMZWVW7tgdrgZD3eoM3+hfhXVlNaLGLc=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3mwaMRFZzs97Zjt4F4GXMJpym/WMPLIrgzRNxlFRQ1PFAs24I ponDy+4e2kQibwVHINNR0h5fh1H54iuW4aw+oxCaZMxintPeGcT/+kjwMMxRLQMb8CVBzTuAj4v QTCjP6uAX0s1OBN8+m5CobHiQVn3kKMcqHvtYIXzbSyN5EhBIXZ7SZnQ= X-Google-Smtp-Source: AGHT+IEm53PAnszyzBllgnCNyHWYUhby70S5qRntL8Xp6Ux/stPuupzm1BK5urBNBKUBmUkC8qhNqGt5BZRdolMzRrUEnhLTjd44 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:12ca:b0:3a7:fede:7113 with SMTP id e9e14a558f8ab-3c2d5247c76mr318305045ab.18.1735456381544; Sat, 28 Dec 2024 23:13:01 -0800 (PST) Date: Sat, 28 Dec 2024 23:13:01 -0800 In-Reply-To: <20241229064212.638-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6770f67d.050a0220.226966.00ba.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 filemap_map_pages kill_block_super+0x44/0x90 fs/super.c:1710 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2089 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1414 task_work_run+0x24f/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7157 at mm/filemap.c:3639 filemap_map_folio_range mm/filemap.c:3639 [inline] WARNING: CPU: 1 PID: 7157 at mm/filemap.c:3639 filemap_map_pages+0x1012/0x1aa0 mm/filemap.c:3749 Modules linked in: CPU: 1 UID: 0 PID: 7157 Comm: syz.1.33 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:filemap_map_folio_range mm/filemap.c:3639 [inline] RIP: 0010:filemap_map_pages+0x1012/0x1aa0 mm/filemap.c:3749 Code: 77 c6 ff e9 73 fd ff ff e8 eb 77 c6 ff 48 ff cb e9 90 fe ff ff e8 de 77 c6 ff 48 89 df 48 c7 c6 00 b2 13 8c e8 2f 52 10 00 90 <0f> 0b 90 e9 89 fe ff ff f3 0f 1e fa 48 8b 5c 24 20 48 89 de 48 81 RSP: 0000:ffffc9000472f160 EFLAGS: 00010246 RAX: a1fe4f27a7cbfa00 RBX: ffffea0001470000 RCX: ffffc9000472ed03 RDX: 0000000000000005 RSI: ffffffff8c0aac20 RDI: ffffffff8c5feec0 RBP: ffffc9000472f370 R08: ffffffff901ab1f7 R09: 1ffffffff203563e R10: dffffc0000000000 R11: fffffbfff203563f R12: 00000000fffffc01 R13: 00000000000001fc R14: ffffea0001470008 R15: dffffc0000000000 FS: 00007f75e30f86c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f744d77a000 CR3: 000000005da52000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:0x7f75e2385d29 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:00007f75e30f8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f75e2576160 RCX: 00007f75e2385d29 RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f75e2401b08 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f75e2576160 R15: 00007fff1d0db1f8 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=15d6b2c4580000 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=107ab2c4580000