Hi, I'm getting regular lockups which seem to be caused by dm-crypt. I reproduced it on vanilla v5.8-rc2, but I started regularly seeing this some time ago on openSUSE Tumbleweed kernels. It's easily reproducible (every time, after about a minute) when I run "make -j" on the linux kernel sources, sometimes it occurs also when doing other IO intensive tasks on multiple CPUs. I'm using LVM and ext4 on dm-crypt devices, Intel SSDSC2KW010X6 and SSDSC2BA200G3 SSDs. Regards, Artur [ 248.471327] BUG: workqueue lockup - pool cpus=8 node=0 flags=0x0 nice=0 stuck for 50s! [ 248.480317] Showing busy workqueues and worker pools: [ 248.486434] workqueue events: flags=0x0 [ 248.491364] pwq 16: cpus=8 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 [ 248.495357] pending: dbs_work_handler [ 248.504479] pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 [ 248.508474] pending: dbs_work_handler [ 248.517546] workqueue events_power_efficient: flags=0x80 [ 248.523989] pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 [ 248.527980] pending: fb_flashcursor [ 248.536942] workqueue events_freezable_power_: flags=0x84 [ 248.543494] pwq 16: cpus=8 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 [ 248.547486] in-flight: 2357:disk_events_workfn [ 248.557530] workqueue mm_percpu_wq: flags=0x8 [ 248.563075] pwq 16: cpus=8 node=0 flags=0x0 nice=0 active=2/256 refcnt=4 [ 248.567068] pending: vmstat_update, drain_local_pages_wq BAR(160) [ 248.578883] workqueue writeback: flags=0x4a [ 248.584305] pwq 48: cpus=0-23 flags=0x5 nice=0 active=2/256 refcnt=6 MAYDAY [ 248.588300] in-flight: 188(RESCUER):wb_workfn wb_workfn [ 248.599547] workqueue kcryptd/254:0: flags=0x2a [ 248.605332] pwq 48: cpus=0-23 flags=0x5 nice=0 active=24/24 refcnt=279754 [ 248.609327] in-flight: 169:kcryptd_crypt [dm_crypt], 173:kcryptd_crypt [dm_crypt], 161:kcryptd_crypt [dm_crypt], 8:kcryptd_crypt [dm_crypt], 165:kcryptd_crypt [dm_crypt], 155:kcryptd_crypt [dm_crypt], 164:kcryptd_crypt [dm_crypt], 174:kcryptd_crypt [dm_crypt], 163:kcryptd_crypt [dm_crypt], 158:kcryptd_crypt [dm_crypt], 156:kcryptd_crypt [dm_crypt], 168:kcryptd_crypt [dm_crypt], 159:kcryptd_crypt [dm_crypt], 157:kcryptd_crypt [dm_crypt], 166:kcryptd_crypt [dm_crypt], 1090(RESCUER):kcryptd_crypt [dm_crypt], 160:kcryptd_crypt [dm_crypt], 154:kcryptd_crypt [dm_crypt], 162:kcryptd_crypt [dm_crypt], 171:kcryptd_crypt [dm_crypt], 167:kcryptd_crypt [dm_crypt], 175:kcryptd_crypt [dm_crypt], 170:kcryptd_crypt [dm_crypt], 172:kcryptd_crypt [dm_crypt] [ 248.651333] delayed: kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt] [ 248.651333] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_c rypt] [ 248.779324] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_c rypt] [ 248.807337] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_c rypt] (a lot of these repeated messages...) [ 255.407326] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_c rypt] [ 255.535363] , kcryptd_crypt [dm_crypt] [ 249.291345] NMI watchdog: Watchdog detected hard LOCKUP on cpu 7 [ 249.291345] Modules linked in: af_packet xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables bpfilter tun bridge pktcdvd stp llc cmac algif_hash algif_skcipher af_alg bnep dmi_sysfs snd_seq msr intel_rapl_msr intel_rapl_common nls_iso8859_1 nls_cp437 vfat fat snd_usb_audio btusb sb_edac mei_hdcp snd_usbmidi_lib btrtl iTCO_wdt mei_wdt iTCO_vendor_support snd_hda_codec_realtek snd_rawmidi btbcm dcdbas x86_pkg_temp_thermal snd_seq_device btintel dell_smm_hwmon intel_powerclamp snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio mc coretemp snd_hda_intel bluetooth snd_intel_dspcfg snd_hda_codec kvm_intel snd_hda_core snd_hwdep snd_pcm ecdh_generic r8169 rfkill mei_me snd_timer ecc realtek kvm i2c_i801 snd e1000e libphy irqbypass efi_pstore pcspkr mei i2c_smbus s oundcore [ 249.291345] lpc_ich nfsd nfs_acl lockd grace auth_rpcgss sunrpc dm_crypt hid_generic usbhid xhci_pci xhci_hcd ehci_pci crct10dif_pclmul ehci_hcd crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel usbcore glue_helper crypto_simd cryptd sr_mod cdrom wmi button dm_mirror dm_region_hash dm_log sg dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua dm_snapshot dm_bufio dm_mod efivarfs [ 249.291345] irq event stamp: 8878 [ 249.291345] hardirqs last enabled at (8877): [<ffffffffb22b1964>] _raw_spin_unlock_irq+0x24/0x30 [ 249.291345] hardirqs last disabled at (8878): [<ffffffffb22aa8aa>] __schedule+0xda/0x980 [ 249.291345] softirqs last enabled at (8178): [<ffffffffb260036d>] __do_softirq+0x36d/0x410 [ 249.291345] softirqs last disabled at (8165): [<ffffffffb24010d2>] asm_call_on_stack+0x12/0x20 [ 249.291345] CPU: 7 PID: 155 Comm: kworker/u48:2 Not tainted 5.8.0-rc2-1-default #453 [ 249.291345] Hardware name: Dell Inc. Precision T3610/09M8Y8, BIOS A12 09/09/2016 [ 249.291345] Workqueue: kcryptd/254:0 kcryptd_crypt [dm_crypt] [ 249.291345] RIP: 0010:native_queued_spin_lock_slowpath+0x122/0x1c0 [ 249.291345] Code: 2b 71 4e c3 41 83 c0 01 c1 e1 10 41 c1 e0 12 44 09 c1 89 c8 c1 e8 10 66 87 47 02 89 c6 c1 e6 10 75 4c 31 f6 eb 02 f3 90 8b 07 <66> 85 c0 75 f7 41 89 c0 66 45 31 c0 44 39 c1 74 74 c6 07 01 48 85 [ 249.291345] RSP: 0000:ffffbeacc06d7e38 EFLAGS: 00000002 [ 249.291345] RAX: 0000000000180101 RBX: ffff9c4fa0a689a0 RCX: 0000000000200000 [ 249.291345] RDX: ffff9c4fcf9f1240 RSI: 0000000000000000 RDI: ffff9c4887c11c00 [ 249.291345] RBP: ffff9c4887c11c00 R08: 0000000000200000 R09: 0000000000000001 [ 249.291345] R10: ffff9c4886948000 R11: ffff9c4fcfd705f0 R12: ffff9c4fa2b08300 [ 249.291345] R13: ffff9c4886977a40 R14: 0000000000000020 R15: ffff9c4886977a40 [ 249.291345] FS: 0000000000000000(0000) GS:ffff9c4fcf9c0000(0000) knlGS:0000000000000000 [ 249.291345] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 249.291345] CR2: 00007f9761d1fa93 CR3: 000000025ed0c005 CR4: 00000000001606e0 [ 249.291345] Call Trace: [ 249.291345] do_raw_spin_lock+0xb2/0xc0 [ 249.291345] process_one_work+0x2e4/0x570 [ 249.291345] worker_thread+0x4a/0x3c0 [ 249.291345] ? process_one_work+0x570/0x570 [ 249.291345] kthread+0x102/0x140 [ 249.291345] ? kthread_park+0x90/0x90 [ 249.291345] ret_from_fork+0x22/0x30 [ 249.291345] Kernel panic - not syncing: Hard LOCKUP [ 249.291345] CPU: 7 PID: 155 Comm: kworker/u48:2 Not tainted 5.8.0-rc2-1-default #453 [ 249.291345] Hardware name: Dell Inc. Precision T3610/09M8Y8, BIOS A12 09/09/2016 [ 249.291345] Workqueue: kcryptd/254:0 kcryptd_crypt [dm_crypt] [ 249.291345] Call Trace: [ 249.291345] <NMI> [ 249.291345] dump_stack+0x96/0xd0 [ 249.291345] panic+0x106/0x2fb [ 249.291345] nmi_panic.cold+0xc/0xc [ 249.291345] watchdog_overflow_callback.cold+0x6a/0x7e [ 249.291345] __perf_event_overflow+0x52/0xf0 [ 249.291345] handle_pmi_common+0x1cc/0x270 [ 249.291345] ? acpi_os_read_memory+0x5/0x270 [ 249.291345] ? __set_pte_vaddr+0x28/0x40 [ 249.291345] ? flush_tlb_one_kernel+0xa/0x20 [ 249.291345] ? __native_set_fixmap+0x24/0x30 [ 249.291345] ? ghes_copy_tofrom_phys+0x97/0x130 [ 249.291345] intel_pmu_handle_irq+0xc1/0x160 [ 249.291345] perf_event_nmi_handler+0x2f/0x50 [ 249.291345] nmi_handle+0xda/0x250 [ 249.291345] default_do_nmi+0x45/0x110 [ 249.291345] exc_nmi+0x1b1/0x1f0 [ 249.291345] end_repeat_nmi+0x16/0x50 [ 249.291345] RIP: 0010:native_queued_spin_lock_slowpath+0x122/0x1c0 [ 249.291345] Code: 2b 71 4e c3 41 83 c0 01 c1 e1 10 41 c1 e0 12 44 09 c1 89 c8 c1 e8 10 66 87 47 02 89 c6 c1 e6 10 75 4c 31 f6 eb 02 f3 90 8b 07 <66> 85 c0 75 f7 41 89 c0 66 45 31 c0 44 39 c1 74 74 c6 07 01 48 85 [ 249.291345] RSP: 0000:ffffbeacc06d7e38 EFLAGS: 00000002 [ 249.291345] RAX: 0000000000180101 RBX: ffff9c4fa0a689a0 RCX: 0000000000200000 [ 249.291345] RDX: ffff9c4fcf9f1240 RSI: 0000000000000000 RDI: ffff9c4887c11c00 [ 249.291345] RBP: ffff9c4887c11c00 R08: 0000000000200000 R09: 0000000000000001 [ 249.291345] R10: ffff9c4886948000 R11: ffff9c4fcfd705f0 R12: ffff9c4fa2b08300 [ 249.291345] R13: ffff9c4886977a40 R14: 0000000000000020 R15: ffff9c4886977a40 [ 249.291345] ? native_queued_spin_lock_slowpath+0x122/0x1c0 [ 249.291345] ? native_queued_spin_lock_slowpath+0x122/0x1c0 [ 249.291345] </NMI> [ 249.291345] do_raw_spin_lock+0xb2/0xc0 [ 249.291345] process_one_work+0x2e4/0x570 [ 249.291345] worker_thread+0x4a/0x3c0 [ 249.291345] ? process_one_work+0x570/0x570 [ 249.291345] kthread+0x102/0x140 [ 249.291345] ? kthread_park+0x90/0x90 [ 249.291345] ret_from_fork+0x22/0x30 [ 255.671350] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_c rypt] [ 255.671350] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_c rypt] [ 255.671350] , kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_crypt [dm_crypt], kcryptd_c[ 255.671350] , kcryptd_crypt [dm_crypt] [ 249.291345] Shutting down cpus with NMI [ 249.291345] Kernel Offset: 0x30800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel