Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run it. #11

Open
JulianLai opened this issue Jan 7, 2018 · 11 comments
Open

Fail to run it. #11

JulianLai opened this issue Jan 7, 2018 · 11 comments

Comments

@JulianLai
Copy link

JulianLai commented Jan 7, 2018

(gdb) r
Starting program: /home/user/Am-I-affected-by-Meltdown-master/meltdown-checker 
error in line:           (null) A irq_stack_union

Program received signal SIGABRT, Aborted.
0x00007ffff716b860 in raise () from /usr/lib/libc.so.6

@raphaelsc
Copy link
Owner

raphaelsc commented Jan 7, 2018

@JulianLai what the following command returns: "cat /proc/kallsyms | grep sys_call_table"?

could you please also share the backtrace from gdb?

@JulianLai
Copy link
Author

@raphaelsc

  1. It returns nothing
#0  0x00007ffff716b860 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff716cec9 in abort () from /usr/lib/libc.so.6
#2  0x000055555555676a in build_symbol_map(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#3  0x0000555555556b2e in main ()

@sidro
Copy link

sidro commented Jan 7, 2018

./meltdown_checker
Unable to find symbol sys_call_table in /proc/kallsyms
Falling back on the alternative symbol map file (usually requires root permission): /boot/System.map-4.14.12-gentoo...
Failed to open /boot/System.map-4.14.12-gentoo. Unable to proceed.
Aborted

@raphaelsc
Copy link
Owner

Hi @sidro. I'll find a way to fall back to a different approach when those files aren't usable. Thanks!

@raphaelsc
Copy link
Owner

@sidro: do you have /boot mounted? could you please try running the program as root instead?

@raphaelsc
Copy link
Owner

@JulianLai: this commit 9b74046 may help you, please pull changes and try again

@sergiy-kozak
Copy link

sergiy-kozak commented Jan 10, 2018

@raphaelsc , commit 9b74046 did not help here; I get similar errors as posted by @sidro

in my case /boot is mounted:
$ mount | grep /dev/sda
/dev/sda3 on / type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda3 on /var/lib/docker/plugins type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /var/lib/docker/overlay2 type ext4 (rw,relatime,data=ordered)

@raphaelsc
Copy link
Owner

thanks for the report @sergiy-kozak. i'll work on fixing that ASAP.

@sergiy-kozak
Copy link

Not sure what else I can provide, that is what I tried to display more info with gdb:

$ gdb ./meltdown-checker
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./meltdown-checker...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/skozak/git-public/Am-I-affected-by-Meltdown/meltdown-checker
Unable to find symbol sys_call_table in /proc/kallsyms
Falling back on the alternative symbol map file (usually requires root permission): /boot/System.map-4.9.75-1-lts...
Failed to open /boot/System.map-4.9.75-1-lts due to: No such file or directory. Unable to proceed.

Program received signal SIGABRT, Aborted.
0x00007ffff716b860 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff716b860 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff716cec9 in abort () from /usr/lib/libc.so.6
#2 0x0000555555556657 in build_symbol_map(std::__cxx11::basic_string<char, std::char_traits, std::allocator >) ()
#3 0x0000555555556d84 in main ()
(gdb) quit

@raphaelsc
Copy link
Owner

@sergiy-kozak could u pls consider running it as root? that will give me direction

@sergiy-kozak
Copy link

Tried it, doesn't look different though:

[root@arch-dt-skozak]: /home/skozak/git-public/Am-I-affected-by-Meltdown># gdb ./meltdown-checker
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./meltdown-checker...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/skozak/git-public/Am-I-affected-by-Meltdown/meltdown-checker
Unable to find symbol sys_call_table in /proc/kallsyms
Falling back on the alternative symbol map file (usually requires root permission): /boot/System.map-4.9.75-1-lts...
Failed to open /boot/System.map-4.9.75-1-lts due to: No such file or directory. Unable to proceed.

Program received signal SIGABRT, Aborted.
0x00007ffff716b860 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff716b860 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff716cec9 in abort () from /usr/lib/libc.so.6
#2 0x0000555555556657 in build_symbol_map(std::__cxx11::basic_string<char, std::char_traits, std::allocator >) ()
#3 0x0000555555556d84 in main ()
(gdb) quit

Value of kptr_restrict:
$ cat /proc/sys/kernel/kptr_restrict
0

Kernel (Arch linux LTS kernel):
$ uname -a
Linux arch-dt-skozak 4.9.75-1-lts #1 SMP Fri Jan 5 21:29:02 CET 2018 x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants