From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 DF40D3612F6 for ; Tue, 2 Jun 2026 16:25:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780417545; cv=none; b=RgvniOX2/K9L357YWlFV1eEpKUh3GT9VoTyyBdIeSHLu1SgOJj+pFhywQPzIAwMtbbx9CCtTgCPEF7PDK+bMGV+SuY61qu7nnz6EZE6psfcorasWITrQ5FeIJKabUMD9Ul4npNbJAqVgyUYn3ofo1/QjcjSx0G2txbnpC1C16zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780417545; c=relaxed/simple; bh=uOkG7SRrFwd7pvQhYM8G3bBApdtmZAKOyqL/oS0QdTs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lRZNYubRZtOxxENWFb3xZ2Q/YdXN0D+l6il0+45YtRo9ILENw66zQ4qUx9MVUh7pjYd3yynycW5bcXiXEaE9dYOKTTSjyOIyVCHp/8cNdzCJTwxUIUGyyqQYww02wDmA21Z4cJcDLXnfHmHHYLlMpIoRrmbS6ZObc6UEvQeSzjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=sA0dQGJD; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sA0dQGJD" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-84275887a3fso498912b3a.1 for ; Tue, 02 Jun 2026 09:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780417543; x=1781022343; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GOCKFyLUJPCw0aUkfqnBjDq2OcY/GX3HSt8a5H5Uci0=; b=sA0dQGJDzJIfhUbyFWwcRL5M2AbhT4lmA9H4/XSisDd/0DFix1sgbFSZv9Q22kANIH yBW4Nxn1qy0P5kjXDP61UfWTek5xqQlqwWwYGzX0/ZVNVCMLCoLSdfL5R511Odoy+b3N 1VM8f3mZwJ+b4Ckz5u/3/NcyWw/UcZM9itk3AwBepjpKse1EqisAQr5R/lQTAxLljPoU vaR6Jvx3d7Zkl3uGIIJIhl3j7i9sSF6PAq2CC4cBG+FWvLXTXoJGQEHFxtzJbZY2D3Qb 3z/kqB3jgc4LqbozdvrQ+t5rMwXNkdYSZ7X7RVh/ihBirJXK/hPo8GfvsKwcZAxDxwff +1Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780417543; x=1781022343; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GOCKFyLUJPCw0aUkfqnBjDq2OcY/GX3HSt8a5H5Uci0=; b=FfLoqqgFnzmKYz+psWfKjOoGgWa/NBhxRRvtA6Z7vpYfA9uJqeCOo9yWrAVKejcu54 /zTepHsT30pA3hrXV00dXX96/JVr7Yed/5/sYu1fUaBuLac5opcSi7o/SVrT3Y834Bp6 TKvEUC7dGL30V0nmhkPsUg0OQfOQuxWH7wgCMpnGahL9ck1VJ0ju2d9tSCTO1nI1uYOt BVAefpeYWBrsB1qYbs1wnvv9Y01f9i30i4UMlgSCdo3nfUEtw7CqbCbXWvKL+crgLjxd ePsMV9AIU0OxvfEQcuVGKPpS4X7QXELnMY4Ji2vzMQm4obVe+QPjUo4acPeXJ1ud++UE j8mw== X-Forwarded-Encrypted: i=1; AFNElJ+LxX7wjFz9+Aye/BqJ3mQ6fYtLp5flGMbH6nbXjRt1fVZ9mGFxqrjOTG9Uo5psGjTgAHPxvLOvzuASXLI=@vger.kernel.org X-Gm-Message-State: AOJu0Ywj+MuQ/QJoAv+Gosl/q/ZDxLZmMSWDd5r6fnTWjWh91uDDuXuh hJRGt4bHYhx8KKEkV+9wnQFy9JuGDLWbvlZzOfi1AM9aCyjICd3zWuWc X-Gm-Gg: Acq92OHKOHipmLSV0tIucKZR81LjMxhleNuIndtwJRFJ7b7PJs8S8D9b2WdWye9DbGl Zg0irwKhz+lG/2Du+B4HeyZRt9bL4vzDe7aRuyemAatoAjKbxGfYJSccaYrvrwv5GD3cWPYvicL 91xM0WEdHrxlIcyVKvEw96TE+49ZIN7LhCQd0zH0Ojw0ORiygTL+4IrWeUQ5vz5/EEmQLJ8l4nf LnuBeZbYOUk2v+vIi6xwsKb9ORw4ke/UAvyrK8lsnoCJuPQeOHCgNxSeuOrRxZhWrSe/tntU7C6 0eQcyetKHlYiST7797I7/kKuEeKnyPBmeFvhqFWKKx2BI2ifT80q1dFgFMzKYn6z9HIq9lhaJV4 Yw0OJITUuPa6KQ/qWHaGCe53tTibHbZR6P7Okb506tIb5C0F3vrgznHhzNNskoDlgIhosholB40 LNEIUjKHzaGtA5XII1gcUi+ZhdE9qkBgWdAZoK+Uk/7gleZBdgkEaqqeFNVmOoAr/3rcLo2yYqf TmotyeU X-Received: by 2002:a05:6a00:b89:b0:842:5ea5:5fe0 with SMTP id d2e1a72fcca58-8426a5a39e2mr4028123b3a.6.1780417542948; Tue, 02 Jun 2026 09:25:42 -0700 (PDT) Received: from KASONG-MC4 ([101.32.222.185]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428221cc3dsm294619b3a.1.2026.06.02.09.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 09:25:42 -0700 (PDT) Date: Wed, 3 Jun 2026 00:25:37 +0800 From: Kairui Song To: syzbot Cc: akpm@linux-foundation.org, baohua@kernel.org, bhe@redhat.com, chrisl@kernel.org, kasong@tencent.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, syzkaller-bugs@googlegroups.com, youngjun.park@lge.com Subject: Re: [syzbot] [mm?] WARNING in swap_cluster_assert_empty Message-ID: References: <6a1eac8e.fbc46276.3c3783.0008.GAE@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a1eac8e.fbc46276.3c3783.0008.GAE@google.com> On Tue, Jun 02, 2026 at 03:12:30AM +0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 8fde5d1d47f6 Merge tag 'acpi-7.1-rc6' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=118c327a580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=8118209836970b54 > dashboard link: https://syzkaller.appspot.com/bug?extid=deedf22929084640666f > compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-8fde5d1d.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/529080512bd5/vmlinux-8fde5d1d.xz > kernel image: https://storage.googleapis.com/syzbot-assets/39c09b74f46c/bzImage-8fde5d1d.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+deedf22929084640666f@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > nr == SWAPFILE_CLUSTER && ci->extend_table > WARNING: mm/swapfile.c:471 at swap_cluster_assert_empty+0x2d5/0x320 mm/swapfile.c:471, CPU#3: syz.1.267/6778 > Modules linked in: > CPU: 3 UID: 0 PID: 6778 Comm: syz.1.267 Not tainted syzkaller #0 PREEMPT(full) > Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 > RIP: 0010:swap_cluster_assert_empty+0x2d5/0x320 mm/swapfile.c:471 > Code: 9b ff 49 8d 7d 50 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 46 49 83 7d 50 00 74 a5 e8 4c 09 9b ff 90 <0f> 0b 90 eb 9a e8 41 09 9b ff 90 0f 0b 90 e9 6f ff ff ff 48 89 ef > RSP: 0018:ffffc900039d7098 EFLAGS: 00010293 > RAX: 0000000000000000 RBX: 0000000000000200 RCX: ffffffff826d976c > RDX: ffff888037a62540 RSI: ffffffff826d97d4 RDI: ffff8880273450f8 > RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000200 > R10: 0000000000000200 R11: 0000000000000000 R12: 0000000000000200 > R13: ffff8880273450a8 R14: 0000000000000001 R15: 0000000000000000 > FS: 0000000000000000(0000) GS:ffff8880d6686000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000001b33323ffc CR3: 000000000e596000 CR4: 0000000000352ef0 > Call Trace: > > __free_cluster mm/swapfile.c:585 [inline] > free_cluster+0x14b/0x360 mm/swapfile.c:714 > __swap_cluster_free_entries+0x73f/0xa30 mm/swapfile.c:1894 > swap_put_entries_cluster+0x473/0x5b0 mm/swapfile.c:1584 > swap_put_entries_direct+0x123/0x1b0 mm/swapfile.c:2072 > shmem_free_swap+0x1f4/0x200 mm/shmem.c:985 > shmem_undo_range+0x3fd/0x1570 mm/shmem.c:1139 > shmem_truncate_range mm/shmem.c:1277 [inline] > shmem_evict_inode+0x3f3/0xc40 mm/shmem.c:1407 > evict+0x3c2/0xad0 fs/inode.c:841 > iput_final fs/inode.c:1960 [inline] > iput.part.0+0x605/0xf50 fs/inode.c:2009 > iput+0x35/0x40 fs/inode.c:1975 > dentry_unlink_inode+0x2c0/0x4c0 fs/dcache.c:476 > __dentry_kill+0x1d0/0x690 fs/dcache.c:718 > finish_dput+0x76/0x480 fs/dcache.c:927 > dput.part.0+0x456/0x570 fs/dcache.c:976 > dput+0x1f/0x30 fs/dcache.c:968 > __fput+0x519/0xb50 fs/file_table.c:518 > task_work_run+0x150/0x240 kernel/task_work.c:233 > exit_task_work include/linux/task_work.h:40 [inline] > do_exit+0x951/0x2af0 kernel/exit.c:976 > do_group_exit+0xd5/0x2a0 kernel/exit.c:1119 > get_signal+0x20ff/0x2210 kernel/signal.c:3037 > arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 > __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] > exit_to_user_mode_loop kernel/entry/common.c:98 [inline] > __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] > irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] > irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] > irqentry_exit+0x39e/0x970 kernel/entry/common.c:162 > asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 > RIP: 0033:0x7f3317d9ce61 > Code: Unable to access opcode bytes at 0x7f3317d9ce37. > RSP: 002b:0000000000000030 EFLAGS: 00010217 > RAX: 0000000000000000 RBX: 00007f3318015fa0 RCX: 00007f3317d9ce59 > RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000000000000011 > RBP: 00007f3317e32d6f R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 > R13: 00007f3318016038 R14: 00007f3318015fa0 R15: 00007ffc650798c8 > I think this is already fixed by: https://lore.kernel.org/20260515-swap-extend-table-fix-v2-1-833d72ad53e5@tencent.com I checked syzbot dashboard, the fix isn't included in the commit being tested.