summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-20Reset the `pending I$ flushes' flag in tfp_InvalidateICache() if invalidatingMiod Vallat
the whole I$.
2015-09-20Add a set of flags to rmt(8) to make it run in a restricted mode,Alexander Hall
designed to work with rdump(8) to remote disk. -d <directory> confines rmt to operate within a single directory. -r enforces read-only mode. -w enforces write-only mode. This is quite usable with public ssh key setup, e.g. having the following in .ssh/authorized/keys: command="/etc/rmt -rd /backups/machine.example.conf",no-agent-forwarding,... ssh-rsa AAAAB3... ok semarie@
2015-09-20syncMiod Vallat
2015-09-20need to keep bpf in the tx path. got a bit ahead of myself there...David Gwynne
noticed by brad
2015-09-19trivial "if(x) free(x)" replacement by "free(x)"Sebastien Marie
ok miod@
2015-09-19kbind has eliminated the need for and use of the bind lock. Delete it, thePhilip Guenther
the callback, and the sigprocmask stub. Keep around the DL_SETBINDLCK case until libpthread stops using it. discussed with miod@ at l2k15 ok kettenis@
2015-09-19In the internal conversion of _TM_* to TAME_*, some bits were lost forSebastien Marie
"dns" and "cmsg" in the `tamereq' array. Restore the previous behaviour. ok guenther@
2015-09-19We don't need to calculate the load offset. This also means we don't needMark Kettenis
to calculate the GOT address anymore. ok guenther@ (who spotted the latter bit)
2015-09-19Remove PROT_EXEC bit from GOT_PERMS. ld.so doesn't need it anymore, andMark Kettenis
rcrt0.o will add it for BSS-PLT binaries if necessary. ok guenther@
2015-09-19Make sure we set PROT_EXEC on the GOT for BSS-PLT binaries on powerpc.Mark Kettenis
ok guenther@
2015-09-19Make bootstrapping code compatible with the Secure-PLT ABI.Mark Kettenis
ok guenther@
2015-09-19Use correct function name in error messageClaudio Jeker
2015-09-19Avoid using a mutex in the rx completion path. Instead rely onMark Kettenis
intr_barrier(9) to avoid having the interrupt handler touch the rx data structures while we're brining down the interface. This actually reverts many of the changes in rev. 1.300. ok mikeb@
2015-09-19Create the filesystem image with the same size as its `c' slice from disktab.Miod Vallat
2015-09-19Add the kernel in its various setup stages (bsd, bsd.gz, bsd.strip...) toMiod Vallat
CLEANFILES and make sure the `clean' target actually removes CLEANFILES.
2015-09-19Remove bogus .PATH statement.Miod Vallat
2015-09-19No need for wsmux on these installation media, which lack USB support.Miod Vallat
2015-09-19Document that rtfree(9) accepts NULL.Martin Pieuchot
From Michael McConville via jmc@
2015-09-19Don't wrap initialized variables: binutils appears to be mishandling themPhilip Guenther
on arm and m88k problems with optind observed by jsg@
2015-09-19doas doesn't need any files to be passed in. closefrom STDERR+1. ok bennoTed Unangst
2015-09-19intr_barrier(9) for armJonathan Gray
ok kettenis@
2015-09-18Go back to the previous approach when managing individual HPC DMA descriptors:Miod Vallat
provide again an optional storage for a copy of the descriptor in the `sync' (fetch) function, and use the returned address afterwards. On IP22 systems (in the broader sense of the term, thus IP20/IP22/IP24), descriptors will remain in uncached memory and no local copies need to be made. On IP28 systems, descriptors will remain in cached memory (so as to avoid switching to `slow mode'), but a local copy will be performed with the necessary cache eviction work, so that speculative code execution on R10000 will not touch the real descriptor. With this in place, all the explicit descriptor cache operations in if_sq, some of them being redundant or operating on the wrong number of descriptors, can be removed, with the HPC DMA wrappers taking care of doing the right thing. Tested on IP22 and IP28. IP26 still unhappy but no worse than before.
2015-09-18Remove stray splx(9) call. Found by Maxime Villard's Brainy Code Scanner.Mark Kettenis
From miod@.
2015-09-18In case of a hard error, remove all checksums except for examplessum whichAntoine Jacoutot
is special. Otherwise, we may miss comparing files at next run; we may miss some automation on the next run but it's safer this way.
2015-09-18tweak previous;Jason McIntyre
2015-09-18Simplify: we don't need a work directory anymore, temproot is enough.Antoine Jacoutot
2015-09-18Tweak warning/error output a bit.Antoine Jacoutot
Check for examples changes at the end.
2015-09-18Do not manually decrement rt's refcounter in nd6_lookup() and let theMartin Pieuchot
callers rtfree(9) it. Inputs and ok bluhm@
2015-09-18Remove orphaned files.Miod Vallat
2015-09-18Use the local unixdev.h file rather than the outdated libsa one.Miod Vallat
2015-09-18Remove support for building the boot blocks with DEBUGFLAGS=-D_TEST, which isMiod Vallat
supposed to create a userland binary in order to test non-boot related functionality. This feature has been bitrotting in a non-compiling state for years, and causes a too-many-ifdefs disease now that there are intrusive EFI changes. No functional change.
2015-09-18avoid void * pointer arithmeticBrent Cook
ok miod@
2015-09-18Drop the workarounds allowing SMALL_KERNEL (i.e. installation media) to beMiod Vallat
booted from old (< 2.10) bootblocks.
2015-09-18Remove unused variables, from Michael McConville.Martin Pieuchot
ok stsp@
2015-09-18Fix an uninitialized variable found by Maxime Villard's Brainy.Visa Hankala
While here, fix the size parameter of bus_dmamem_unmap() in iec_alloc_physical(). ok miod@
2015-09-18More dead code.Antoine Jacoutot
2015-09-18-l should apply to the new not the old pane with -b, from "MadMaverick9"Nicholas Marriott
on GitHub.
2015-09-18More ifmedia64 fallout.Miod Vallat
2015-09-18syncMiod Vallat
2015-09-18Revert bn_print.c:r1.25 ("handle negative-zero in BN_bn2dec() too") forStuart Henderson
now, it has a NULL deref. Segfault reported by Mikolaj Kucharski, ok bcook
2015-09-18remove check for LD_BIND_NOW as kbind(2) is available on almost (all ?) archSebastien Marie
where LD_BIND_NOW was in use.
2015-09-18implement SRPL_INSERT_AFTER_LOCKED.David Gwynne
i thought id committed this at l2k15. sorry for the delay.
2015-09-18Move s_signgam.c to PURE_SRCS, so that it also gets built on vax.Miod Vallat
2015-09-18Last of the (thing *)0 -> NULL, from Michael McConville. No binaryNicholas Marriott
change.
2015-09-18make vmx(4) interrupts mpsafe.David Gwynne
the vmx rx path is only touched in the interrupt handler, so it is already guaranteed to be accessed by only one cpu at a time. the tx path has been massaged so the the producer is only touched by the start routine, and the consumer is only touched by the interrupt path, and can therefore be run concurrently. the only interlock is a count of the free descriptors. if txintr clears IFF_OACTIVE, it takes the kernel lock before running the start routine. other interrupts, eg, link state handling, take the kernel lock.
2015-09-17More (foo *)0 -> NULL, from Michael McConville. No binary change.Nicholas Marriott
2015-09-17Back out rev. 1.125. This bit was left behind (intentionally?) when theMark Kettenis
remainder of that commit was backed out. However,clearing the PQ_AOBJ bit here is definitely wrong. Our pagedaemon uses two separate lists to keep track of inactive pages. It uses PQ_SWAPBACKED, which really is both PQ_ANON and PQ_AOBJ to keep track of which inactive queue a page is sitting on. So if you twiddle PQ_AOBJ (or PQ_ANON) for an inactive page, a subsequent uvm_pagefree(9) will remove the page from the wrong queue! This usually goes unnoticed, but if the page happens to be the last one on the queue, the queues get corrupted. The damage quickly spreads to the free page queues and almost certainly results in the uvm_pmr_size_RB_REMOVE_COLOR() faults that people have seen sporadically since the spring of this year. ok visa@, beck@, krw@, guenther@
2015-09-17Do not define QLW_DEBUG if SMALL_KERNEL, and turn qlw_dump_iocb() andMiod Vallat
qlw_dump_iocb_segs() into empty macros if QLW_DEBUG is not defined (if only to make this compile, then).
2015-09-17Remove more EVP_sha() SHA-0 references.Brent Cook
2015-09-17Remove unnecessary casts, from Michael McConville. No binary change.Nicholas Marriott