Commit Graph

8660 Commits

Author SHA1 Message Date
Xi Ruoyao
e5aa02fe17
kernel: enable ASLR and SSP
It does not make too much sense to protect the userspace with PIE+ASLR
and SSP but leave the kernel alone...
2022-09-11 12:09:18 +08:00
Xi Ruoyao
a710d35e1f
Revert "linux kernel: disable CONFIG_USERFAULTFD to avoid CVE-2022-2590 for now"
This reverts commit 098f4de336.

CVE-2022-2590 is fixed in Linux >= 5.19.6.
2022-09-11 12:01:31 +08:00
Xi Ruoyao
e502de1ab0
gcc: some reword of PIE/SSP/ASLR note
Expand tabs to 8 spaces like everywhere else in the book.

Explain that shared libraries are already covered by ASLR, PIE expands
the ASLR to cover the exetutables.

In 2022, stack smashing attackings are mostly constructing a sequence of
faked returning addresses to exectute a series of function already
existing in the programs or libraries itself (ret2lib).  Returning into
the code injected by the attacker is almost impossible because on
i686 (with a PAE/NX enabled kernel) or x86_64, running injected code
needs W/X mappings and those are very rare these days.
2022-09-11 11:35:06 +08:00
Pierre Labastie
8d3b2541da gcc-pass1: fix bold "and" in command explanation 2022-09-10 14:01:42 +02:00
Pierre Labastie
1bade3f439 Document the --enable-default-pie/ssp options
Also document test failures in gcc chapter 8
2022-09-10 13:41:38 +02:00
Pierre Labastie
0611f706d5 Use default-pie and default-ssp flags in gcc
Committing only the commands for now, so that others can test the
build. TODO:
- add command explanations
- add changelog
- comment on failing tests in binutils and gcc
2022-09-09 16:15:06 +02:00
Bruce Dubbs
917868fc69 Package Updates.
Update to shadow-4.12.3.
Update to Python3-3.10.7.
Update to linux-5.19.7.
Update to less-608.
Update to grep-3.8.
2022-09-07 14:59:45 -05:00
Xi Ruoyao
696a7b4a83
whatnow: update online resources list for maintainance
Bugtraq is dead since 2021, use oss-sec instead.

For CERT, cert.org redirects to CMU and us-cert.gov redirects to US
CISA (https://www.cisa.gov/uscert/).  I'm not familiar with those so
left those for a US citizen to add :).
2022-09-05 10:04:33 +08:00
Xi Ruoyao
fb66c4c583
some http -> https changes 2022-09-05 09:52:05 +08:00
Xi Ruoyao
c6df98a117
Merge remote-tracking branch 'origin/trunk' into xry111/arm64 2022-09-01 19:27:12 +08:00
Xi Ruoyao
baecd49c48
gcc-pass2: remove unnecessary --enable-initfini-array option
Forgot to remove this one when I removed it in pass 1...

Reference: https://gcc.gnu.org/r12-1328
2022-09-01 14:04:34 +08:00
Xi Ruoyao
7b3f5a4f8d
groff: remove -j1 2022-09-01 14:04:34 +08:00
Pierre Labastie
51b7349a97 Remove all non header files in linux headers
Report by Joe Locash that a perl script was left in /usr/include
with our current instructions
2022-08-31 21:34:49 +02:00
Bruce Dubbs
b877b48a51 Clean up after 11.2 2022-08-31 14:12:10 -05:00
Xi Ruoyao
cfaf7273f8
parition: mention EFI system partition
Text only change.  Simply refer to BLFS.
2022-08-28 20:06:00 +08:00
Xi Ruoyao
bf6f9e75ee
python: supress "failed to check new pip version" or "a new pip version is available" warnings
The non-text change during freeze is approved by bdubbs.
2022-08-26 23:52:18 +08:00
Xi Ruoyao
bbd6346417
arm64: fix a typo in target triple 2022-08-26 20:48:46 +08:00
Xi Ruoyao
c8bc7430f3
arm64: various text change for references to architecture 2022-08-26 20:31:34 +08:00
Xi Ruoyao
a56ef9163d
arm64: util-linux: remove i386 and x86_64 from contents 2022-08-26 20:31:34 +08:00
Xi Ruoyao
5adc76b2b8
arm64: gmp: remove reference to 32-bit or x86 2022-08-26 20:31:34 +08:00
Xi Ruoyao
8e7fe4acd4
arm64: gcc-pass2: remove unnecessary --enable-initfini-array option
Forgot to remove this one when I removed it in pass 1...

Reference: https://gcc.gnu.org/r12-1328

(cherry picked from commit 7500d50282b8f0eb1f69e1007362451122cbc557)

Pick it up early in ARM64 branch to remove one reference to x86.
2022-08-26 20:31:34 +08:00
Xi Ruoyao
c84ec3875a
arm64: grub cfg: adapt for minimal UEFI boot 2022-08-26 20:31:34 +08:00
Xi Ruoyao
cfc0780524
arm64: update arch-specific path to kernel image
"vmlinuz" is a little puzzling as the kernel image is not compressed.
But let's not deviate too much from trunk...
2022-08-26 20:31:34 +08:00
Xi Ruoyao
2f098e4344
arm64: remove x86_64 specific x2apic kernel features 2022-08-26 20:31:33 +08:00
Xi Ruoyao
3d13efb7cd
arm64: add a note explaining "i386" in keymap patch
TL;DR: don't skip the patch.
2022-08-26 20:31:33 +08:00
Xi Ruoyao
5a458e897a
arm64: grub: reword the note about UEFI
No instruction change is needed.
2022-08-26 20:31:33 +08:00
Xi Ruoyao
6ca1bb6f73
arm64: Revert "Update the command explanations in findutils"
This reverts commit 4b4f934b9c.

We've reverted TIME_32_BIT_OK=yes change, revert the dangling
explanation too.
2022-08-26 20:31:33 +08:00
Xi Ruoyao
ccb61b76b1
arm64: Revert "Fix issue building findutils on a 32bit system"
This reverts commit f2ab0c5d05.

We only care AArch64 now, maybe we'll need to introduce something
similar if we'll ever add 32-bit ARM support.
2022-08-26 20:31:33 +08:00
Xi Ruoyao
0d3452ac89
arm64: gcc: update sanity check output
It looks like a simple "s/x86_64-pc/aarch64-unknown/".
2022-08-26 20:31:33 +08:00
Xi Ruoyao
317f014c21
arm64: gcc: document test failures 2022-08-26 20:31:33 +08:00
Xi Ruoyao
3c8308386c
arm64: document binutils test failures 2022-08-26 20:31:33 +08:00
Xi Ruoyao
728b8d8932
arm64: expect: update config.{guess,sub}
Expect ships a 2003 (!) edition of those scripts, and AArch64 just does
not exist in 2003.
2022-08-26 20:31:32 +08:00
Xi Ruoyao
8b9efe6786
arm64: update ELF loader paths
See https://sourceware.org/glibc/wiki/ABIList#aarch64.
2022-08-26 20:31:32 +08:00
Xi Ruoyao
c18558ce33
arm64: remove ld.so symlink creation
It's not need for ARM64!
2022-08-26 20:31:32 +08:00
Xi Ruoyao
9334a3f2dc
arm64: adapt GCC lib64 -> lib quirk for aarch64 2022-08-26 20:31:32 +08:00
Xi Ruoyao
4d8854a5e3
arm64: don't create /lib64
The path to dynamic linker is /lib/ld-linux-aarch64.so.1, no hardcoded
/lib64.  It's much better than x86_64 or MIPS64 IMO.

[As a LoongArch contributor & reviewer: we really should have removed
this stupid "64" in the early development stage of LoongArch ELF ABI.]
2022-08-26 20:31:32 +08:00
Xi Ruoyao
b7adecc96c
arm64: set min-kernel to 3.7
It's the minimum required by Glibc-2.36 for ARM64.
2022-08-26 20:31:32 +08:00
Xi Ruoyao
e5263d535f
arm64: start branch 2022-08-26 20:31:32 +08:00
Xi Ruoyao
5353a1948f
grub: add a note about filesystem UUID and partition UUID usage
Text only change.
2022-08-26 20:30:29 +08:00
Xi Ruoyao
d84087141c
reboot: mention firmwares
Text only change.

I've forgotten this several times for AMDGPU...
2022-08-26 19:52:20 +08:00
Xi Ruoyao
e9d65f2f4c
grub: update description for grub-glue-efi
Text only change.

Found out this utility also exists on ARM, so copied "grub-glue-efi
--help" here, which does not mention "ia32" or "amd64".
2022-08-26 19:47:50 +08:00
Pierre Labastie
b3f157c685 Don't use dummy.c for glibc sanity check in chap 5
It seems glibc creates dummy.c for its own use. This leaves some
dummy.xxx files in the directory, that may lead some users to think that
the directory is not properly cleaned up after the test (I did :)

So use a pipe so that only a.out is created
2022-08-25 09:24:58 +02:00
Xi Ruoyao
feed7fea36
linux kernel: reword description for CONFIG_X86_X2APIC 2022-08-25 01:05:55 +08:00
Xi Ruoyao
85cdcb0980
glibc: don't mention "/lib" as ld.so search path anymore
Text change only.

Since 11.0, /lib is a symlink to usr/lib.  With libc_cv_slibdir=/usr/lib,
/lib won't be searched by default anymore (if someone mess up the system
by removing /lib symlink and create an real directory there, for example
the initramfs before r10.1-439).
2022-08-24 23:42:27 +08:00
Xi Ruoyao
098f4de336
linux kernel: disable CONFIG_USERFAULTFD to avoid CVE-2022-2590 for now 2022-08-24 16:42:49 +08:00
Xi Ruoyao
83b86449a1
linux kernel: enable CONFIG_X86_X2APIC
It's recommended for CVE-2022-21233 mitigation.  And, if the BIOS has
enabled x2APIC but CONFIG_X86_X2APIC=n, the kernel will panic on boot.

If x2APIC is disabled or not available, the kernel with
CONFIG_X86_X2APIC=y can still boot normally.

No need to tag anything again because interrupt handling cannot affect
userspace.
2022-08-24 16:42:48 +08:00
Xi Ruoyao
20007e51c2
glibc: update test status
Text change only.

Add tst-arc4random-thread failure recently reported to upstream, remove
namespace related failures as they are UNSUPPORTED now in 2.36.
2022-08-23 18:43:10 +08:00
Xi Ruoyao
ec3cad45c3
mark linux-5.19.2 and shadow-4.12.2 as security fix 2022-08-22 11:17:46 +08:00
Bruce Dubbs
fd6f71bd35 Update SBU times and disk usage for all packages 2022-08-21 12:00:34 -05:00
Bruce Dubbs
a7a9d696fc Minor updates 2022-08-21 10:04:47 -05:00