Skip to content

Instantly share code, notes, and snippets.

@mcgrof
Last active June 8, 2024 20:44
Show Gist options
  • Save mcgrof/824913b645892214effeb1631df75072 to your computer and use it in GitHub Desktop.
Save mcgrof/824913b645892214effeb1631df75072 to your computer and use it in GitHub Desktop.
With CONFIG_PROVE_LOCKING=y MAX_LOCKDEP_CHAIN_HLOCKS is too low on the new generic/749
which tests fsstress against compaction
[ 326.567430] run fstests generic/749 at 2024-06-07 16:48:23
[ 332.684652] XFS (loop5): Mounting V5 Filesystem b3f4eab9-b91d-4a31-8024-49c02f460615
[ 332.851035] XFS (loop5): Ending clean mount
[ 1546.223139] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
[ 1546.224941] turning off the locking correctness validator.
[ 1546.226788] Please attach the output of /proc/lock_stat to the bug report
[ 1546.228971] CPU: 2 PID: 2479 Comm: kworker/u35:12 Not tainted 6.10.0-rc2 #6
[ 1546.231019] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 1546.233569] Workqueue: loop5 loop_rootcg_workfn [loop]
[ 1546.235019] Call Trace:
[ 1546.235842] <TASK>
[ 1546.236524] dump_stack_lvl+0x73/0xb0
[ 1546.237540] __lock_acquire+0x4587/0x5c80
[ 1546.238628] ? __pfx___lock_acquire+0x10/0x10
[ 1546.239804] ? __pfx___lock_acquire+0x10/0x10
[ 1546.240894] ? reacquire_held_locks+0x219/0x4f0
[ 1546.241990] ? btrfs_tree_lock_nested+0x23/0x170 [btrfs]
[ 1546.243512] lock_acquire+0x1a5/0x510
[ 1546.244425] ? release_extent_buffer+0x113/0x220 [btrfs]
[ 1546.245801] ? __pfx_lock_acquire+0x10/0x10
[ 1546.246737] ? __pfx_lock_release+0x10/0x10
[ 1546.247700] ? __pfx_lock_acquired+0x10/0x10
[ 1546.248639] _raw_spin_lock+0x33/0x80
[ 1546.249439] ? release_extent_buffer+0x113/0x220 [btrfs]
[ 1546.250710] release_extent_buffer+0x113/0x220 [btrfs]
[ 1546.251968] ? free_extent_buffer_stale.part.0+0xa5/0xc0 [btrfs]
[ 1546.253283] btrfs_force_cow_block+0xa98/0x1a50 [btrfs]
[ 1546.254443] ? __pfx_btrfs_force_cow_block+0x10/0x10 [btrfs]
[ 1546.255681] ? __pfx_btrfs_qgroup_trace_subtree_after_cow+0x10/0x10 [btrfs]
[ 1546.257118] btrfs_cow_block+0x286/0xab0 [btrfs]
[ 1546.258120] ? rcu_is_watching+0x11/0xb0
[ 1546.258863] btrfs_search_slot+0xb9c/0x29a0 [btrfs]
[ 1546.259915] ? __pfx_btrfs_search_slot+0x10/0x10 [btrfs]
[ 1546.260934] ? __pfx_lock_release+0x10/0x10
[ 1546.261640] ? __pfx_search_free_space_info+0x10/0x10 [btrfs]
[ 1546.262710] ? do_raw_read_unlock+0x45/0xe0
[ 1546.263423] __add_to_free_space_tree+0x2cb/0x7c0 [btrfs]
[ 1546.264438] ? __pfx___add_to_free_space_tree+0x10/0x10 [btrfs]
[ 1546.265477] ? add_to_free_space_tree+0x140/0x290 [btrfs]
[ 1546.266441] ? __pfx___mutex_lock+0x10/0x10
[ 1546.267122] ? _raw_spin_unlock_irqrestore+0x35/0x60
[ 1546.267916] ? do_raw_read_unlock+0x45/0xe0
[ 1546.268574] ? _raw_read_unlock+0x29/0x50
[ 1546.269210] add_to_free_space_tree+0x154/0x290 [btrfs]
[ 1546.270118] __btrfs_free_extent.isra.0+0xd80/0x2750 [btrfs]
[ 1546.271094] ? __pfx___btrfs_free_extent.isra.0+0x10/0x10 [btrfs]
[ 1546.272150] ? lock_release+0x3ad/0xbb0
[ 1546.272768] ? __pfx_lock_release+0x10/0x10
[ 1546.273412] ? btrfs_merge_delayed_refs+0x491/0xa00 [btrfs]
[ 1546.274387] __btrfs_run_delayed_refs+0xd7f/0x3860 [btrfs]
[ 1546.275335] ? __pfx___btrfs_run_delayed_refs+0x10/0x10 [btrfs]
[ 1546.276342] ? lock_acquire+0x1a5/0x510
[ 1546.276948] ? find_held_lock+0x34/0x120
[ 1546.277565] ? kvm_sched_clock_read+0xd/0x20
[ 1546.278237] ? local_clock_noinstr+0x9/0xc0
[ 1546.278888] ? lock_release+0x3ad/0xbb0
[ 1546.279510] ? __pfx_lock_release+0x10/0x10
[ 1546.280259] btrfs_run_delayed_refs+0x133/0x290 [btrfs]
[ 1546.281130] ? btrfs_commit_transaction+0xe2d/0x35a0 [btrfs]
[ 1546.282119] btrfs_commit_transaction+0x14ec/0x35a0 [btrfs]
[ 1546.283080] ? btrfs_record_root_in_trans+0xcb/0x170 [btrfs]
[ 1546.284074] ? __pfx_btrfs_commit_transaction+0x10/0x10 [btrfs]
[ 1546.285083] ? start_transaction+0x217/0x1630 [btrfs]
[ 1546.285936] ? kmem_cache_free+0x170/0x4a0
[ 1546.286591] ? __pfx_autoremove_wake_function+0x10/0x10
[ 1546.287383] btrfs_sync_file+0x700/0xaf0 [btrfs]
[ 1546.288234] ? __pfx_btrfs_sync_file+0x10/0x10 [btrfs]
[ 1546.289139] ? mark_held_locks+0x96/0xe0
[ 1546.289762] loop_process_work+0x7b4/0x1ad0 [loop]
[ 1546.290500] ? __pfx_loop_process_work+0x10/0x10 [loop]
[ 1546.291295] ? lock_acquire+0x1b5/0x510
[ 1546.291936] ? __pfx_lock_acquire+0x10/0x10
[ 1546.292604] ? __pfx_lock_release+0x10/0x10
[ 1546.293250] ? lock_is_held_type+0xcd/0x120
[ 1546.293902] process_one_work+0x85c/0x1780
[ 1546.294548] ? worker_thread+0x267/0x12b0
[ 1546.295172] ? __pfx_process_one_work+0x10/0x10
[ 1546.295892] ? lock_acquired+0x22d/0xa10
[ 1546.296513] ? assign_work+0x16c/0x240
[ 1546.297111] worker_thread+0x6e8/0x12b0
[ 1546.297719] ? __pfx_worker_thread+0x10/0x10
[ 1546.298384] kthread+0x2ad/0x380
[ 1546.298944] ? __pfx_kthread+0x10/0x10
[ 1546.299539] ret_from_fork+0x2d/0x70
[ 1546.300140] ? __pfx_kthread+0x10/0x10
[ 1546.300734] ret_from_fork_asm+0x1a/0x30
[ 1546.301361] </TASK>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment