View previous topic :: View next topic |
Author |
Message |
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Sun Jun 21, 2020 8:39 pm Post subject: Weird problem. Maybe kernel related. |
|
|
I think i screwed something up somehow. I probably did it a few days ago but just relized it now since i was gone for a while. So i don't know what exacly i did. I think besides a lot of other stuff i've also recompiled the kernel because i had the kernel config saved as kernelconf.config and it had to be just .config.
So here is the problem.
When i enter "dmesg" it tells me: "dmesg: read kernel buffer failed: Function not implemented"
When i try to compile something for example the firefox-bin and i do "emerge www-client/firefox-bin" after a while it gets stuck in an endless loop of the message: "madvise failed: Function not implemented"
Im sure there are many other cases where i would get an error with something like "Function not implemented" which i haven't noticed yet.
Feel free to move this post to another threat if its not kernel related.
Thanks for the help |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3916
|
Posted: Mon Jun 22, 2020 10:26 am Post subject: |
|
|
Hi
what happens when you run
Code: |
grep CONFIG_ADVISE_SYSCALLS /usr/src/linux/.config
|
Apparently it should be set to "y"
|
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Mon Jun 22, 2020 4:12 pm Post subject: |
|
|
alamahant wrote: | Hi
what happens when you run
Code: |
grep CONFIG_ADVISE_SYSCALLS /usr/src/linux/.config
|
Apparently it should be set to "y"
|
It is set to y. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6147 Location: Dallas area
|
Posted: Mon Jun 22, 2020 4:41 pm Post subject: |
|
|
What does ls -la /dev/kmsg return?
What does grep DMESG /usr/src/linux/.config return? _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Mon Jun 22, 2020 4:50 pm Post subject: |
|
|
Anon-E-moose wrote: | What does ls -la /dev/kmsg return?
What does grep DMESG /usr/src/linux/.config return? |
ls -la /dev/kmsg gives me: "crw-rw---- 1 root root 1, 11 22. Jun 18:10 /dev/kmsg"
grep DMESG /usr/src/linux/.config gives me: "# CONFIG_SECURITY_DMESG_RESTRICT is not set" |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6147 Location: Dallas area
|
Posted: Mon Jun 22, 2020 4:55 pm Post subject: |
|
|
I don't think that's the right permissions for kmsg
I show
Code: | crw-r--r-- 1 root root |
A thought, what does
Code: | zgrep DMESG /proc/config.gz |
return, as that's the running kernel's configuration.
Edit to add: what does cat /proc/sys/kernel/dmesg_restrict return _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Mon Jun 22, 2020 6:37 pm Post subject: |
|
|
Anon-E-moose wrote: | I don't think that's the right permissions for kmsg
I show
Code: | crw-r--r-- 1 root root |
A thought, what does
Code: | zgrep DMESG /proc/config.gz |
return, as that's the running kernel's configuration.
Edit to add: what does cat /proc/sys/kernel/dmesg_restrict return |
zgrep DMESG /proc/config.gz: "gzip: /proc/config.gz: No such file or directory"
cat /proc/sys/kernel/dmesg_restrict: "cat: /proc/sys/kernel/dmesg_restrict: No such file or directory"
Hm weird... |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6147 Location: Dallas area
|
Posted: Mon Jun 22, 2020 6:42 pm Post subject: |
|
|
What does "uname -a" return? _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Mon Jun 22, 2020 6:48 pm Post subject: |
|
|
Anon-E-moose wrote: | What does "uname -a" return? |
It returns: "Linux GentooBox 5.4.38-gentoo #4 SMP Sun Jun 14 14:27:05 CEST 2020 x86_64 Intel(R) Core(TM) i5-6600k CPU @ 3.50GHz GenuineIntel GNU/Linux" |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6147 Location: Dallas area
|
Posted: Mon Jun 22, 2020 7:48 pm Post subject: |
|
|
You've gotten something misconfigured, not sure if it's in the kernel or something else happened.
You can set the permissions for kmsg (which should allow dmesg to work) or just dmesg as root, either will work.
As root "cdmod 644 /dev/kmsg" although the permissions will probably reset on reboot. _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Mon Jun 22, 2020 11:04 pm Post subject: |
|
|
Anon-E-moose wrote: | You've gotten something misconfigured, not sure if it's in the kernel or something else happened.
You can set the permissions for kmsg (which should allow dmesg to work) or just dmesg as root, either will work.
As root "cdmod 644 /dev/kmsg" although the permissions will probably reset on reboot. |
I tried this but i still get the same Errors like in my first message. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3425 Location: Canada
|
Posted: Tue Jun 23, 2020 4:08 am Post subject: |
|
|
Lynix48 wrote: | Anon-E-moose wrote: | I don't think that's the right permissions for kmsg
I show
Code: | crw-r--r-- 1 root root |
A thought, what does
Code: | zgrep DMESG /proc/config.gz |
return, as that's the running kernel's configuration.
Edit to add: what does cat /proc/sys/kernel/dmesg_restrict return |
zgrep DMESG /proc/config.gz: "gzip: /proc/config.gz: No such file or directory"
cat /proc/sys/kernel/dmesg_restrict: "cat: /proc/sys/kernel/dmesg_restrict: No such file or directory"
Hm weird... |
Well, it is not weird, it just means that
CONFIG_IKCONFIG_PROC ( that is to have /proc/config.gz )
is not set. Maybe even CONFIG_IKCONFIG itself is not set as well (to have .config information saved in the kernel itself)
BTW, do you have /proc support at all ? |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Tue Jun 23, 2020 11:54 am Post subject: |
|
|
dmpogo wrote: | Lynix48 wrote: | Anon-E-moose wrote: | I don't think that's the right permissions for kmsg
I show
Code: | crw-r--r-- 1 root root |
A thought, what does
Code: | zgrep DMESG /proc/config.gz |
return, as that's the running kernel's configuration.
Edit to add: what does cat /proc/sys/kernel/dmesg_restrict return |
zgrep DMESG /proc/config.gz: "gzip: /proc/config.gz: No such file or directory"
cat /proc/sys/kernel/dmesg_restrict: "cat: /proc/sys/kernel/dmesg_restrict: No such file or directory"
Hm weird... |
Well, it is not weird, it just means that
CONFIG_IKCONFIG_PROC ( that is to have /proc/config.gz )
is not set. Maybe even CONFIG_IKCONFIG itself is not set as well (to have .config information saved in the kernel itself)
BTW, do you have /proc support at all ? |
Would that also explain the Error madvise failed: Function not implemented when compiling something?
How can i check if i have /proc support? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Tue Jun 23, 2020 12:07 pm Post subject: |
|
|
Lynix48,
will show lots of things if you have /proc support. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Tue Jun 23, 2020 2:42 pm Post subject: |
|
|
NeddySeagoon wrote: | Lynix48,
will show lots of things if you have /proc support. |
ls /proc shows plenty of files and directories. |
|
Back to top |
|
|
Lynix48 n00b
Joined: 14 Jun 2020 Posts: 38
|
Posted: Tue Jun 23, 2020 2:47 pm Post subject: |
|
|
I just checked. CONFIG_IKCONFIG is not set. If i change it to yes will that just fix dmesg or will that also fix the compiling error? |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3425 Location: Canada
|
Posted: Tue Jun 23, 2020 4:32 pm Post subject: |
|
|
Lynix48 wrote: | I just checked. CONFIG_IKCONFIG is not set. If i change it to yes will that just fix dmesg or will that also fix the compiling error? |
This will just allow to query for compile options in the running kernel. Set also CONFIG_IKCONFIG_PROC, then you will have /proc/config.gz file for the running kernel.
I don't think it will resolve any compiling errors. |
|
Back to top |
|
|
|