[Bug 1186332] New: Thinkpad X270: BUG: workqueue lockup - pool cpus=0-3 flags=0x5 nice=0 stuck for 35s!
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332 Bug ID: 1186332 Summary: Thinkpad X270: BUG: workqueue lockup - pool cpus=0-3 flags=0x5 nice=0 stuck for 35s! Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: ptesarik@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 849559 --> https://bugzilla.suse.com/attachment.cgi?id=849559&action=edit dmesg after lockup I've just experienced a kernel stall on my Lenovo Thinkpad X270, attached. At this point I have no idea how to proceed, and no, I cannot reproduce the hang at will. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c1
Takashi Iwai
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c2
Coly Li
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c3
--- Comment #3 from Coly Li
Created attachment 849559 [details] dmesg after lockup
I've just experienced a kernel stall on my Lenovo Thinkpad X270, attached.
At this point I have no idea how to proceed, and no, I cannot reproduce the hang at will.
The information is very limited. I understand there is no more stack trace, and I can only guess what happened. I see one fix is about using an encrypted swap device, do you encrypt the swap partition ? Thanks. Coly Li -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c4
Coly Li
(In reply to Petr Tesa����k from comment #0)
Created attachment 849559 [details] dmesg after lockup
I've just experienced a kernel stall on my Lenovo Thinkpad X270, attached.
At this point I have no idea how to proceed, and no, I cannot reproduce the hang at will.
The information is very limited. I understand there is no more stack trace, and I can only guess what happened.
I see one fix is about using an encrypted swap device, do you encrypt the swap partition ?
I see some suspicious and necessary fixes from dm-crypt deadlocking. commit 528b16bfc3ae ("dm crypt: Avoid percpu_counter spinlock contention in crypt_page_alloc()") commit c87a95dc28b1 ("dm crypt: defer decryption to a tasklet if interrupts disabled") commit a666e5c05e7c ("dm: fix deadlock when swapping to encrypted device") Let me try to do the backport. Coly Li -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c5
--- Comment #5 from Coly Li
(In reply to Coly Li from comment #3)
(In reply to Petr Tesa����k from comment #0)
Created attachment 849559 [details] dmesg after lockup
I've just experienced a kernel stall on my Lenovo Thinkpad X270, attached.
At this point I have no idea how to proceed, and no, I cannot reproduce the hang at will.
The information is very limited. I understand there is no more stack trace, and I can only guess what happened.
I see one fix is about using an encrypted swap device, do you encrypt the swap partition ?
I see some suspicious and necessary fixes from dm-crypt deadlocking.
commit 528b16bfc3ae ("dm crypt: Avoid percpu_counter spinlock contention in crypt_page_alloc()") commit c87a95dc28b1 ("dm crypt: defer decryption to a tasklet if interrupts disabled") commit a666e5c05e7c ("dm: fix deadlock when swapping to encrypted device")
Let me try to do the backport.
It turns out only the last patch is potential helpful to this workqueue blocking condition. I start to test this backport. Coly Li -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c6
--- Comment #6 from Coly Li
commit a666e5c05e7c ("dm: fix deadlock when swapping to encrypted device")
Since there is no further information or clue for the deadlock, I assume there is swap I/O hitting encrypted device. And btw, the idea of limiting swap I/O on encrypted device looks interesting, it may also be helpful for Bug #1177529, which causes deadlock for swap I/O on dm-thin device. This patch breaks our KABI, let me do more KABI fix and testing before submitting it to our tree. Thanks. Coly Li -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c7
--- Comment #7 from Coly Li
commit a666e5c05e7c ("dm: fix deadlock when swapping to encrypted device")
Since there is no further information or clue for the deadlock, I assume there is swap I/O hitting encrypted device. And btw, the idea of limiting swap I/O on encrypted device looks interesting, it may also be helpful for Bug #1177529, which causes deadlock for swap I/O on dm-thin device.
This patch breaks our KABI, let me do more KABI fix and testing before submitting it to our tree.
The kABI issue is solved. Patches for SLE15-SP2 are submitted, patches for SLE15-SP3 are under testing now. Coly Li -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c8
--- Comment #8 from Coly Li
(In reply to Coly Li from comment #6)
commit a666e5c05e7c ("dm: fix deadlock when swapping to encrypted device")
Since there is no further information or clue for the deadlock, I assume there is swap I/O hitting encrypted device. And btw, the idea of limiting swap I/O on encrypted device looks interesting, it may also be helpful for Bug #1177529, which causes deadlock for swap I/O on dm-thin device.
This patch breaks our KABI, let me do more KABI fix and testing before submitting it to our tree.
The kABI issue is solved. Patches for SLE15-SP2 are submitted, patches for SLE15-SP3 are under testing now.
Patches for SLE15-SP3 submitted. Coly Li -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c15
--- Comment #15 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c16
--- Comment #16 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c17
--- Comment #17 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c18
--- Comment #18 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c19
--- Comment #19 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c20
--- Comment #20 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c21
--- Comment #21 from Swamp Workflow Management
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1186332
https://bugzilla.suse.com/show_bug.cgi?id=1186332#c22
Coly Li
participants (1)
-
bugzilla_noreply@suse.com