LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2018, 07:15 PM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Question Steam causing kernel panic / system freeze


Hi has anyone had issues with steam since the Jan 3rd updates in -current?

I'm using alienbobs steamclient package. I launched steam after updating the recent packages and reinstalling the nvidia driver... The entire computer just hangs, having to literally pull the plug.

After booting back up, the scripts in ~/.local/share/Steam are all 0 in size. I decided to delete the entire local steam folder and start clean, running steam again.

The prompt for steam downloading an update is visible as normal, and the local folder is repopulated, but then once this finishes... The system completely locks up.

I believe this could be related to the new kernel package, but I'm not sure. I am getting no other issues besides steam completely crashing my computer.

Is anyone else getting this problem and what is the best way to find out what is actually happening here?

----
Edit 1: also steam worked fine just before I updated to the latest -current packages from Jan 3rd.

----
Edit 2: i've just tried looking through every log file in /var/log and cannot find anything about a panic, crash or even a segfault. Oddly, my keyboard doesn't have a sysrq key, but upon the freeze after steam is run, no input works at all, not even toggling the caps lock LED for example.

Last edited by coralfang; 01-04-2018 at 08:32 PM.
 
Old 01-04-2018, 10:39 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
SOLVED. This problem is related to the recent CPU security patches involving Intel (despite me having an amd fx 8320 cpu...)

Add this to your kernel boot commands:
Code:
nopti
Steam now loads up as per usual and does not cause the system to hang/freeze. This command disables whatever those patches added for the farce involving Intel cpus as far as i know.

Last edited by coralfang; 01-04-2018 at 11:24 PM.
 
3 members found this post helpful.
Old 01-05-2018, 12:09 AM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Just spotted this patch included in Arch's latest kernel of 4.14.11, https://git.archlinux.org/svntogit/p...3ba403ff798529

It disables the pti related patch on AMD CPUS.

Might be worth applying that on Slackware if you have an AMD CPU for the time being, although the bootloader option for "nopti" seems to be adequate.
 
Old 01-05-2018, 02:35 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by coralfang View Post
Just spotted this patch included in Arch's latest kernel of 4.14.11, https://git.archlinux.org/svntogit/p...3ba403ff798529

It disables the pti related patch on AMD CPUS.

Might be worth applying that on Slackware if you have an AMD CPU for the time being, although the bootloader option for "nopti" seems to be adequate.
This fix will likely be included in the next point release of the 4.14 series kernel. The details of the patch state:

Code:
   - Exclude AMD from the PTI enforcement. Not necessarily a fix, but if
     AMD is so confident that they are not affected, then we should not
     burden users with the overhead"

SOURCE: https://git.kernel.org/pub/scm/linux...utm_source=anz
 
Old 01-05-2018, 12:41 PM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
After updating to 4.14.11 with PTI enforcement built in I encountered a reproducible full system crash after running slackpkg in a 32-bit 14.2 chroot.

As I have an amd cpu I added 'nopti' to my /etc/lilo.conf and the crashes went away...
 
1 members found this post helpful.
Old 01-05-2018, 12:58 PM   #6
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by bassmadrigal View Post
This fix will likely be included in the next point release of the 4.14 series kernel. The details of the patch state:
Yep, appears to already be in the new 4.14.12
https://cdn.kernel.org/pub/linux/ker...ngeLog-4.14.12

Quote:
commit 151d7039757b71ebd9d170af0944562f51149372
Author: Tom Lendacky <thomas.lendacky@amd.com>
Date: Tue Dec 26 23:43:54 2017 -0600

x86/cpu, x86/pti: Do not enable PTI on AMD processors

commit 694d99d40972f12e59a3696effee8a376b79d7c8 upstream.

AMD processors are not subject to the types of attacks that the kernel
page table isolation feature protects against. The AMD microarchitecture
does not allow memory references, including speculative references, that
access higher privileged data when running in a lesser privileged mode
when that access would result in a page fault.

Disable page table isolation by default on AMD processors by not setting
the X86_BUG_CPU_INSECURE feature, which controls whether X86_FEATURE_PTI
is set.
 
2 members found this post helpful.
Old 01-05-2018, 02:10 PM   #7
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
No crash in 4.14.12 for me, but I suppose this is because PTI was masked for amd.
 
2 members found this post helpful.
Old 01-06-2018, 07:46 AM   #8
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by coralfang View Post
After booting back up, the scripts in ~/.local/share/Steam are all 0 in size.
It can be more dangerous. I launched Steam from the whiskermenu and the system froze.
After reboot, whiskermenu was with default configurations and the hierarchy in the Wine menu was lost,
so I think other files opened at the time of freeze could get corrupted too.
 
  


Reply

Tags
freeze, kernel, panic, steam



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic after system freeze norobro Debian 4 10-09-2017 11:06 PM
[SOLVED] Serious bluetooth issue - system freeze/kernel panic guyonearth Linux - Hardware 5 11-23-2012 09:53 AM
CentOS 6.2 system kernel panic(dead or freeze) on new hardware dumashu Linux - Server 13 07-21-2012 09:43 AM
Amuled causing system to just freeze up! HELP! ShiftyPowers Ubuntu 2 02-14-2006 11:00 AM
Copy Files Between Drives Causes Kernel Panic/Freeze of the System php Slackware 7 08-14-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration