This project is mirrored from https://github.com/CTSRD-CHERI/cheribsd.
Pull mirroring updated .
- 18 Nov, 2021 4 commits
-
-
John Baldwin authored
.bss is not guaranteed to be a multiple of 2 pointers in size. If the .bss's size was not divisible by 2 pointers (32 bytes for the purecap kernel), then the start of the symbol table used by ddb was overwritten with zeroes causing DDB to think it had no valid symbols for the kernel. While we could store a single pointer in the loop perhaps, this isn't really a critical path and we still store a plain integer at a time on RISC-V as well in the purecap kernel.
-
John Baldwin authored
-
John Baldwin authored
-
John Baldwin authored
-
- 17 Nov, 2021 4 commits
-
-
John Baldwin authored
-
John Baldwin authored
struct radix_node_head and struct radix_mask_head both extend struct radix_head.
-
John Baldwin authored
Like other locking primitives, rmlock uses C-style inheritance from 'struct lock_object'. In addition, rmlocks contain a union of a mutex and sx lock along with a 'lock_object' base object. A pointer to this base object is passed to lock class methods that expect to access the containing sx or mtx lock from the union.
-
John Baldwin authored
-
- 16 Nov, 2021 32 commits
-
-
Justin Hibbits authored
Summary: Since PCPU can live in a GPR for a while longer, let it, rather than re-getting it in yet another register. MFSPR is an expensive operation, 12 clock latency on POWER9, so the fewer operations we need, the better. Since the check is tightly coupled to the fetch, by reducing the number of fetch+check, we reduce the stalls, and improve the performance marginally. Buildworld was measured at a ~5-7% improvement on a single run. Reviewed By: nwhitehorn Differential Revision: https://reviews.freebsd.org/D30003
-
Marcin Wojtas authored
It has to be zeroed before committing it to device. We do that by allocating it with M_ZERO, but there was no memory barrier or cache flush to ensure its sees it zeroed. This fixes MSIX on LS1028A SoC. Submitted by: Kornel Duleba <mindal@semihalf.com> Reviewed by: andrew Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30033
-
Eric van Gyzen authored
When sending an IPI, if a previous IPI is still pending delivery, native_lapic_ipi_vectored() waits for the previous IPI to be sent. We've seen a few inexplicable panics with the current timeout of 50 ms. Increase the timeout to 1 second and make it tunable. No hardware specification mentions a timeout in this case; I checked the Intel SDM, Intel MP spec, and Intel x2APIC spec. Linux and illumos wait forever. In Linux, see __default_send_IPI_shortcut() in arch/x86/kernel/apic/ipi.c. In illumos, see apic_send_ipi() in usr/src/uts/i86pc/io/pcplusmp/apic_common.c. However, misbehaving hardware could hang the system if we wait forever. Reviewed by: mav kib MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D29942
-
Eric van Gyzen authored
When VECTX is enabled as a kernel option and non-EFI loaders are built, many reads will fail due to the mis-match of whether LOADER_VERIEXEC_VECTX or not in readin.h. Source that includes bootstrap.h must ensure the kernel option agrees with the compile time CFLAGS in the various make related files. Submitted by: bret_ketchum@dell.com (original revision) Reviewed by: sjg, bdrewery, dab, bret_ketchum@dell.com MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D29993
-
Konstantin Belousov authored
Its use is for cases where some filler is needed for cmd, or we need an indication that there were no cmd supplied, and so on. Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29935
-
Konstantin Belousov authored
Sponsored by: The FreeBSD Foundation MFC after: 3 days
-
Konstantin Belousov authored
Filter on fifos is real filter for the object, and not a filesystem events filter like EVFILT_VNODE. Reported by: markj using syzkaller Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 3 days
-
Konstantin Belousov authored
A testing on the real hardware uncovered an issue, and since I do not have access to the machine, disable until the bug can be fixed. Reported by: "Pieper, Jeffrey E" <jeffrey.e.pieper@intel.com> Sponsored by: The FreeBSD Foundation MFC after: 3 days
-
Konstantin Belousov authored
When setting up trampoline mapping for LA57 switcher, it is possible that TLB still has some random mapping at that address. Sponsored by: The FreeBSD Foundation MFC after: 1 week
-
Oskar Holmlund authored
Step 7.1.5 in committers guide. Reviewed by: manu Approved by: manu (mentor) Differential Revision: https://reviews.freebsd.org/D29890
-
Michael Tuexen authored
This is needed in case of responding with an ABORT to an INIT-ACK.
-
Marcin Wojtas authored
Drivers can specify padding of received frames with iri_pad field. This can be used to enforce ip alignment by hardware. Iflib ignored that padding when processing small frames, which rendered this feature inoperable. I found it while writing a driver for a NIC that can ip align received packets. Note that this doesn't change behavior of existing drivers as they all set iri_pad to 0. Submitted by: Kornel Duleba <mindal@semihalf.com> Reviewed by: gallatin Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30009
-
Michael Tuexen authored
Ignore spp_pathmtu if it is 0, when setting the IPPROTO_SCTP level socket option SCTP_PEER_ADDR_PARAMS as required by RFC 6458. MFC after: 1 week
-
Kristof Provost authored
There's a problem with pf's reassembly code where it produces incorrect checksums when reassembling across interfaces with different MTUs. Test this. PR: 255432 Reviewed by: donner MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30013
-
Kristof Provost authored
If we reassemble a packet we modify the IP header (to set the length and remove the fragment offset information), but we failed to update the checksum. On certain setups (mostly where we did not re-fragment again afterwards) this could lead to us sending out packets with incorrect checksums. PR: 255432 MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30026
-
Michael Tuexen authored
-
Michael Tuexen authored
Just skip the chunk, if no other handling is required by the specification.
-
Mark Johnston authored
- Mention GENERIC-KASAN. - Note that the runtime was ported from NetBSD. Sponsored by: The FreeBSD Foundation
-
Mark Johnston authored
No functional change intended. Sponsored by: The FreeBSD Foundation
-
Yinlong Lu authored
The original implementation only supports getting the address from legacy BIOS (by searching for the SMBIOS_SIG pattern in a fixed address space). Try to get the SMBIOS table from EFI through efirt (EFI Runtime Services) firstly. Continue to search in the legacy BIOS if a NULL address is returned from EFI. By this way the ipmi function supports both legacy BIOS and UEFI systems. Reviewed by: dab, vangyzen MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D30007
-
Cy Schubert authored
r358821 (13f7dbe8) retired amd(8). This commit cleans up an artifact left in src.libnames.mk. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D29914
-
Kristof Provost authored
PV -> PF MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate")
-
Mitchell Horne authored
We do not currently generate armv7 distribution sets, because we don't build any installer images. However, having such sets available can be useful for quickly installing a base system, particularly in the case of creating an armv7 poudriere jail on arm64. Add a configuration file for the generation of these distribution sets. Reviewed by: manu, imp, gjb MFC after: 3 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D29923
-
Michael Gmelin authored
From a workdir perspective this should be a no-op. See also: https://lists.freebsd.org/pipermail/freebsd-current/2021-April/079569.html
-
Baptiste Daroussin authored
-
Baptiste Daroussin authored
open_memstream(3) is a standard way to obtain the same feature we do get by using sbuf(9) (aka dynamic size buffer), switching to using it makes pkg(7) more portable, and reduces its number of dependencies. Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D30005
-
Baptiste Daroussin authored
Non functional changes
-
Navdeep Parhar authored
There is no need to panic in if_transmit if the checksums requested are inconsistent with the frame being transmitted. This typically indicates that the kernel and driver were built with different INET/INET6 options, or there is some other kernel bug. The driver should just throw away the requests that it doesn't understand and move on. MFC after: 1 week Sponsored by: Chelsio Communications
-
Alexander V. Chernikov authored
MFC after: 3 days
-
Mateusz Guzik authored
This is already properly handled thanks to 2 step hash replacement.
-
Li-Wen Hsu authored
Reported by: 0mp Fixes: 8ef03ce6 MFC after: 1 day
-
Kevin Bowling authored
This is just clerical work to ease bug triage and may be used to set expectations around the ability for anyone in the community to perform testing and development on older parts. Approved by: erj MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D29876
-