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 2EBCC16F851 for ; Sat, 11 Jan 2025 06:15: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=1736576104; cv=none; b=arjlfEt+OXsWDbEAzgq4cRuBrDHWKXQ9ZY3Jc7kHxCo8JFCC1vFin5aj2kjRlYWcRnApbP0ascQflKqlDOptVv6m6U4TaCAc8rPRIp1Nx4K+Tc6QxdJg/PboQK9aFlG+/PkmKwScgZxyKZX31/kxIN6KnG7xqIPGl48TqdRa5so= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736576104; c=relaxed/simple; bh=wr+RAK9g05WuiRe/bjXTuDQ49MQLbWWrWqPKPrh6gwE=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=VFJc9LhOpnSZhIeYVLdyVXg4Gox4H3FhX88oC0eCpM+zhvGKSDoJKsDMJ2DTHgrXRtFrZ0v1UPScucdL+21o+A4/DshX6n5mLPn8/R9ZJivSVquCBU/ioIvwUcVk5kPATtRYZPDKDDZT9FGHijilsYgDZMypTPUNKnWbPE5F0ck= 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-3a9d57cff85so48288485ab.2 for ; Fri, 10 Jan 2025 22:15:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736576102; x=1737180902; 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=dugTJBikiTgl2DV9PwnrmfhR6gwaUJfc2fh5aPSeurY=; b=Elr08N3m62uaVpWe9DvtP6Zu+5ctphZlM5HE7XxN1+cE5fzrhfCDvZpbptlCImyJRK zCA2IBcOx02VVBS56W2ReowN820YEr+rigpkKDB7NUQ9kX6bFfeaYeFoTZftLsVeKRgM 9k78lWkPT7+VtZ1PCeuORhiXRUC3T9VL+jkK/OoXJ+VzQ+9gzpZVWDbg9WroZgKFHPwf ONLQQ26Ga7uw2C2vZoI2faVJQohOUFAMwSvbjAbGlfdEVVziDOYUOR7rge5jBeFuYPXC 8lOH9bN/6sBPwzdNE9tWk8d7geX/BWOvSJ+MrrYF8Xb185N6wrod9tZ6l3ZIC9qM2Kic 3r9A== X-Forwarded-Encrypted: i=1; AJvYcCW97ST1dCF30+aqxjR5mmEnqyvwUKtv929RulKrmpTInCipRTo5AOtslt07JhBbEKx7ezqLaxdnScKD5+s=@vger.kernel.org X-Gm-Message-State: AOJu0Yz6OXwvDBkcUkszIW/6kLgTpHla0K3rYPIRcBMkeUtu4AqRxggP 4TWCtFFl5LJzJOUw945zJCKIdDOWjTjmMqTgPHtoRbgSPKMQ0QFb3ph9cwNSa00EAh2x41QR4Rk HmrwiTPxIlEl2ju4ZlhRh3GxZvi8+HNcLySvMpm8wxFf9D2GjwjbrRow= X-Google-Smtp-Source: AGHT+IECe5uBhf4weNO7Lozqreem9d4/ldbGRpmZ+X2VjJjbE1OGmmazL5PmGy6dOOCx1KVbPlfcHNZB0Z/iDssmgJ3hGssKuu8V 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:1d86:b0:3ce:5a89:326e with SMTP id e9e14a558f8ab-3ce5a893465mr32431245ab.13.1736576102356; Fri, 10 Jan 2025 22:15:02 -0800 (PST) Date: Fri, 10 Jan 2025 22:15:02 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67820c66.050a0220.d0267.003e.GAE@google.com> Subject: Re: [syzbot] [mm?] WARNING in __folio_rmap_sanity_checks (2) From: syzbot To: akpm@linux-foundation.org, david@redhat.com, hdanton@sina.com, liam.howlett@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, willy@infradead.org 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_truncate fs/open.c:65 [inline] do_ftruncate+0x462/0x580 fs/open.c:181 do_sys_ftruncate fs/open.c:196 [inline] __do_sys_ftruncate fs/open.c:201 [inline] __se_sys_ftruncate fs/open.c:199 [inline] __x64_sys_ftruncate+0x94/0xf0 fs/open.c:199 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: 1 PID: 10938 at ./include/linux/rmap.h:216 __folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216 Modules linked in: CPU: 1 UID: 0 PID: 10938 Comm: syz.0.314 Not tainted 6.13.0-rc6-syzkaller-g0703fa3785f1 #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 0e c3 ab ff 48 ff cb e9 f8 fd ff ff e8 01 c3 ab ff 4c 89 e7 48 c7 c6 80 9f 15 8c e8 f2 95 f5 ff 90 <0f> 0b 90 e9 e9 fd ff ff e8 e4 c2 ab ff 48 ff cb e9 34 fe ff ff e8 RSP: 0018:ffffc9000cdff098 EFLAGS: 00010246 RAX: fddae3826e06a400 RBX: ffffea0001450100 RCX: ffffc9000cdfec03 RDX: 0000000000000005 RSI: ffffffff8c0aa1e0 RDI: ffffffff8c5fb3a0 RBP: 000000000001318a R08: ffffffff901988f7 R09: 1ffffffff203311e R10: dffffc0000000000 R11: fffffbfff203311f R12: ffffea0001438000 R13: ffffea0001450100 R14: 0000000000000000 R15: 0000000000000003 FS: 00007f40ae2076c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558cd15608 CR3: 0000000029cd0000 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:5134 filemap_map_folio_range mm/filemap.c:3620 [inline] filemap_map_pages+0xfbb/0x1900 mm/filemap.c:3729 do_fault_around mm/memory.c:5349 [inline] do_read_fault mm/memory.c:5382 [inline] do_fault mm/memory.c:5525 [inline] do_pte_missing mm/memory.c:4046 [inline] handle_pte_fault mm/memory.c:5870 [inline] __handle_mm_fault+0x3f4e/0x6ee0 mm/memory.c:6013 handle_mm_fault+0x3e2/0x8c0 mm/memory.c:6182 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0x1a8f/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:3470 [inline] vm_mmap_pgoff+0x303/0x430 mm/util.c:580 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:0x7f40ad385d29 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:00007f40ae207038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f40ad576080 RCX: 00007f40ad385d29 RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f40ad401b08 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f40ad576080 R15: 00007ffe9513a848 Tested on: commit: 0703fa37 mm: remove PageTransTail() git tree: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm mm-unstable console output: https://syzkaller.appspot.com/x/log.txt?x=11a391df980000 kernel config: https://syzkaller.appspot.com/x/.config?x=9a23460a3770d89c dashboard link: https://syzkaller.appspot.com/bug?extid=c0673e1f1f054fac28c2 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Note: no patches were applied.