From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 5B28C2DFA31 for ; Wed, 16 Apr 2025 04:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744779002; cv=none; b=UuiVY460k9d/W95mFbSlA4UmeLZhh2AngZ6HDmcjHIE2hUpLi1xckluCogdgujIW8IBtGcrB9uxhhqI0RDWo/i2jy1xQdsXd5vjkDxoXkQ3CwriQmt895iWl+b+CNvt2g9QQxzlQRNrFxMA7JCTiGiR6dfBCZ93961awkHcrRqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744779002; c=relaxed/simple; bh=OhRkXWEtLnOqVdJTAcuiio0mYk0H5f2XWzckmeTmTKI=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=dY2iw0NzlBAI+tdBoX3Cro9kVsyg6Md41nBJN7789QePG24OrDfN7yLJSYRhhGH46ke/QhcjuLAVrmZSMRADrFUf66KefOthewz/Z8R7ZkwUVGKy69Cqw4i0sxMRhYv+CNPNtuCM2laLl4XsY2sbqX8TUctAe1c4jAlr/1gxhH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=SJCb9qID; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="SJCb9qID" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-22622ddcc35so85233105ad.2 for ; Tue, 15 Apr 2025 21:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1744778999; x=1745383799; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=MKAAwB/hOefYxI11GY9A8nyHkRG5+D0+XuLDyRVSpkg=; b=SJCb9qID3AXWQGKJpxndrPPE1tbG/Gavry8bL7FRLK4QDHDIEHk5Q9q+rBwQ5DhQrc QOSEIv1em5Ox2dORYx9JVNXBaH+6688Sk094eqG1Zz9m0w0g5s+VeXZzIBsptwygtH5b oJxdfdC4cbPY6csQwUFwlCZn8cNccdDaneVou51Su0TkDOFfUWEXOECyWb/MgFTFnQ2k ioBkzIdnQGDjQqJguzLgmqAzCed4hqqXm25JcbiHqoL4k9epIMVglOjiwtgZ1N2wne8E gG+7YWqNJIyxSo1i4M0W8xtb8/ovOZxU1VLxSaVtgDJ34alHEOD4GxLoriIaRn7UW+If v7Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744778999; x=1745383799; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MKAAwB/hOefYxI11GY9A8nyHkRG5+D0+XuLDyRVSpkg=; b=eRo6oD6OgKd9weJkt/QAZgIZ1ccSuYMFW2YA+0I5+eDiHJMBpZPNbYe4LfIvpVVfyJ I2c+u1poNS8OQHuBwe8k3qJSIuCjpDtJ4ng/rxwol5i3O5cea9EimDRy26rAXwkipYy3 Qa1/JU5DuxjNmI5N1tNeA9ipKJPOUhVSO/2FrrS3JwwOz5eY780qAe2cgdmPvoqULmzI Jd/843t7/CLnNhXAXlWSfoy86CxuV0NwTRdTjmsASLlgFIRvQi7riUTjHUzZhLyTP+Ba yfkJkOUCg3MsnmpF20aTSW4vTcG0kNnoiZNW6z9529R82ZssxXTKvPacQ6Qpd2RNgPIh xHMA== X-Gm-Message-State: AOJu0YwfNe8ZJr0V6ckiub2oJ3CT+JV5lGE+TGew4yxG2qWwd/E4lcC8 NrLtaG4nJuxu5C1wE2mWm2RqEjI4RxoaI5prG/QzmDMj0j+/YON7qG9EphRxXdvgZAWODL+HOLy Z X-Gm-Gg: ASbGnctJxZRE5pc9rukvgyrNE8Mgk52P5SSrssAWIU0vPqyo47Wb+XhpWhswJOMtNqy r7PLznVWxdwdVjk6rUUuB8NCeGenmT5F1a8Gw8ptXMdwkukPvlhur11nCxWFWDlck9FbWWftOX+ Sw0POC6MuTct8aWw0uGZPJnMII4WgcGRoRSYttST3+nweJ7v95cVoc7mWJ2qUQJPLqvFxWoAFPy vEI4MYO0NaWpRLQLHeYTp/rGtVRXkyJHH84+QyqhFdELwhXxnqijPZ1VB8NAUVuAfCdW/ZC8XxS odax9XGVZzwWw7iiDBQfd9DYmOVZFANJqAZktZSxehKNnIc5GJ4KBy/cSR7szMgQlwSJug0TEH7 3s+2A55E/9teX9Q== X-Google-Smtp-Source: AGHT+IFdRCwiJVdLoDBx9ckxGY+j1NfTwmul/oMri0W2I2m67rWQR0KcaGFVoWD0gShCpk2TpGSUzw== X-Received: by 2002:a17:903:32c9:b0:21f:52e:939e with SMTP id d9443c01a7336-22c35912212mr8282085ad.28.1744778999459; Tue, 15 Apr 2025 21:49:59 -0700 (PDT) Received: from dread.disaster.area (pa49-181-60-96.pa.nsw.optusnet.com.au. [49.181.60.96]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c33fc4b3bsm4406165ad.170.2025.04.15.21.49.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 21:49:58 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.98) (envelope-from ) id 1u4uii-00000009Afb-0grK for linux-xfs@vger.kernel.org; Wed, 16 Apr 2025 14:49:56 +1000 Date: Wed, 16 Apr 2025 14:49:56 +1000 From: Dave Chinner To: linux-xfs@vger.kernel.org Subject: [6.15-rc2 regression] xfs: assertion failed in inode allocation Message-ID: Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi folks, After upgrading to ia current TOT kernel from 6.15-rc1, I'm now seeing these assert failures during inode allocation when running check-parallel: [ 355.630225] XFS: Assertion failed: freecount == to_perag(cur->bc_group)->pagi_freecount, file: fs/xfs/libxfs/xfs_ialloc.c, line: 280 [ 355.630301] ------------[ cut here ]------------ [ 355.630302] kernel BUG at fs/xfs/xfs_message.c:102! [ 355.630310] Oops: invalid opcode: 0000 [#1] SMP NOPTI [ 355.630315] CPU: 16 UID: 0 PID: 1167750 Comm: touch Not tainted 6.15.0-rc2-dgc+ #311 PREEMPT(full) [ 355.630318] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 355.630320] RIP: 0010:assfail+0x3a/0x40 [ 355.630330] Code: 89 f1 48 89 fe 48 c7 c7 bc bf ed 82 48 c7 c2 91 4e e8 82 e8 c8 fc ff ff 80 3d 01 03 51 03 01 74 09 0f 0b 5d c3 cc cc cc cc cc <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 [ 355.630332] RSP: 0018:ffffc9001c75b930 EFLAGS: 00010246 [ 355.630335] RAX: 5e6224bd563a9c00 RBX: ffff888853518f30 RCX: 5e6224bd563a9c00 [ 355.630336] RDX: ffffc9001c75b7f8 RSI: 000000000000000a RDI: ffffffff82edbfbc [ 355.630337] RBP: ffffc9001c75b930 R08: 0000000000000000 R09: 000000000000000a [ 355.630338] R10: 0000000000000000 R11: 0000000000000021 R12: 0000000000000000 [ 355.630339] R13: 0000000000000000 R14: ffffc9001c75b948 R15: ffffc9001c75b944 [ 355.630341] FS: 00007f07d8216740(0000) GS:ffff88909a489000(0000) knlGS:0000000000000000 [ 355.630343] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 355.630345] CR2: 00007f07d82fbca0 CR3: 0000000905200000 CR4: 0000000000350ef0 [ 355.630348] Call Trace: [ 355.630351] [ 355.630353] xfs_check_agi_freecount+0xf1/0x100 [ 355.630358] xfs_dialloc_ag_inobt+0xd5/0x8a0 [ 355.630360] ? xfs_ialloc_read_agi+0x43/0x1b0 [ 355.630362] xfs_dialloc+0x362/0x8e0 [ 355.630363] ? xfs_trans_alloc+0x13c/0x240 [ 355.630368] ? xfs_trans_alloc_icreate+0xa0/0x150 [ 355.630370] xfs_create+0x1d4/0x430 [ 355.630374] ? __get_acl+0x29/0x1d0 [ 355.630379] xfs_generic_create+0x141/0x3e0 [ 355.630381] xfs_vn_create+0x14/0x20 [ 355.630382] path_openat+0x50e/0xe30 [ 355.630386] do_filp_open+0xbc/0x170 [ 355.630388] ? kmem_cache_alloc_noprof+0x188/0x320 [ 355.630393] ? getname_flags+0x47/0x1e0 [ 355.630395] ? _raw_spin_unlock+0xe/0x30 [ 355.630400] ? alloc_fd+0x165/0x190 [ 355.630404] do_sys_openat2+0x75/0xd0 [ 355.630407] __x64_sys_openat+0x7d/0xa0 [ 355.630408] x64_sys_call+0x1b2/0x2f60 [ 355.630413] do_syscall_64+0x68/0x130 [ 355.630415] ? exc_page_fault+0x62/0xc0 [ 355.630419] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 355.630420] RIP: 0033:0x7f07d831bc7c [ 355.630423] Code: 83 e2 40 75 51 89 f0 f7 d0 a9 00 00 41 00 74 46 80 3d f7 c3 0e 00 00 74 6a 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 90 00 00 00 48 8b 54 24 28 64 48 2b 14 25 [ 355.630424] RSP: 002b:00007fffaddfbdc0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 [ 355.630426] RAX: ffffffffffffffda RBX: 0000000000000941 RCX: 00007f07d831bc7c [ 355.630427] RDX: 0000000000000941 RSI: 00007fffaddfe3c3 RDI: 00000000ffffff9c [ 355.630427] RBP: 00007fffaddfe3c3 R08: 0000000000000000 R09: 0000000000000000 [ 355.630428] R10: 00000000000001b6 R11: 0000000000000202 R12: 000055ed247bfb50 [ 355.630429] R13: 000055ed247be11f R14: 00007fffaddfe3c3 R15: 0000000000000000 [ 355.630430] I'm running on x86-64, using mkfs defaults (4k block size) and no mount options on the test/scratch devices, so this is as normal a configuration as you can get. I see this at least every second high concurrency run, but I haven't been able to isolate which test(s) are causing it because the failure either does not occur or some other block device related weirdness crops up when I run the tests sequentially in a single task context. -Dave. -- Dave Chinner david@fromorbit.com