Score:6

Why is "x86/split lock detection" spamming my syslog when Steam is running?

pl flag

I have a ThinkPad X1C9 laptop connected to 3 displays via thunderbolt and an nVidia 1050Ti in an external GPU enclosure. My syslog is getting spammed with the following, why?

Googling CJobMgr led me to Steam. Closed Steam and it stopped. If I open Steam again it starts happening immediately.

[Tue Aug 10 10:17:42 2021] x86/split lock detection: #AC: CJobMgr::m_Work/28558 took a split_lock trap at address: 0xf21b3263
[Tue Aug 10 10:17:43 2021] x86/split lock detection: #AC: CJobMgr::m_Work/28520 took a split_lock trap at address: 0xf21b3263
[Tue Aug 10 10:17:43 2021] x86/split lock detection: #AC: CJobMgr::m_Work/28520 took a split_lock trap at address: 0xf21b3263
[Tue Aug 10 10:17:43 2021] x86/split lock detection: #AC: CJobMgr::m_Work/28558 took a split_lock trap at address: 0xf21b3263
[Tue Aug 10 10:17:44 2021] x86/split lock detection: #AC: CJobMgr::m_Work/28520 took a split_lock trap at address: 0xf21b3263
[Tue Aug 10 10:17:45 2021] x86/split lock detection: #AC: CJobMgr::m_Work/28558 took a split_lock trap at address: 0xf21b3263
alan@ac:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:        21.04
Codename:       hirsute
alan@ac:~$ uname -a
Linux ac 5.11.0-25-generic #27-Ubuntu SMP Fri Jul 9 23:06:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I have found the following resources during my search but they haven't helped:

I have filed an issue upstream with the Steam client, as it's the only thing that triggers this issue:

Artur Meinild avatar
vn flag
It looks like you have two processes that causes a split lock (PID 28558 and PID 28520?) - which processes are those? [More info here](https://www.phoronix.com/forums/forum/software/general-linux-open-source/1157755-the-linux-kernel-will-be-able-to-detect-split-locks-to-then-warn-or-kill-offending-apps) (or search for "x86/split lock detection").
pl flag
Googling CJobMgr led me to Steam. Closed Steam and it stooped. If I open Steam again it starts happening immediately.
Artur Meinild avatar
vn flag
As I understand it, a split lock can "just" be a warning. If you somehow decide that it's ok to go on with it, you could suppress the log messages. Unfortunately, I'm not at all familiar with Steam on Ubuntu - but now you identified the offending app.
DarkMoon avatar
eg flag
FWIW, I'm getting the same on my Dell Latitude 5520 laptop (i7 iGPU + Nvidia MX450 dGPU) running Gentoo. Have said the same on your open issue on GitHub.
Score:3
cn flag

As you've found out, this is triggered by Steam which uses split locks despite them being discouraged by the kernel. There's a quite recent LWN.net article on this topic: https://lwn.net/Articles/911219/

As mentioned therein, since Linux 5.7 you can select the from following behaviors when a split lock is detected:

It gives the kernel the ability to respond to traps caused by split-lock operations and provides three modes for that response, selectable by the split_lock_detect= command-line parameter:

  • off causes the kernel to behave as it did before; split-lock operations are not detected and nothing is done when they occur.
  • warn (the default) causes a (rate-limited) warning to go to the system log when a split-lock operation is detected.
  • fatal causes the kernel to immediately kill (with SIGBUS) any process attempting split-lock operations.

If you want to silence those warnings, set split_lock_detect=off as described in the Wiki. Meanwhile we wait for Valve to fix this.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.