https://bugzilla.kernel.org/show_bug.cgi?id=216567 Bug ID: 216567 Summary: [xfstests generic/451] kernel BUG at mm/truncate.c:669! Product: File System Version: 2.5 Kernel Version: v6.1-rc0 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: XFS Assignee: filesystem_xfs@xxxxxxxxxxxxxxxxxxxxxx Reporter: zlang@xxxxxxxxxx Regression: No xfstests generic/451 hit panic[1] on xfs with 64k directory block size (-n size=65536). I hit this panic once, then reproduce it once by loop running generic/450 + generic/451 (panic on g/451) on xfs(-n size=65536) hundreds of times. The last time I hit this panic on linux which HEAD= commit a6afa4199d3d038fbfdff5511f7523b0e30cb774 Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Date: Sat Oct 8 10:30:44 2022 -0700 Merge tag 'mailbox-v6.1' of git://git.linaro.org/landing-teams/working/fujitsu/integration [1] [ 1235.090869] run fstests generic/451 at 2022-10-09 11:14:23 [ 1263.860224] page:000000002e63229f refcount:4 mapcount:0 mapping:0000000002dcf476 index:0x43 pfn:0x4006a5 [ 1263.869953] memcg:ff110010ca620000 [ 1263.873384] aops:xfs_address_space_operations [xfs] ino:83 dentry name:"tst-aio-dio-cycle-write.451" [ 1263.882714] flags: 0x17ffffc0000027(locked|referenced|uptodate|active|node=0|zone=2|lastcpupid=0x1fffff) [ 1263.892329] raw: 0017ffffc0000027 0000000000000000 dead000000000122 ff110002040cfc48 [ 1263.900095] raw: 0000000000000043 0000000000000000 00000011ffffffff ff110010ca620000 [ 1263.907858] page dumped because: VM_BUG_ON_FOLIO(!folio_contains(folio, index)) [ 1263.915205] ------------[ cut here ]------------ [ 1263.919838] kernel BUG at mm/truncate.c:669! [ 1263.924136] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 1263.929887] CPU: 110 PID: 739 Comm: kworker/110:1 Kdump: loaded Not tainted 6.0.0+ #1 [ 1263.937711] Hardware name: Dell Inc. PowerEdge R750/0PJ80M, BIOS 1.5.4 12/17/2021 [ 1263.945192] Workqueue: dio/sda3 iomap_dio_complete_work [ 1263.950426] RIP: 0010:invalidate_inode_pages2_range+0x2e2/0x9a0 [ 1263.956352] Code: c0 03 38 d0 7c 08 84 d2 0f 85 c9 05 00 00 41 8b 47 5c 4c 39 f0 0f 87 80 fe ff ff 48 c7 c6 60 98 75 8b 4c 89 ff e8 4e af 07 00 <0f> 0b e8 c7 1f fe ff 4c 89 ff e8 bf bf 03 00 84 c0 0f 85 24 02 00 [ 1263.975099] RSP: 0018:ffa000000a6efaa8 EFLAGS: 00010286 [ 1263.980325] RAX: 0000000000000043 RBX: dffffc0000000000 RCX: 0000000000000000 [ 1263.987458] RDX: 0000000000000001 RSI: ffffffff8b8ce8e0 RDI: fff3fc00014ddf45 [ 1263.994592] RBP: 0000000000000000 R08: 0000000000000043 R09: ff11000c32bfd487 [ 1264.001723] R10: ffe21c018657fa90 R11: 0000000000000001 R12: ff110002040cfc48 [ 1264.008855] R13: 0000000000000041 R14: fffffffffffffffe R15: ffd400001001a940 [ 1264.015989] FS: 0000000000000000(0000) GS:ff11000c32a00000(0000) knlGS:0000000000000000 [ 1264.024073] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1264.029822] CR2: 0000000001f3c018 CR3: 00000011525a8002 CR4: 0000000000771ee0 [ 1264.036953] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1264.044085] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1264.051219] PKRU: 55555554 [ 1264.053932] Call Trace: [ 1264.056384] <TASK> [ 1264.058492] ? mapping_evict_folio.part.0+0x1e0/0x1e0 [ 1264.063551] ? xfs_dio_write_end_io+0x13f/0x810 [xfs] [ 1264.068745] iomap_dio_complete+0x413/0x870 [ 1264.072930] ? aio_fsync_work+0x2a0/0x2a0 [ 1264.076942] iomap_dio_complete_work+0x52/0x80 [ 1264.081388] process_one_work+0x8b7/0x1540 [ 1264.085490] ? __lock_acquired+0x209/0x890 [ 1264.089596] ? pwq_dec_nr_in_flight+0x230/0x230 [ 1264.094127] ? __lock_contended+0x980/0x980 [ 1264.098317] ? worker_thread+0x160/0xed0 [ 1264.102249] worker_thread+0x5ac/0xed0 [ 1264.106005] ? process_one_work+0x1540/0x1540 [ 1264.110370] kthread+0x29f/0x340 [ 1264.113600] ? kthread_complete_and_exit+0x20/0x20 [ 1264.118396] ret_from_fork+0x1f/0x30 [ 1264.121986] </TASK> [ 1264.124175] Modules linked in: ipmi_ssif intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common mgag200 mlx5_ib i2c_algo_bit drm_shmem_helper drm_kms_helper dell_smbios syscopyarea i10nm_edac nfit x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel dcdbas kvm rfkill irqbypass rapl ib_uverbs intel_cstate intel_uncore dell_wmi_descriptor wmi_bmof ib_core pcspkr isst_if_mbox_pci isst_if_mmio acpi_ipmi sysfillrect mei_me isst_if_common i2c_i801 sysimgblt ipmi_si fb_sys_fops i2c_smbus mei intel_pch_thermal intel_vsec ipmi_devintf ipmi_msghandler acpi_power_meter sunrpc drm fuse xfs libcrc32c sd_mod t10_pi sg mlx5_core crct10dif_pclmul crc32_pclmul crc32c_intel mlxfw ghash_clmulni_intel tls ahci libahci psample megaraid_sas pci_hyperv_intf tg3 libata wmi [ 1264.193575] ---[ end trace 0000000000000000 ]--- [ 1264.226461] RIP: 0010:invalidate_inode_pages2_range+0x2e2/0x9a0 [ 1264.232402] Code: c0 03 38 d0 7c 08 84 d2 0f 85 c9 05 00 00 41 8b 47 5c 4c 39 f0 0f 87 80 fe ff ff 48 c7 c6 60 98 75 8b 4c 89 ff e8 4e af 07 00 <0f> 0b e8 c7 1f fe ff 4c 89 ff e8 bf bf 03 00 84 c0 0f 85 24 02 00 [ 1264.251156] RSP: 0018:ffa000000a6efaa8 EFLAGS: 00010286 [ 1264.256388] RAX: 0000000000000043 RBX: dffffc0000000000 RCX: 0000000000000000 [ 1264.263536] RDX: 0000000000000001 RSI: ffffffff8b8ce8e0 RDI: fff3fc00014ddf45 [ 1264.270673] RBP: 0000000000000000 R08: 0000000000000043 R09: ff11000c32bfd487 [ 1264.277814] R10: ffe21c018657fa90 R11: 0000000000000001 R12: ff110002040cfc48 [ 1264.284955] R13: 0000000000000041 R14: fffffffffffffffe R15: ffd400001001a940 [ 1264.292095] FS: 0000000000000000(0000) GS:ff11000c32a00000(0000) knlGS:0000000000000000 [ 1264.300190] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1264.305946] CR2: 0000000001f3c018 CR3: 00000011525a8002 CR4: 0000000000771ee0 [ 1264.313086] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1264.320229] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1264.327372] PKRU: 55555554 [-- MARK -- Sun Oct 9 15:15:00 2022] -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.