Introduce src.conf knob to build userland with retpolineMFC r339511: Introduce src.conf knob to build userland with retpolineWITH_RETPOLINE enables -mretpoline vulnerability mitigation in userlan
Introduce src.conf knob to build userland with retpolineMFC r339511: Introduce src.conf knob to build userland with retpolineWITH_RETPOLINE enables -mretpoline vulnerability mitigation in userlandfor CVE-2017-5715.MFC r340099: libcompat: disable retpoline when building build toolsThese are built with the host toolchain which may not support retpoline.While here, move the MK_ overrides to a separate line and sort themalphabetically to support future changes.MFC r340650: Avoid retpolineplt with static linkingStatically linked binaries linked with -zretpolineplt crash at startupas lld produces a broken PLT.MFC r340652: rescue: set NO_SHARED in MakefileThe rescue binary is built statically via the Makefile generated bycrunchgen, but that does not trigger other shared/static logic inbsd.prog.mk - in particularPR: 233336Reported by: Peter Malcom (r339511), Charlie Li (r340652)Approved by: re (gjb, early MFC)Sponsored by: The FreeBSD Foundation
show more ...
MFC r339972: rescue: Add bectl(8)Approved by: re (gjb)
Avoid referencing private lib names directly.Sponsored by: Dell EMC Isilon
rescue ipf: Remove hacks and link in libipf directly.Sponsored by: Dell EMC Isilon
Remove badsect(8).Failure modes of the modern (that is, produced in the last 25 years)hard drives and SSDs made the utility outdated. Since the kernelinterface to support it was removed in r3248
Remove badsect(8).Failure modes of the modern (that is, produced in the last 25 years)hard drives and SSDs made the utility outdated. Since the kernelinterface to support it was removed in r324853, cut the userspaceremnants as well.Discussed with: bde (who does not like the removal)Sponsored by: The FreeBSD FoundationMFC after: 2 weeks
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
rescue: say gbye to 'boot floppies' and moderize
Remove rcmds.If they are still needed, you can find them in the net/bsdrcmds port.This was proposed June, 20th and approved by various committers [1].They have been marked as deprecated on CURRE
Remove rcmds.If they are still needed, you can find them in the net/bsdrcmds port.This was proposed June, 20th and approved by various committers [1].They have been marked as deprecated on CURRENT in r320644 [2] on July, 4th.Both stable/11 and release/11.1 contain the deprecation notice (thanks toallanjude@).Note that ruptime(1)/rwho(1)/rwhod(8) were initially thought to be part ofrcmds but this was a mistake and those are therefore NOT removed.[1] https://lists.freebsd.org/pipermail/freebsd-arch/2017-June/018239.html[2] https://svnweb.freebsd.org/base?view=revision&revision=320644Reviewed by: bapt, brooksDifferential Revision: https://reviews.freebsd.org/D12573
Add zstd to the rescue binaryHaving zstd might be useful in rescue to be able to access to log filescompressed by zstandardSuggested by: ian
More ATM and NATM removalSubmitted by: akReviewed by: ngieDifferential Revision: https://reviews.freebsd.org/D10511
Remove NATM configuration bits and assorted NATM and ATM remnants.Reported by: akReviewed by: ngie (first version)Differential Revision: https://reviews.freebsd.org/D10497
Remove the NATM framework including the en(4), fatm(4), hatm(4), andpatm(4) devices.Maintaining an address family and framework has real costs when we makeinfrastructure improvements. In the cas
Remove the NATM framework including the en(4), fatm(4), hatm(4), andpatm(4) devices.Maintaining an address family and framework has real costs when we makeinfrastructure improvements. In the case of NATM we support no devicesmanufactured in the last 20 years and some will not even work in modernmotherboards (some newer devices that patm(4) could be updated tosupport apparently exist, but we do not currently have support).With this change, support remains for some netgraph modules that don'trequire NATM support code. It is unclear if all these should remain,though ng_atmllc certainly stands alone.Note well: FreeBSD 11 supports NATM and will continue to do so until atleast September 30, 2021. Improvements to the code in FreeBSD 11 arecertainly welcome.Reviewed by: philipApproved by: harti
Fix linking /rescue/rescue to multiple programs in usr.bin after r315113I meant for the line that conditionally added in /usr/bin/nc support tobe `+=', not `=`. This restores hardlinks for all pro
Fix linking /rescue/rescue to multiple programs in usr.bin after r315113I meant for the line that conditionally added in /usr/bin/nc support tobe `+=', not `=`. This restores hardlinks for all programs in usr.binspecified before nc(1), e.g., bunzip2 and tar.Reported by: Andrzej Tobola <[email protected]>Submitted by: Scott Allendorf <[email protected]>Pointyhat to: ngieMFC after: 3 daysSponsored by: Dell EMC Isilon
Make rescue use SRCTOPTransition to SRCTOP. Also, standardize of {} instead of () variabledeliminators while I'm here.Differential Revision: https://reviews.freebsd.org/D9932Sponsored by: Netf
Make rescue use SRCTOPTransition to SRCTOP. Also, standardize of {} instead of () variabledeliminators while I'm here.Differential Revision: https://reviews.freebsd.org/D9932Sponsored by: NetflixSilence On: arch@ (twice)
Conditionally compile [additional] programs into rescue(8) if requestedTrivial oversight missed in r314240 cleanup because I enable these knobs onmy test machines.MK_INET6_SUPPORT - rtsolMK_NET
Conditionally compile [additional] programs into rescue(8) if requestedTrivial oversight missed in r314240 cleanup because I enable these knobs onmy test machines.MK_INET6_SUPPORT - rtsolMK_NETCAT - ncMFC after: 3 daysSponsored by: Dell EMC Isilon
Conditionally compile certain programs into rescue(8) if requestedMK_CCD - ccdconfigMK_ROUTED - routed, rtqueryMFC after: 2 weeksSponsored by: Dell EMC Isilon
Add shutdown/poweroff support to rescue(8)shutdown is a safer way to power off than reboot (in general), because ofthe added shutdown process that it executes via /etc/rc.shutdown . It wasodd tha
Add shutdown/poweroff support to rescue(8)shutdown is a safer way to power off than reboot (in general), because ofthe added shutdown process that it executes via /etc/rc.shutdown . It wasodd that it was missing from rescue(8) since reboot and friends wereadded in past commits.While here, alias poweroff to shutdown for parity with sbin/shutdown/MakefileMFC after: 2 weeksSponsored by: Dell EMC Isilon
Remove pc98 support completely.I thank all developers and contributors for pc98.Relnotes: yes
DIRDEPS_BUILD: Update dependencies.MFC after: 2 weeksSponsored by: Dell EMC Isilon
DIRDEPS_BUILD: Build crunchide for the host.MFC after: 2 weeksSponsored by: EMC / Isilon Storage Division
DIRDEPS_BUILD: Fix and hookup rescue/rescue to the build.Sponsored by: EMC / Isilon Storage Division
Split /rescue into its own package.Sponsored by: The FreeBSD Foundation
Fix the build after ifconfig was converted over to lib80211 in r291470Reported by: jenkins, O. Hartmann <[email protected]>Pointyhat to: adrian
Add support to libkvm for reading vmcores from other architectures.- Add a kvaddr_type to represent kernel virtual addresses instead of unsigned long.- Add a struct kvm_nlist which is a stripped
Add support to libkvm for reading vmcores from other architectures.- Add a kvaddr_type to represent kernel virtual addresses instead of unsigned long.- Add a struct kvm_nlist which is a stripped down version of struct nlist that uses kvaddr_t for n_value.- Add a kvm_native() routine that returns true if an open kvm descriptor is for a native kernel and memory image.- Add a kvm_open2() function similar to kvm_openfiles(). It drops the unused 'swapfile' argument and adds a new function pointer argument for a symbol resolving function. Native kernels still use _fdnlist() from libc to resolve symbols if a resolver function is not supplied, but cross kernels require a resolver.- Add a kvm_nlist2() function similar to kvm_nlist() except that it uses struct kvm_nlist instead of struct nlist.- Add a kvm_read2() function similar to kvm_read() except that it uses kvaddr_t instead of unsigned long for the kernel virtual address.- Add a new kvm_arch switch of routines needed by a vmcore backend. Each backend is responsible for implementing kvm_read2() for a given vmcore format.- Use libelf to read headers from ELF kernels and cores (except for powerpc cores).- Add internal helper routines for the common page offset hash table used by the minidump backends.- Port all of the existing kvm backends to implement a kvm_arch switch and to be cross-friendly by using private constants instead of ones that vary by platform (e.g. PAGE_SIZE). Static assertions are present when a given backend is compiled natively to ensure the private constants match the real ones.- Enable all of the existing vmcore backends on all platforms. This means that libkvm on any platform should be able to perform KVA translation and read data from a vmcore of any platform.Tested on: amd64, i386, sparc64 (marius)Differential Revision: https://reviews.freebsd.org/D3341
123456