LinuxQuestions.org
Visit Jeremy's Blog.
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 05-15-2024, 12:14 PM   #4531
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948

Quote:
Originally Posted by garpu View Post
Is it just intel that's having the issues? I'm on an AMD cpu (ryzen 5 1600). Also using elilo, if it makes any difference.
Appears to yes , i have 3 machines with some ryzen cpus and only fail 1 that is intel.

2 boot fine (amd ryzne s) 1 laptop 1 tower.

1 fail to boot ( intel i7 7500u ) laptop.
 
1 members found this post helpful.
Old 05-15-2024, 12:35 PM   #4532
Bravo_97
Member
 
Registered: Nov 2010
Location: US-Pennsylvania
Distribution: Slackware64-15.0, Slackware-current, Slackware64-current, Slackwareaarch64-current
Posts: 32

Rep: Reputation: 12
I am also using elilo.
 
1 members found this post helpful.
Old 05-15-2024, 12:41 PM   #4533
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,167

Rep: Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339
Quote:
Originally Posted by jkh2cpu View Post
With kernel-6.9.0, I cannot build the newest nvidia driver, and I cannot build a network driver for my 8814au wifi usb driver........
The latest Nvidia production driver-550.78, builds with the 6.9.0 kernel. I have installed it twice. Once with a "roll-your-own" kernel, then removed it, the kernel and the driver, and installed the driver again with the kernel provided in yesterday's -current updates.
Not a cough, hiccup or a sneeze. Everything is working as it should.

Last edited by cwizardone; 05-15-2024 at 12:47 PM.
 
1 members found this post helpful.
Old 05-15-2024, 12:47 PM   #4534
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 583

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Quote:
Originally Posted by USUARIONUEVO View Post
Appears to yes , i have 3 machines with some ryzen cpus and only fail 1 that is intel.

2 boot fine (amd ryzne s) 1 laptop 1 tower.

1 fail to boot ( intel i7 7500u ) laptop.
Both of my Intel machines (DualCore & i7), boot just fine to the 6.9 kernel
and everything I have run at the cli works just fine. BUT, X will not start.

Right now underway here on this Intel DualCore machine is a compile of the 6.9.0 kernel
using using /boot/config-generic-6.6.30.x64 as a staring point.

slackpkg install k/*

root@glennmcc-server:/# slackpkg search kernel

Looking for kernel in package list. Please wait... DONE

The list below shows all packages with name matching "kernel".

[ upgrade ] - kernel-firmware-20240502_28f75f1-noarch-1 --> kernel-firmware-20240510_b9d2bf2-noarch-1
[ upgrade ] - kernel-generic-6.6.30-x86_64-1 --> kernel-generic-6.9.0-x86_64-1
[ upgrade ] - kernel-headers-6.6.30-x86-1 --> kernel-headers-6.9.0-x86-1
[ upgrade ] - kernel-modules-6.6.30-x86_64-1 --> kernel-modules-6.9.0-x86_64-1
[ installed ] - kernel-source-6.9.0-noarch-1


cp /boot/config-generic-6.6.30.x64 /usr/src/linux-6.9/.config

cd /usr/src/linux-6.9

make menuconfig

Hit 'save' and 'exit' without making any changes.

time make

Will report back later with my results.

Oh yeah, other than the kernel... this system is a fully upgraded slackware64-current
therefore this kernel is being built with gcc14

Last edited by glennmcc; 05-15-2024 at 01:18 PM.
 
Old 05-15-2024, 01:12 PM   #4535
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
While this looks a lot like what's being reported here, that patch made it into gcc-14.1.0. But there could possibly be more issues like this lurking in gcc-14.

As is usually the case, everything is working great here. I'm getting no crashes or illegal instructions on any of my machines, ranging from old i3/i5/i7 (an older i7 than was reported as problematic here), and even the venerable Phenom II X6 that completely lacks AVX support. I've tried xfce4-terminal, mc, okular, and whatever else had crash reports.

I might take a day off from compiling anything else (i.e. quit digging that hole deeper) and see what I can find. Hints appreciated, of course.

The kernel is another question, but that's also considerably easier to back out.
 
2 members found this post helpful.
Old 05-15-2024, 01:22 PM   #4536
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
Quote:
Originally Posted by Petri Kaukasoina View Post
6.9.0 does not boot on my laptop. Kernel panic. 6.8.0 does boot. I'll try to bisect it.
Code:
4379f91172f39d999919c8e8b2b5e1d665d8972d is the first bad commit
commit 4379f91172f39d999919c8e8b2b5e1d665d8972d
Author: Christian Brauner <brauner@kernel.org>
Date:   Tue Jan 23 14:26:23 2024 +0100

    power: port block device access to file
    
    Link: https://lore.kernel.org/r/20240123-vfs-bdev-file-v2-6-adbd023e19cc@kernel.org
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Christian Brauner <brauner@kernel.org>

 kernel/power/swap.c
It seems to be code reading the hibernation image from disk. I have a swap file, not a partition, so maybe that's why everyone doesn't see this. When I now removed resume= and resume_offset= parameters from the kernel command line, even my laptop boots Pat's 6.9.0 kernel.
 
3 members found this post helpful.
Old 05-15-2024, 01:22 PM   #4537
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
I can try a simply test

Build 6.6.30 with gcc14 and test on my problematic machine.

If run , then the problem comes in linux 6.9
If not run , the problem comes in gcc14

Building linux 6.6.30 ... i need only arround 7 minutes to make test.

Last edited by USUARIONUEVO; 05-15-2024 at 01:30 PM.
 
2 members found this post helpful.
Old 05-15-2024, 01:40 PM   #4538
billaud
LQ Newbie
 
Registered: Sep 2019
Location: 86170 France
Distribution: Slackware - Debian
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by garpu View Post
Is it just intel that's having the issues? I'm on an AMD cpu (ryzen 5 1600). Also using elilo, if it makes any difference.
GDS - Gather Data Sampling
Depends on (Intel) CPU, microcode, kernel version, boot parameters.

https://www.intel.com/content/www/us...-sampling.html
https://docs.kernel.org/admin-guide/..._sampling.html

lscpu :
Vulnerabilities:
Gather data sampling*: Vulnerable: No microcode
or "Not affected" or "Mitigation: microcode" or "Mitigation: No microcode; AVX disabled" (or something like that)

Some Intel CPUs have no mitigation by microcode (even with last version 2024-05-14), disabling AVX causes "illegal instruction" with mc.

Kernel 6.6 does not disable AVX by default if no microcode mitigation, use append="clearcpuid=avx" in lilo to disable AVX
Kernel 6.9 disables AVX by default if no microcode mitigation, use append="gather_data_sampling=off" in lilo to keep AVX instructions

JFB
 
9 members found this post helpful.
Old 05-15-2024, 01:45 PM   #4539
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Hi , i finish my little test.

GCC 14 IS NOT THE CULPRIT

Is something with linux 6.9 , or bug on code , or a config issue.


Building linux 6.6.30 with gcc 14 , and runs fine on my problematic machine ...
Linux 6.9 not run on my machine.

I can do , other test , i have 15.0 with old gcc 11 if im not remember bad.

I can test build 6.9 on slackware 15.0 and see , but i imagine if is a bug ..the compiler is not relevant.

Last edited by USUARIONUEVO; 05-15-2024 at 01:47 PM.
 
4 members found this post helpful.
Old 05-15-2024, 01:53 PM   #4540
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
Quote:
Originally Posted by billaud View Post
GDS - Gather Data Sampling
Depends on (Intel) CPU, microcode, kernel version, boot parameters.

https://www.intel.com/content/www/us...-sampling.html
https://docs.kernel.org/admin-guide/..._sampling.html

lscpu :
Vulnerabilities:
Gather data sampling*: Vulnerable: No microcode
or "Not affected" or "Mitigation: microcode" or "Mitigation: No microcode; AVX disabled" (or something like that)

Some Intel CPUs have no mitigation by microcode (even with last version 2024-05-14), disabling AVX causes "illegal instruction" with mc.

Kernel 6.6 does not disable AVX by default if no microcode mitigation, use append="clearcpuid=avx" in lilo to disable AVX
Kernel 6.9 disables AVX by default if no microcode mitigation, use append="gather_data_sampling=off" in lilo to keep AVX instructions

JFB
Ah yes, now we're getting some problems here! I have all my machines running with mitigations=off since I completely lack paranoia over side channel attacks.

Seems like a poor kernel default. /me goes looking to see if there's a Kconfig toggle...
 
3 members found this post helpful.
Old 05-15-2024, 02:16 PM   #4541
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Pff , im not sure now


slackware64-15.0

i build linux 6.9 , using gcc 11 , and problematic machine start okey.

same machine , cant start -current with linux 6.9 , its very rare.

firmwares on 15.0 are more old ...

Nothing clear.

EDIT: Downgrade firmwares no fix the issue. , sorry but i not get nothing clear here.

Last edited by USUARIONUEVO; 05-15-2024 at 02:41 PM.
 
1 members found this post helpful.
Old 05-15-2024, 02:19 PM   #4542
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 287

Rep: Reputation: 63
Here is a snippet of code. I was trying to build the nvidia driver with kernel-6.9.0.

It builds find with 6.6.25 and gcc.

CC [M] /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-p2p.o
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
CC [M] /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-pat.o
make[3]: *** [scripts/Makefile.build:244: /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv.o] Error 1
CC [M] /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-usermap.o
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
make[3]: *** [scripts/Makefile.build:244: /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-pci.o] Error 1
CC [M] /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-vm.o
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
make[3]: *** [scripts/Makefile.build:244: /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-acpi.o] Error 1
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
make[3]: *** [scripts/Makefile.build:244: /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-nano-timer.o] Error 1
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
CC [M] /tmp/selfgz1716/NVIDIA-Linux-x86_64-550.67/kernel/nvidia/nv-vtophys.o
cc: error: unrecognized command-line option '-fmin-function-alignment=16'; did you mean '-flimit-function-alignment'?
 
1 members found this post helpful.
Old 05-15-2024, 02:28 PM   #4543
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 797

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
FWIW I have built a 6.9.0 kernel with gcc 14 and gcc 13.2. Both cause crashes on my -current laptop, which has an intel cpu.

I'll take a look at what @billaud suggests with mitigations too.

Last edited by 0XBF; 05-15-2024 at 02:28 PM. Reason: grammer
 
1 members found this post helpful.
Old 05-15-2024, 02:36 PM   #4544
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 797

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
Yep that fixes it. I added "mitigations=off" to the kernel command line et voila, sddm and plasma work again.

Thanks again for the hint. I don't tinker with the kernel congfis much but I'll take a peek. Hopefully thats enough for Pat to narrow in on a fix.
 
4 members found this post helpful.
Old 05-15-2024, 02:48 PM   #4545
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 905

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
I may have spoken too soon. I downgraded gcc to 13.2 and then rebuilt kernel 6.9 under that gcc, and got the exactly same problems. SDDM not booting, applications randomly crashing, "Illegal instructions" errors... so it should be the kernel or somehting else. Reverted to kernel 6.6.30 and gcc 13.2 for now. I will investigate further.
 
1 members found this post helpful.
  


Reply



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
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

All times are GMT -5. The time now is 08:52 PM.

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