summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-05We need to set the bypass bit for "raw" DMA memory as well.Mark Kettenis
2020-07-05Count traps and interrupts. And count system calls in the same placeMark Kettenis
since this makes it easier to reason about the accounting.
2020-07-05Don't forget to schedule an AST in need_resched().Mark Kettenis
2020-07-05uvideo_querycap(): Set the 'device_caps' field of struct v4l2_capability ↵Landry Breuil
like done in utvfu(4) Fixes webcam detection in firefox 78, where code was added to check for V4L2_CAP_VIDEO_CAPTURE capability on 'device_caps', whereas we only set it in the 'capabilities' field. According to https://www.kernel.org/doc/html/v4.14/media/uapi/v4l/vidioc-querycap.html#description those distinct fields are here for drivers that provide several devices, but firefox decided to check for 'device_caps' field instead of 'capability' (cf https://hg.mozilla.org/integration/autoland/rev/33facf191f23) - so fill the field for compatibility reasons, while https://bugzilla.mozilla.org/show_bug.cgi?id=1650572 discusses with upstream what's the right way. ok mglocker@
2020-07-05Save FPU state to PCB before running a signal handler. This doesn'tMark Kettenis
completely fix the case where the FPU is used in a signal handler but it is part of the solution and makes sure the processor mode check in sys_sigreturn() passes if the process was using the FPU when the signal happened.
2020-07-05Make sure we return ENAMETOOLONG when copying a string into a buffer ofMark Kettenis
zero bytes.
2020-07-05We're self-hosted now.Mark Kettenis
2020-07-05fix maths error; from xordsparJason McIntyre
ok ratchov
2020-07-05Fix mbuf leak in urtwn(4) with frames that are CCMP-crypted in hardware.Stefan Sperling
Problem reported and fix tested by Bastian Wessling on bugs@ ok jmatthew@
2020-07-05match on "ti,am335-sdhci" used since linux 5.8-rc3Jonathan Gray
2020-07-04Don't build gdb on powerpc64.Mark Kettenis
2020-07-04Installer bits for powerpc64.Mark Kettenis
2020-07-04Bump the size of the ramdisk.Mark Kettenis
2020-07-04Use block device numbers instead of character device numbers.Mark Kettenis
2020-07-04Stop defining NOPIC on powerpc64.gkoehler
ok kettenis@ drahn@
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@