bcachefs
bcachefs copied to clipboard
BUG: workqueue leaked atomic, lock or RCU: kworker/u65:3[4146]
As of bcachefs master 354b729c4, on a young filesystem:
[22218.499424] BUG: workqueue leaked atomic, lock or RCU: kworker/u65:3[4146]
preempt=0x00000000 lock=0->0 RCU=0->1 workfn=bch2_write_point_do_index_updates [bcachefs]
[22218.499713] CPU: 3 PID: 4146 Comm: kworker/u65:3 Tainted: G I 6.10.0+bcachefs.git20240611.354b729c4-1-generic #1
[22218.499718] Hardware name: System manufacturer System Product Name/P6T SE, BIOS 0908 09/21/2010
[22218.499722] Workqueue: bcachefs bch2_write_point_do_index_updates [bcachefs]
[22218.499894] Call Trace:
[22218.499898] <TASK>
[22218.499902] dump_stack_lvl+0x76/0xa0
[22218.499910] dump_stack+0x10/0x20
[22218.499914] process_one_work+0x353/0x3e0
[22218.499921] ? __pfx_bch2_write_point_do_index_updates+0x10/0x10 [bcachefs]
[22218.500088] worker_thread+0x304/0x440
[22218.500093] ? _raw_spin_lock_irqsave+0xe/0x20
[22218.500101] ? __pfx_worker_thread+0x10/0x10
[22218.500106] kthread+0xe4/0x110
[22218.500113] ? __pfx_kthread+0x10/0x10
[22218.500118] ret_from_fork+0x47/0x70
[22218.500124] ? __pfx_kthread+0x10/0x10
[22218.500129] ret_from_fork_asm+0x1a/0x30
[22218.500138] </TASK>
[22218.500164] ------------[ cut here ]------------
[22218.500168] Voluntary context switch within RCU read-side critical section!
[22218.500178] WARNING: CPU: 3 PID: 4146 at kernel/rcu/tree_plugin.h:320 rcu_note_context_switch+0x29f/0x2c0
[22218.500190] Modules linked in: tls amdgpu qrtr amdxcp drm_exec gpu_sched drm_buddy cfg80211 binfmt_misc dvb_pll zl10353 mt352 cx88_dvb cx88_vp3054_i2c videobuf2_dvb intel_powerclamp dvb_core radeon snd_hda_codec_realtek coretemp snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_scodec_component kvm_intel snd_hda_intel snd_intel_dspcfg kvm snd_intel_sdw_acpi drm_suballoc_helper cx8800 cx8802 drm_ttm_helper snd_hda_codec videobuf2_dma_sg cx88xx videobuf2_memops ttm videobuf2_v4l2 tveeprom snd_hda_core intel_cstate drm_display_helper serio_raw videodev snd_hwdep i2c_i801 videobuf2_common snd_pcm i2c_mux cec mc i2c_smbus snd_timer rc_core snd i2c_algo_bit video lpc_ich soundcore input_leds wmi asus_atk0110 i5500_temp i7core_edac mac_hid dm_multipath msr efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic poly1305_generic libpoly1305 poly1305_x86_64 chacha_generic chacha_x86_64 libchacha bcachefs lz4hc_compress lz4_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx
[22218.500358] xor raid6_pq libcrc32c raid1 raid0 hid_generic usbhid pata_acpi hid firewire_ohci psmouse sha256_ssse3 ahci sha1_ssse3 r8169 firewire_core pata_jmicron libahci realtek crc_itu_t crypto_simd cryptd
[22218.500387] CPU: 3 PID: 4146 Comm: kworker/u65:3 Tainted: G I 6.10.0+bcachefs.git20240611.354b729c4-1-generic #1
[22218.500392] Hardware name: System manufacturer System Product Name/P6T SE, BIOS 0908 09/21/2010
[22218.500394] Workqueue: 0x0 (bcachefs)
[22218.500420] RIP: 0010:rcu_note_context_switch+0x29f/0x2c0
[22218.500425] Code: ba 02 00 00 00 be 01 00 00 00 48 89 df e8 39 e2 fe ff e9 62 fe ff ff 48 c7 c7 10 a0 63 8f c6 05 be 34 62 02 01 e8 a1 d9 f1 ff <0f> 0b e9 bb fd ff ff 0f 0b e9 31 ff ff ff 0f 0b e9 13 ff ff ff 66
[22218.500429] RSP: 0018:ffffb380cdaa3dd0 EFLAGS: 00010046
[22218.500433] RAX: 0000000000000000 RBX: ffff8fb8c54ccf00 RCX: 0000000000000000
[22218.500436] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[22218.500439] RBP: ffffb380cdaa3df0 R08: 0000000000000000 R09: 0000000000000000
[22218.500441] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8fb9797b7940
[22218.500444] R13: 0000000000000000 R14: 0000000000000000 R15: ffff8fb8db990240
[22218.500447] FS: 0000000000000000(0000) GS:ffff8fb979780000(0000) knlGS:0000000000000000
[22218.500450] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[22218.500454] CR2: 00007d5d994a7c50 CR3: 0000000167c3c000 CR4: 00000000000006f0
[22218.500457] Call Trace:
[22218.500459] <TASK>
[22218.500462] ? show_regs+0x6c/0x80
[22218.500472] ? __warn+0x88/0x140
[22218.500480] ? rcu_note_context_switch+0x29f/0x2c0
[22218.500487] ? report_bug+0x182/0x1b0
[22218.500492] ? handle_bug+0x51/0xa0
[22218.500499] ? exc_invalid_op+0x18/0x80
[22218.500507] ? asm_exc_invalid_op+0x1b/0x20
[22218.500518] ? rcu_note_context_switch+0x29f/0x2c0
[22218.500524] __schedule+0x7e/0x6b0
[22218.500529] ? dump_stack_lvl+0x7b/0xa0
[22218.500536] ? dump_stack+0x10/0x20
[22218.500542] schedule+0x29/0xd0
[22218.500546] worker_thread+0x1d5/0x440
[22218.500551] ? _raw_spin_lock_irqsave+0xe/0x20
[22218.500561] ? __pfx_worker_thread+0x10/0x10
[22218.500567] kthread+0xe4/0x110
[22218.500573] ? __pfx_kthread+0x10/0x10
[22218.500578] ret_from_fork+0x47/0x70
[22218.500584] ? __pfx_kthread+0x10/0x10
[22218.500593] ret_from_fork_asm+0x1a/0x30
[22218.500601] </TASK>
[22218.500602] ---[ end trace 0000000000000000 ]---