kisscommunity

kisscommunity.bvnf.space site sources
git clone git://bvnf.space/home/kiss/kisscommunity.git
Log | Files | Refs | Submodules | README

index.txt (1457B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
Subject	GCC 10.1.0 kernel issue
From	Dylan Araps <dylan@k1ss.org>
Date	Wed, 9 May 2020 01:05:09 +0100

The kernel compiled with GCC 10.1.0 may crash on boot. This doesn't
seem to affect every system. I have thus far received a single report
by an affected user.

Attached below is a patch which has been reported to fix the issue.
This fix has not yet made it into a kernel release (let alone Linus'
tree).

I recommend applying the patch if compiling a kernel with GCC 10.1.0.
An additional note will be added to the installation guide for the
benefit of new users.

Patch: <a href="https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/patch/?id=f670269a42bfdd2c83a1118cc3d1b475547eac22">f670269a42bfdd2c83a1118cc3d1b475547eac22</a>

Commit: <a href="https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=f670269a42bfdd2c83a1118cc3d1b475547eac22">git.kernel.org</a>


UPDATE (May 19 2020):

Kernel versions 5.6.14 (latest stable) and 5.4.42 (latest LTS)
contain fixes for GCC 10 and no patch is needed.


UPDATE:

Another alternative is to simply disable the stack protector in your
kernel configuration. This will also fix the kernel crashing during
the boot up process.

    CONFIG_STACKPROTECTOR=n
    CONFIG_STACKPROTECTOR_STRONG=n


    Dylan

---


Notes:

- Reported to apply cleanly to kernel version 5.6.11.
- Hop on IRC, Reddit or send me an email (dylan@k1ss.org) if you
  require any assistance. I'm here to help.