FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Join Date
    Jun 2014
    Location
    California
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    KASLR disabled

    If you apply the latest kernel maintenance you may get the following message
    KASLR disabled: 'kaslr' not on cmdline (hibernation selected).

    This was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1350174 against rawhide.
    Now occuring in Fedora 24 running kernel 4.7.2-201

    Workaround: Cntl-c after the message appears.
    HP ZBook 17 G2 i7 32GB Toshiba 512GB SSD Fedora 29 (Tesseract)
    HP ZBook 17 G2 i7 16GB Corsair Force LX 256GB SSD Fedora 29 (Antares)

  2. #2
    Join Date
    Feb 2009
    Posts
    2,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Another workaround is to add kasrl to grub kernel parameters.
    1. Open the file /etc/default/grub with root permissions
    2. Add the parameter kaslr to the end of GRUB_CMDLINE_LINUX and save the file
    3. Regenerate the GRUB configuration to apply the new changes.

    I did this on a desktop computer and the warning message disappears, but be warned that adding this parameter disables hibernation.

  3. #3
    Join Date
    Aug 2009
    Posts
    11,390
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    I haven't tested it since I don't use hibernation, but adding the nokaslr parameter might fix it for people using hibernation.

    Edit:

    This should be fixed in the 4.8 kernels, unknown if Fedora will backport the patch to future 4.7 kernels, though.

  4. #4
    Join Date
    Feb 2009
    Posts
    2,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    If I understand this post right

    https://patchwork.kernel.org/patch/8895081/

    then you will get just another warning by adding nokaslr kernel parameter. However, I haven't tested adding nokaslr since I don't use hibernation and adding kaslr kernel parameter makes the message go away.

  5. #5
    Join Date
    Sep 2006
    Location
    On up the road a piece
    Posts
    921
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    When I boot my desktop machine the first thing that appears on the screen is
    Code:
    WARNING: KASLR not allowed on cmd line
    . I don't see it in grub.cfg so not sure what that's about.
    I know things. It's what I do.

  6. #6
    Join Date
    Mar 2005
    Location
    Albuquerque, NM
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    For those not using hibernation, adding "nohibernate" to the kernel append line does make the KASLR disabled message go away.

  7. #7
    Join Date
    Aug 2009
    Posts
    11,390
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Well since there is a vulnerability in Later Intel processors that have the TSX extensions allowing KASLR to be completely unrandomized that is 100% effective, and pretty much undetectable (Check out the DrK exploit), kaslr can not be depended upon in itself to prevent attacks.

    The DrK exploit/attack pretty much uses how the hardware handles errors to it's advantage, executing an error handler in user space without even informing the OS.

    So, owners of the later Intel chips should be aware of this, as I don't have any idea if the TSX extensions can even be disabled or not.

    The attacks work with 100% effectiveness on all versions of Windows, Linux, OS X, and even in VM's.

  8. #8
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Re: KASLR disabled

    Interesting topic. I also notices in the latest Fedora 24 (kernel 4.7.2-201.fc24.x86_64) message: KASLR disabled: 'kaslr' not on cmdline (hibernation selected).

    I was wondering what KASLR really means?! Here is very good article about this feature:
    Kernel Address Space Layout Randomization -> https://lwn.net/Articles/569635/

    Article opened my eyes very wide. I even did not know what KASLR does mean. But... It makes sense. Especially that there is not possible to hibernate (S4 PM platform state, called Suspend To Disk), which brings completely different kernel topology, with random pages (2MB size per page) in TLB tables arranged. It does support without any problems suspend (S3 PM platform state, called Suspend to RAM), since the whole kernel + user space is preserved in DDRAM in suspended state.

    Interesting enough, with 1GB total 512 pages/space reserved for kernel, there are 511 possibilities to miss correct kernel beginning, which is (I suppose) enough for security.

    My unmodified kernel command line is the following: [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.7.2-201.fc24.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8

    nobody

  9. #9
    Join Date
    Apr 2006
    Location
    Barrie, Canada
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    I got the same message at boot after installing the latest updates, but it still boots up into the Desktop no problems. I installed the update today, 9/10, so they may have put a patch in there already.

  10. #10
    Join Date
    Mar 2016
    Location
    DI
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Quote Originally Posted by Neubie2
    I got the same message at boot after installing the latest updates, but it still boots up into the Desktop no problems. I installed the update today, 9/10, so they may have put a patch in there already.
    I am using Fedora 23 and feel very comfortable with it.
    After I upgraded to Fedora 24, when boot , I was received the warning :" Kaslr disbale: kaslr not command line (Hibernation selected)".
    I hope the next version of kernel 4.7 will solve that problem.

  11. #11
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Age
    85
    Posts
    10,263
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Quote Originally Posted by DBelton
    Well since there is a vulnerability in Later Intel processors that have the TSX extensions allowing KASLR to be completely unrandomized that is 100% effective, and pretty much undetectable (Check out the DrK exploit), kaslr can not be depended upon in itself to prevent attacks.

    The DrK exploit/attack pretty much uses how the hardware handles errors to it's advantage, executing an error handler in user space without even informing the OS.

    So, owners of the later Intel chips should be aware of this, as I don't have any idea if the TSX extensions can even be disabled or not.

    The attacks work with 100% effectiveness on all versions of Windows, Linux, OS X, and even in VM's.
    Thanks INTEL. Was the NSA involved with this one?
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  12. #12
    Join Date
    Jun 2014
    Location
    California
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    The error message issue is resolved in both F23 and F24 with the latest kernel patch.
    HP ZBook 17 G2 i7 32GB Toshiba 512GB SSD Fedora 29 (Tesseract)
    HP ZBook 17 G2 i7 16GB Corsair Force LX 256GB SSD Fedora 29 (Antares)

  13. #13
    Join Date
    Oct 2005
    Location
    British Columbia, Canada
    Posts
    1,111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Quote Originally Posted by djl47
    The error message issue is resolved in both F23 and F24 with the latest kernel patch.
    Hi djl47
    I have Kernel 4.7.2-201.fc24.x86_64 and the error still shows up when I boot. What 'error message issue' are you referring to that is resolved?
    Robert :)

  14. #14
    Join Date
    Jun 2014
    Location
    California
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Quote Originally Posted by robertdaleweir
    Hi djl47
    I have Kernel 4.7.2-201.fc24.x86_64 and the error still shows up when I boot. What 'error message issue' are you referring to that is resolved?
    I refer to the error message documented in the first post of this thread. Resolved with kernel maintenance that landed sometime on September 13.
    djl@antares ~]$ uname -a
    Linux antares 4.7.3-200.fc24.x86_64 #1 SMP Wed Sep 7 17:31:21 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    [djl@antares ~]$
    HP ZBook 17 G2 i7 32GB Toshiba 512GB SSD Fedora 29 (Tesseract)
    HP ZBook 17 G2 i7 16GB Corsair Force LX 256GB SSD Fedora 29 (Antares)

  15. #15
    Join Date
    Oct 2005
    Location
    British Columbia, Canada
    Posts
    1,111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: KASLR disabled

    Quote Originally Posted by djl47
    I refer to the error message documented in the first post of this thread. Resolved with kernel maintenance that landed sometime on September 13.
    djl@antares ~]$ uname -a
    Linux antares 4.7.3-200.fc24.x86_64 #1 SMP Wed Sep 7 17:31:21 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    [djl@antares ~]$
    Hi djl47
    Thanks alot.
    Robert :)

Page 1 of 2 12 LastLast

Similar Threads

  1. Wireless disabled in F14
    By LowNoteRyan in forum Servers & Networking
    Replies: 4
    Last Post: 24th February 2011, 11:50 AM
  2. why are PM's disabled!?
    By HMSS013 in forum Reviews, Rants & Things That Make You Scream
    Replies: 4
    Last Post: 18th September 2010, 06:02 AM
  3. IRQ 28 Disabled
    By abctx in forum Using Fedora
    Replies: 0
    Last Post: 27th October 2009, 09:01 PM
  4. touchpad: Once disabled, always disabled
    By tkalfaoglu in forum Hardware
    Replies: 3
    Last Post: 12th October 2009, 01:33 PM
  5. Why is SElinux disabled?
    By Algenon in forum Security and Privacy
    Replies: 2
    Last Post: 12th January 2005, 02:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •