From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f207.google.com (mail-il1-f207.google.com [209.85.166.207]) (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 0C0CA198E8C for ; Thu, 26 Dec 2024 21:44:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735249465; cv=none; b=R6ywOC0jW4VTGhcsgKpvNfQSeKQYLRhIdU/r7oTFdK6r0hvjwf0JDVmXm+OhqfTkRPgei36VoKiwkzwFfKqslYggsV2uuuGz53FDRWRrHzr2cGNuYwTmQd/RF87XEWzPIvuzsTKgL/0J1SbJJ1f47De00UKrQQ35MzDkoUPZsNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735249465; c=relaxed/simple; bh=NwuLxqrMHYjzHd3nPzjelzlOxCb20XD7pDSvgbfFA+w=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=TjSYAoom1dkVeyyz2teVuaVEH3ZbZSWgsuBRJ/Y51FhFwbLRxnjt9Z8lDV5UKJPiVf3hSF1t59PtqWm7lFmovbvuPsmMmiZkWe6JTuYLS/CS5zFsc+ahVlsjDVM8ZhCx9p2sur2sRbx/LHK4cCRCnnwwhVoF0T4eHDP1uVYIJrg= 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.207 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-f207.google.com with SMTP id e9e14a558f8ab-3a7d60252cbso57739405ab.0 for ; Thu, 26 Dec 2024 13:44:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735249463; x=1735854263; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U9BBVFdpmelnGBdByk8AQjzuGOhr/Qdln3EjFJahLsE=; b=Mi/MkuoboJudT3V1JHFrzCeZrmqjuom/PV5iut2nOYT5P8dtX6Tc9afs5+xTXNn3RC 0hqkw3cI5UQvLAAW7y2DMfoPtSwZy7I5+CrgPpUmhP8kXTdAZfLyd1yOT65MOc6NX9ej dPaQEUFB54vDGq6e56jhK+D7B/+Ev9IhapuMMqjrScqNsodPlx3CNG0v2JsFrXpMX3n0 aZiVO8hxbBRuiUvae1o5KngQGWJETvuJ7b4YRDX27rLyWQopf9cQt2pROBQWx6g+R3Jh I/O4FwBzPkgsx6wAwuI8EeddEIq9vPQXhGiZFQkBJ1mobN9Grg5blOoOVEZLfoW5txve wxDg== X-Forwarded-Encrypted: i=1; AJvYcCVzwE1/xEFCxOZw1CccyKM/zYBg9N07BN8ZRwsGIuBQ6M3NhA/zRiXZIq9mnG+5qWQAS8Bibc0gt4uNjiE=@vger.kernel.org X-Gm-Message-State: AOJu0Yxja6QTOirLTWnaoYZETIb+Ya24/7vQGaIP/jiRtt8WB3yHzGxp f3CLaEa2jiH7ij7/XWyo9MsSGQ66gqnY/I12BNUULJ1Bj0TojX8/dFzoICEBI2myeQqOSYVnHfD wH9ILxqdNC/HCl9Npfqt1nRTPlgMmlCCKzedgQaZq8okxYtWd07w+2mM= X-Google-Smtp-Source: AGHT+IHeQ2EkO7BAuFTMySi+x97oob8WIlAuDYl4DBF3hHhbQw8qiaOaEHLr0e5hMV1mEe61QL1usdW4HY0rJd3OkEY1l3q2oIl8 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:1488:b0:3a7:e956:13fc with SMTP id e9e14a558f8ab-3c2fee1244amr196657545ab.5.1735249463232; Thu, 26 Dec 2024 13:44:23 -0800 (PST) Date: Thu, 26 Dec 2024 13:44:23 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <676dce37.050a0220.2f3838.0472.GAE@google.com> Subject: [syzbot] [fs?] [mm?] KCSAN: data-race in read_pages / read_pages (4) From: syzbot To: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, 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 found the following issue on: HEAD commit: 9b2ffa6148b1 Merge tag 'mtd/fixes-for-6.13-rc5' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10431018580000 kernel config: https://syzkaller.appspot.com/x/.config?x=87d3cfca6847d1fa dashboard link: https://syzkaller.appspot.com/bug?extid=e1d2475cbd1f0c63692f compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/8f3f5cceed80/disk-9b2ffa61.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/1ba00b70d91e/vmlinux-9b2ffa61.xz kernel image: https://storage.googleapis.com/syzbot-assets/b99c1bb4d63f/bzImage-9b2ffa61.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+e1d2475cbd1f0c63692f@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in read_pages / read_pages read-write to 0xffff8881034df5e0 of 4 bytes by task 9479 on cpu 1: read_pages+0x23f/0x540 mm/readahead.c:170 page_cache_ra_unbounded+0x2b8/0x310 mm/readahead.c:295 do_page_cache_ra mm/readahead.c:325 [inline] page_cache_ra_order mm/readahead.c:524 [inline] page_cache_async_ra+0x40c/0x420 mm/readahead.c:674 do_async_mmap_readahead mm/filemap.c:3231 [inline] filemap_fault+0x2d1/0xb30 mm/filemap.c:3330 __do_fault+0xb6/0x200 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing mm/memory.c:3979 [inline] handle_pte_fault mm/memory.c:5801 [inline] __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0xe98/0x2ac0 mm/memory.c:6112 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0xf2c/0x2670 mm/gup.c:1494 populate_vma_page_range mm/gup.c:1932 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2035 do_mlock+0x415/0x510 mm/mlock.c:653 __do_sys_mlock mm/mlock.c:661 [inline] __se_sys_mlock mm/mlock.c:659 [inline] __x64_sys_mlock+0x36/0x40 mm/mlock.c:659 x64_sys_call+0x26b2/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:150 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read-write to 0xffff8881034df5e0 of 4 bytes by task 9477 on cpu 0: read_pages+0x23f/0x540 mm/readahead.c:170 page_cache_ra_unbounded+0x266/0x310 do_page_cache_ra mm/readahead.c:325 [inline] page_cache_ra_order+0xf7/0x110 mm/readahead.c:524 do_sync_mmap_readahead+0x267/0x2a0 mm/filemap.c:3203 filemap_fault+0x32f/0xb30 mm/filemap.c:3344 __do_fault+0xb6/0x200 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing mm/memory.c:3979 [inline] handle_pte_fault mm/memory.c:5801 [inline] __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0xe98/0x2ac0 mm/memory.c:6112 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0xf2c/0x2670 mm/gup.c:1494 populate_vma_page_range mm/gup.c:1932 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2035 mm_populate include/linux/mm.h:3396 [inline] vm_mmap_pgoff+0x1d6/0x290 mm/util.c:585 ksys_mmap_pgoff+0x286/0x330 mm/mmap.c:542 x64_sys_call+0x1940/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000001f -> 0x0000001c Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 9477 Comm: syz.5.1573 Tainted: G W 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup