summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-04Nestle all sc_link initialization near config_found() invocation.Kenneth R Westerback
2020-07-04Our old ksh(1) bug where eval()uating a || compound list would terminate theAntoine Jacoutot
shell has been fixed by benno@; remove workaround. ok naddy@
2020-07-04Fill in nam2blk array.Mark Kettenis
2020-07-04Nestle all sc_c.sc_link initialization near config_found() invocation.Kenneth R Westerback
2020-07-04Set dsisr member of the trapframe struct to a defined value before fallingMark Kettenis
through into the data storage interrupt when handing a data segment interrupt.
2020-07-04kill-window -a cannot just walk the list of windows because ifNicholas Marriott
renumber-windows is on, the window it wants to keep could be moved. Change to renumber afterwards and also behave better if the window is linked into the session twice. GitHub issue 2287.
2020-07-04Small XXX.Antoine Jacoutot
2020-07-04OF_finddevice() returns -1 upon failure. Fix various checks of the returnMark Kettenis
value. Makes things work again on the rpi3. ok jsg@
2020-07-04Avoid malloc(3) calls in signal handlerkn
Fetch aborts through SIGINT (^C) print a message with fputs(3), but this calls malloc() on its own, which is not supported from interrupt handler context. Fix it by using write(2) which avoids further memory allocations. While here, merge abortfile() into the identical aborthttp() with a more generic "fetch aborted." message for simplicity. Spotted with vm.malloc_conf=SU and ^C on a port's "make fetch" causing ftp(49660) in malloc(): recursive call Abort trap (core dumped) OK jca (who came up with using write(2) independently)
2020-07-04Fix intermittent failing device initialization seen on some SynapticsMarcus Glocker
devices which has been re-introduced by pms.c revision 1.92. ok tb@
2020-07-04Do the same as libc, store "-1" in the return value when a syscall failed.Martin Pieuchot
Simplify the logic by always exporting the return value and errno in the syscall profiler.
2020-07-04Fix a double free in error pathsJeremie Courreges-Anglas
Consistently disarm the SIGINT handler on error, else a SIGINT can lead to taking twice the cleanup path. Initial report by naddy@, ok tb@
2020-07-04Print the correct register for syscall return value.Martin Pieuchot
While here make it possible to store syscall return values in maps.
2020-07-04Add a missing circular_init() call in the TLS ordering test.Joel Sing
This makes the regress work correctly again - this was previously masked by the fact that tls_close() (and hence SSL_shutdown()) was draining the circular buffer, whereas now we're leaving data behind from a previous test, resulting in the ordering test failing.
2020-07-04Remove no-op cn30xxgmx_reset_board().Visa Hankala
2020-07-04Use klist_invalidate() in knote_processexit()Visa Hankala
This leaves knote_remove() for kqueue's internal use. As a result, knote_remove() is used to drop knotes from the knlist of a single kqueue instance. klist_invalidate() clears knotes from a klist that can contain entries from different kqueue instances. Use FILTEROP_ISFD to control how klist_invalidate() treats knotes, to preserve the current behaviour of knote_processexit(). All the existing callers of klist_invalidate() are fd-based. The existing code rewires and activates knotes to give userspace a clear indication that the state of the fd has changed. In knote_processexit(), any remaining knotes in ps_klist are non-fd-based (EVFILT_SIGNAL). Those are dropped without notifying userspace. OK mpi@
2020-07-04It's been agreed upon that global locks should be expressed usinganton
capital letters in locking annotations. Therefore harmonize the existing annotations. Also, if multiple locks are required they should be delimited using commas. ok mpi@
2020-07-04Permit the stack to check transport and network checksums. Although the linkRichard Procter
provides stronger integrity checks, it needn't cover the end-to-end transport path. And it is in any case a layer violation for one layer to disable the checks of another. Skipping the network check saved ~2.4% +/- ~0.2% of cp_time (sys+intr) on the forwarding path of a 1Ghz AMD G-T40N (apu1). Other checksum speedups exist which do not skip the check. ok claudio@ kn@ stsp@
2020-07-03Increment line number when skipping multi-line comments.Martin Pieuchot
2020-07-03Use an LFENCE instruction everywhere where we use RDTSC when we areMark Kettenis
doing some sort of time measurement. This is necessary since RDTSC is not a serializing instruction. We can use LFENCE as the serializing instruction instead of CPUID since all amd64 machines have SSE. This considerably reduces the jitter in TSC skew measurements. ok deraadt@, cheloha@, phessler@
2020-07-03Rename IN6_IFF_PRIVACY to IN6_IFF_TEMPORARY.Florian Obser
This is the name the other BSDs use for this, there is no reason to be different, the IPv6 RFCs call these addresses temporary, and some software in ports wants to use this as well. Most recently pointed out for firefox by landry. OK claudio, sthen
2020-07-03We need a RAMDISK kernel config as well of course.Mark Kettenis
2020-07-03Pass the expected 'scsibus_attach_args *' to scsibus_attach() viaKenneth R Westerback
config_found(), not a 'scsi_link *'. Part of matthew@'s 2010 work.
2020-07-03More powerpc64 sets.Mark Kettenis
2020-07-03Sets for powerpc64.Mark Kettenis
2020-07-03update setproctitle after re-exec; ok djmMarkus Friedl
2020-07-03keep ignoring HUP after fork+exec; ok djmMarkus Friedl
2020-07-03don't exit the listener on send_rexec_state errors; ok djmMarkus Friedl
2020-07-03put back the mux_ctx memleak fix, but only for channels of typeDamien Miller
SSH_CHANNEL_MUX_LISTENER; Specifically SSH_CHANNEL_MUX_PROXY channels should not have this structure freed.
2020-07-03revert r1.399 - the lifetime of c->mux_ctx is more complex; simply freeingDamien Miller
it here causes other problems
2020-07-03zap trailing whitespace on one lineTheo Buehler
2020-07-03Missing word, from annihilannic at hotmail dot com, GitHub issue 2288.Nicholas Marriott
2020-07-03avoid tilde_expand_filename() in expanding ~/.ssh/rc - if sshd isDamien Miller
in chroot mode, the likely absence of a password database will cause tilde_expand_filename() to fatal; ok dtucker@
2020-07-03Check if client is NULL before using it, GitHub issue 2295.Nicholas Marriott
2020-07-03when redirecting sshd's log output to a file, undo this redirectionDamien Miller
after the session child process is forked(); ok dtucker@
2020-07-03start ClientAliveInterval bookkeeping before first pass throughDamien Miller
select() loop; fixed theoretical case where busy sshd may ignore timeouts from client; inspired by and ok dtucker
2020-07-03Only reset the serveralive check when we receive traffic from the serverDarren Tucker
and ignore traffic from a port forwarding client, preventing a client from keeping a connection alive when it should be terminated. Based on a patch from jxraynor at gmail.com via openssh-unix-dev and bz#2265, ok djm@
2020-07-03fix memory leak of mux_ctx; patch from Sergiy Lozovsky via bz3189Damien Miller
ok dtucker
2020-07-03tlsexttest: pass message type to the extension functionsTheo Buehler
ok beck jsing
2020-07-03Make the message type available to the extension functionsTheo Buehler
Some TLS extensions need to be treated differently depending on the handshake message they appear in. Over time, various workarounds and hacks were used to deal with the unavailability of the message type in these functions, but this is getting fragile and unwieldy. Having the message type available will enable us to clean this code up and will allow simple fixes for a number of bugs in our handling of the status_request extension reported by Michael Forney. This approach was suggested a while ago by jsing. ok beck jsing
2020-07-03adjust alpn extension test to new argument orderTheo Buehler
2020-07-03adjust tlsexttest to new argument orderTheo Buehler
2020-07-03Improve argument order for the internal tlsext APITheo Buehler
Move is_server and msg_type right after the SSL object so that CBS and CBB and alert come last. This brings these functions more in line with other internal functions and separates state from data. requested by jsing
2020-07-02timecounting: make the dummy counter interrupt- and MP-safecheloha
The dummy counter should be deterministic with respect to interrupts and multiple threads of execution.
2020-07-02Add RAMDISK config for powerpc64.Mark Kettenis
2020-07-02Shuffle things around so that sc->sc_link initialization isKenneth R Westerback
even more concentrated just before config_found().
2020-07-02Make the copyin(9) functions work when crossing a segment boundary.Mark Kettenis
2020-07-02For now an empty file is good enough to get libkvm to build on powerpc64.Mark Kettenis
2020-07-02Update awk to July 2, 2020 version.Todd C. Miller
2020-07-02Use IPL_TTY, at least for now, as the only consumer of OPAL interruptsMark Kettenis
is opalcons(4).