IABSD.fr/src

Branch :


Log

Author Commit Date CI Message
f803c2f9 2020-08-18 16:30:38 Try to avoid a theoretical infinite loop while detaching all the scsi_link's on the bus. Use SLIST_FOREACH_SAFE() rather than 'while (!SLIST_EMPTY())'' as there is a condition which would cause scsi_detach_link() to return without removing the scsi_link from the SLIST.
b85522ab 2020-08-18 13:41:49 Fix kn_data returned by filt_logread(). Take into account the circular nature of the message buffer when computing the number of available bytes. Move the computation into a separate function and use it with the kevent(2) and ioctl(2) interfaces. OK mpi@
f0e956f0 2020-08-18 13:38:24 Remove an unnecessary field from struct msgbuf. OK mvs@
7c72bba2 2020-08-18 05:21:21 Convert tcp_sysctl to sysctl_bounded_args This introduces bounds checks for many net.inet.tcp sysctl variables. Folded some fitting cases into the framework: tcp_do_sack, tcp_do_ecn. ok derradt@
baf5b8dd 2020-08-18 04:48:11 Add sysctl_bounded_arr as a replacement for sysctl_int_arr Design by deraadt@ ok deraadt@
31f14a25 2020-08-17 22:14:51 Remove unnecessary BM cookie defines.
b137aaec 2020-08-17 22:03:32 Rename gmac interrupt register defines to stay consistent with other gmac register defines.
1adf4f54 2020-08-17 21:54:39 Add enum for L2 cast like for L3.
13d9cc68 2020-08-17 21:32:44 Some register define renaming.
f247ea09 2020-08-17 21:12:06 Remove an unnecessary define.
4d0a0269 2020-08-17 21:02:37 Even more whitespace and header changes.
017da651 2020-08-17 19:08:23 More whitespace and enum cleanup.
5fcfc6ff 2020-08-17 18:41:23 -F requires at least 5 columns for folding, while a tab at start of line is 8 columns. This causes an infinite loop in the folding logic. Fix this by implementing an escape hatch so that only a single fold can occur. This does mean that a tab with a -F smaller or equal to 8 will always print the newline escape backslash in the 8th column. Bug reported by phillbush <at> cock <dot> li Minor tweak and OK deraadt@
a8dc0ba1 2020-08-17 18:12:12 honor /etc/nologin by unveiled it ok deraadt@
f554cecb 2020-08-17 17:23:59 base clang is now i586. SMALL_KERNEL images have historically forced i486 (for space-saving reasons), but we don't currently need this in bsd.rd so let's try without to see if it improves things in any way (at least until the next have a space-saving crisis)
3d73cff4 2020-08-17 16:55:41 Switch to a per-proc SLB cache. Seems to make GENERIC.MP kernels (much more) stable. Probably because we could restore an incoherent SLB cache since there was no locking in the trap return path.
f6518d37 2020-08-17 16:49:28 Fix possible leak of ocsp_id. ok patrick@
e0960442 2020-08-17 16:25:34 Simplify igmp_sysctl to directly return error in default case This replaces a piece of observationally identical code which was much more complicated. ok mpi@
ad54c436 2020-08-17 16:25:05 Plenty of whitespace fixups.
d35e2a8f 2020-08-17 16:17:39 Fix append mode so it always writes to the end and expand regress. OK deraadt@ martijn@
3e4157fe 2020-08-17 15:48:28 Previous commit broke two things: 1) Bulkget broke because mps_getbulkreq doesn't exactly do what it says on the tin, so use it how it works for now. 2) A break statement got left behind resulting in only a single varbind being answered. Reported and tested by sthen@
09e96d4e 2020-08-17 08:19:20 Also print a list of missing scripts in summary
55fe8593 2020-08-17 08:12:17 Enable PAN (Privileged Access Never) on CPUs that support it. This means that user-space access from the kernel is not allowed for "normal" load/store instructions. Only the special "unprivileged" load/store instructions are allowed. We already use those in copyin(9) and copyout(9). ok patrick@, drahn@, jsg@
f7f933db 2020-08-17 08:09:03 Panic on an attempt to access user-space unless it is done using an "unpriviliged" load/store instruction. This makes sure we catch PAN violations and might even catch some incorrect user-space access cases on systems without PAN. ok drahn@, jsg@
5bec7355 2020-08-17 08:01:53 Avoid test failures due to outdated packages Indicate missing test scripts prominently in the result but do not count them as an error.
48b06ebf 2020-08-17 07:09:25 add geneve option printing. mostly modelled on the nsh md2 printing.
db002f7a 2020-08-17 06:32:31 don't need to shift the vxlan vni twice.
b8b4c287 2020-08-17 06:29:29 add initial support for handling geneve packets. it's like vxlan, but different. the most interesting difference to vxlan is that the protocol adds support for adding optional metadata to packets (like nsh). this diff currently just skips that stuff and just handles the payload. for now.
478746b0 2020-08-17 04:26:57 Fix typo in comment From Paul de Weerd
ccbc029a 2020-08-16 16:08:10 Remove sc_maxgpe from acpi_softc which was never read from Remove a dead conditional from acpi_init_gpes while there. ok jcs@
8776765e 2020-08-16 14:52:36 Reflect recent wsfontload(8) changes in the man page. We are now getting the default values for font height and width using the WSDISPLAYIO_GETSCREENTYPE ioctl, so they always match the currently loaded font metrics.
51e951d2 2020-08-16 14:09:54 Properly implement setting of the signal voltage.
ecb1c2be 2020-08-16 13:39:21 Don't include scsi_debug.h via scsiconf.h. Nobody but scsi/* should be using the contents thereof. Compile tests by martjn@ (alpha), visa@ (sgi) jmatthew@ (sparc64) aoyama@ (luna88k)
58afaaa2 2020-08-16 09:09:16 Clean up unused parameters.
66dcdfe8 2020-08-15 17:50:45 The last SET()s of CDF_WAITING, SDF_WAITING, and ST_WAITING died in the great XS_NO_CCB purge of 2017. Nuke pointless ISSET()/CLR() checks and the #define's.
2d88ab10 2020-08-15 16:17:55 enable jsing's zero content type test
71795fee 2020-08-15 13:21:02 Print ddr52 and hs200 indicators if those modes are supported. ok stsp@
9ebe96b0 2020-08-15 11:31:17 Remove dead assignments.
cc37c486 2020-08-15 11:12:28 Remove unused headers
b9271645 2020-08-15 10:44:48 Inline handling of receive checksum offload
53d22e8f 2020-08-14 21:13:15 Clean up unused variables.
3abf65ea 2020-08-14 18:57:06 Remove local change to fix powerpc floating-point alignment LLVM 10 includes a different fix (https://reviews.llvm.org/D71954), so this change (by kettenis on 2019-02-18) is no longer needed. Thanks to Brad Smith for providing the removal diff. ok kettenis@
cbe056bc 2020-08-14 18:14:11 Re-commit Exar XR17V35x serial port support previously backed out: The Exar XR17V354 has 4 ports that have a 256-byte FIFO, use a frequency of 125Mhz, and have a unique sleep register. A custom interrupt handler is setup in puc for these ports so it can check a register which reports which ports triggered the interrupt, rather than having to run comintr for every port every time. To avoid probing for these ports in com_attach_subr which requires access to registers that may be reserved on certain platforms, pass the sc_uarttype from com_puc_attach since the port type is already known based on the puc device vendor/id. Input from kettenis, tested in snaps
b1b24323 2020-08-14 17:44:53 '!' does not need to be escaped; confirmed by naddy and deraadt
505714c5 2020-08-14 16:55:07 Update compiler-rt path in cross-build infrastructure.
dacd911a 2020-08-14 16:51:09 Remove "for all XXX platforms" from comment. Fixes the issue pointed out by miod@ where the powerpc64 claimed to be "for all AArch64 platforms". ok patrick@
58fa39c1 2020-08-14 16:45:48 Redistribute and tweak the scsi_[attach|probe|detach]_[bus|target|lun]() code to make the three variants more similar and easier to understand. Ensures consistent error checks and eliminates pointless adapter_buswidth checks when processing the list of scsi_links.
4f668bc2 2020-08-14 16:20:42 Delete unused variable 'policy'.
e6c3c55e 2020-08-14 16:16:05 Print local 'sa' variable instead of 'msg->msg_sa'.
230e3ce1 2020-08-14 16:09:32 Delete unused variable 'idtype'.
9289a82c 2020-08-14 16:06:59 Delete unused variable 'certid'.
a7a39a0d 2020-08-14 15:15:27 Implement tuning and enable HS200 mode. On my ODROID-N2 I see very poor performance at 200 MHz, so restrict the maximum frequency to 150 MHz for now. This also makes the eMMC on the ODROID-C4 work properly.
a62fc20a 2020-08-14 14:49:04 Add support for eMMC HS200 mode. Loosely based on code from NetBSD. ok patrick@
a6dd968c 2020-08-14 14:30:06 Don't build double-double functions since long double is the same as double on OpenBSD. ok gkoehler@
f42c52cc 2020-08-14 12:17:34 Zap LOOPALIVECNT Unused since r1.138 from 2015: "remove cisco hdlc code from sppp(4)". OK mpi
840bb523 2020-08-14 12:14:06 Fix typo. Spotted by miod@
72e469b9 2020-08-14 12:13:01 Initialize local variable that was supposed to hold the value of curcpu(). Spotted by miod@
ac593df8 2020-08-14 12:00:33 Fix handling of "w+" mode, we were only truncating for "w". OK martijn@ mpi@
2fa3abdd 2020-08-14 11:51:07 When detaching common remote coverage, do not clear any fields. Instead, let kr_free() do the work. Otherwise a thread currently inside a remote section could end up not decrementing the number of ongoing sections while exiting the same remote section. Reported-by: syzbot+1252e696865efc29b767@syzkaller.appspotmail.com
85c3111f 2020-08-14 11:05:38 Set `IFXF_MPSAFE' bit to pppx(4) related `ifnet'. This moves pppx(4) packets output out of KERNEL_LOCK. pppx(4) and pipex(4) are ready to this. ok yasuoka@ mpi@
6946103d 2020-08-13 21:36:38 Properly set flow_saproto for aquire. ok patrick@
a09091e5 2020-08-13 12:37:16 new kstat(1) manual page, using info from dlg@, from his commit messages, and from partial code inspection; OK dlg@
fe6a1b26 2020-08-13 12:11:15 Give SCSIBUS_B probing a chance to work with better logic in SCSI_IS_SCSIBUS_B(). i.e. return true when 'A' is finished probing (sc_child != NULL) and the sc_link->bus is != sc_child.
199e5b12 2020-08-13 11:35:21 Be compatible with bpftrace(8)'s output when printing stack traces in maps. This allows us to use `stackcollapse-bpftrace.pl' from Brendan Gregg's FrameGraph without pre-processing outputs.
76f89280 2020-08-13 11:31:47 When dealing with integers, it seems that [1] and [1, 2) are the same.
12999ef2 2020-08-13 11:29:39 Improve documentation.
915014bf 2020-08-13 11:28:31 Always set `dtpr_size' to the total size required to hold all probe entries.
cb4828c5 2020-08-13 11:26:39 Document ioctl interface.
471fe7ef 2020-08-13 10:37:27 qlw_xs_bus() must return 0 while bus 0 is being probed. Found the hard way by martijn@ on his alpha.
0a23da6d 2020-08-13 10:04:37 Add __multi3 from compiler_rt-8.x Needed to build a sparc64 kernel with clang 10. ok kettenis@
49f00df6 2020-08-13 10:02:46 Move compiler_rt type definitions to a separate header so that we can reuse them in other compiler_rt routines. ok kettenis@
4c63d617 2020-08-13 04:58:22 Add a ROUTE_FLAGFILTER socket option for routing sockets, allowing filtering out messages for routes with flags matching any bit in a mask. This allows routing daemons to opt out of receiving messages for L2 and broadcast route entries, which they currently discard. ok dlg@ sthen@ deraadt@
08999238 2020-08-13 04:26:11 Use rtm_miss() rather than the simpler rtm_send() to send route delete messages, and save the route flags before deleting the route. For L2 route entries, the RTF_LLINFO flag is cleared during deletion, so saving the flags beforehand means they're correct in the routing socket message. ok mpi@
97119481 2020-08-13 01:00:03 select.2: Xr directly to timersub(3) now that it has a dedicated manpage Reported by Fabian Raetz <fabian.raetz@gmail.com>.
4a423ed4 2020-08-12 20:37:30 style(9).
8d5e87ec 2020-08-12 15:31:27 getitimer(2): delay TIMESPEC_TO_TIMEVAL(9) conversion until copyout(9) setitimer(2) works with timespecs in its critical section. It will be easier to merge the two critical sections if getitimer(2) also works with timespecs. In particular, we currently read the uptime clock *twice* during a setitimer(2) swap: we call getmicrouptime(9) in sys_getitimer() and then call getnanouptime(9) in sys_setitimer(). This means that swapping one timer in for another is not atomic with respect to the uptime clock. It also means the two operations are working with different time structures and resolutions, which is potentially confusing. If both critical sections work with timespecs we can combine the two getnanouptime(9) calls into a single call at the start of the combined critical section in a future patch, making the swap atomic with respect to the clock. So, in preparation, move the TIMESPEC_TO_TIMEVAL conversions in getitimer(2) after the ITIMER_REAL conversion from absolute to relative time, just before copyout(9). The ITIMER_REAL conversion must then be done with timespec macros and getnanouptime(9), just like in setitimer(2).
7da17545 2020-08-12 14:41:09 setitimer(2): ITIMER_REAL: don't call timeout_del(9) before timeout_add(9) If we're replacing the current ITIMER_REAL timer with a new one we don't need to call timeout_del(9) before calling timeout_add(9). timeout_add(9) does the work of timeout_del(9) implicitly if the timeout in question is already pending. This saves us an extra trip through the timeout_mutex.
22f7ba00 2020-08-12 13:49:24 Reduce stack usage of kqueue_scan() Reuse the kev[] array of sys_kevent() in kqueue_scan() to lower stack usage. The code has reset kevp, but not nkev, whenever the retry branch is taken. However, the resetting is unnecessary because retry should be taken only if no events have been collected. Make this clearer by adding KASSERTs. OK mpi@
25b35665 2020-08-12 08:41:39 Remove interface statistics update for outgoing packets. We shouldn't count them because `if_snd' does this. ok yasuoka@
a6df88a7 2020-08-12 04:58:49 skip trying to read disabled bios on RV610 Reading the disabled bios on two Dell machines with RV610 passes initial checks but later fails atombios specific checks. This occurs when running amd64 but not i386. Returning early when reading the disabled bios will result in calling radeon_read_platform_bios() and using the bios at 0xc0000 which works for both systems this was reported for semarie@ on Dell OptiPlex 755 RV610 0x1002:0x94C3 0x1028:0x0402 0x00 Andy Bradford on Dell DXP051 RV610 0x1002:0x94C1 0x1028:0x0D02 0x00
a58cb6b3 2020-08-12 03:48:22 drm/drm_fb_helper: fix fbdev with sparc64 From Sam Ravnborg cea0a7943a30a6d0320c8558a844dd27e8f0aa8b in linux 5.7.y/5.7.15 2a1658bf922ffd9b7907e270a7d9cdc9643fc45d in mainline linux
dcf22d41 2020-08-12 01:23:45 ssh-keyscan(1): simplify conloop() with timercmp(3), timersub(3); ok djm@
6dab8d36 2020-08-11 23:40:54 Run start routing without KERNEL_LOCK() pfsyncstart() does not require the big lock, make it use the ifq API. OK mvs
d3e0725e 2020-08-11 23:32:06 clang 10 now emits calls to __multi3 from libcompiler_rt Hints from kettenis@, ok kettenis@ deraadt@
efe63c19 2020-08-11 22:00:51 setitimer(2): write new timer value in one place Rearrange the critical section in setitimer(2) to match that of getitimer(2). This will make it easier to merge the two critical sections in a subsequent diff. In particular, we want to write the new timer value in *one* place in the code, regardless of which timer we're setting. ok millert@
3e395450 2020-08-11 20:51:06 Prioritize incoming certificate requests by the order of CERTEQ payloads in the received message. ok patrick@
267063ed 2020-08-11 19:25:40 Send an unexpected message alert if no valid content type is found. When record protection is engaged, the plaintext must be followed by a non-zero content type and optional zero padding. If the plaintext is zero length or only consists of zero bytes then it is not a valid message, since the content type is unspecified. ok tb@
ec46fd71 2020-08-11 19:21:54 Increment the epoch in the same place for both read and write. ok inoguchi@ tb@
b7c5dcbc 2020-08-11 19:13:35 Use 0 instead of 0x00 for memset() calls. ok inoguchi@ tb@
8d080487 2020-08-11 18:40:24 Use SSL3_SEQUENCE_SIZE for last_write_sequence[] rather than hardcoding. ok inoguchi@ tb@
65abc581 2020-08-11 18:39:40 In SSL_new() just 'goto err' on allocation failure. The error path does the same as the currently duplicated code. ok inoguchi@ tb@
bd0b8360 2020-08-11 18:29:58 setitimer(2): consolidate copyin(9), input validation, input conversion For what are probably historical reasons, setitimer(2) does not validate its input (itv) immediately after copyin(9). Instead, it waits until after (possibly) performing a getitimer(2) to copy out the state of the timer. Consolidating copyin(9), input validation, and input conversion into a single block before the getitimer(2) operation makes setitimer(2) itself easier to read. It will also simplify merging the critical sections of setitimer(2) and getitimer(2) in a subsequent patch. This changes setitimer(2)'s behavior in the EINVAL case. Currently, if your input (itv) is invalid, we return EINVAL *after* modifying the output (olditv). With the patch we will now return EINVAL *before* modifying the output. However, any code dependent upon this behavior is broken: the contents of olditv are undefined in all setitimer(2) error cases. ok millert@
60613915 2020-08-11 16:57:05 Update awk to August 7, 2020 version.
74ea3cc8 2020-08-11 15:41:50 getitimer(2): don't enter itimer_mtx to read ITIMER_REAL itimerspec The ITIMER_REAL per-process interval timer is protected by the kernel lock. The ITIMER_REAL timeout (ps_realit_to), setitimer(2), and getitimer(2) all run under the kernel lock. Entering itimer_mtx during getitimer(2) when reading the ITIMER_REAL ps_timer state is superfluous and misleading.
bba39a67 2020-08-11 15:23:57 Explicitly #include <scsi/scsi_debug.h> rather than assuming scsiconf.h will do it. Prepares for removal of #include <scsi/scsi_debug.h> from scsiconf.h as soon as the alpha tester digs out from hurricane to compile last untested files.
f98ca247 2020-08-11 14:57:56 struct process: annotate locking for getitimer(2), setitimer(2) The ITIMER_REAL itimerspec (ps_timer[0]) and timeout (ps_realit_to) are protected by the kernel lock. Annotate them with "K". The ITIMER_VIRTUAL and ITIMER_PROF itimerspecs (ps_timer[1], ps_timer[2]) are protected by itimer_mtx. Annotate them with "T", for "timer". With input from kettenis@ and anton@. ok kettenis@, anton@
a30705bc 2020-08-11 12:57:30 sync
210ec77e 2020-08-11 09:49:57 let ssh_config(5)'s AddKeysToAgent keyword accept a time limit for keys in addition to its current flag options. Time-limited keys will automatically be removed from ssh-agent after their expiry time has passed; ok markus@
272d1ebd 2020-08-11 09:45:54 let the "Confirm user presence for key ..." ssh-askpass notification respect $SSH_ASKPASS_REQUIRE; ok markus@
739189a3 2020-08-11 08:44:53 sync with upstream libfido2 rev 2fa20b889, picking up ~7 months of fixes and a few new APIs that we'd like to use in OpenSSH ok deraadt@