IABSD.fr/src

Branch :


Log

Author Commit Date CI Message
9ab6f78c 2016-10-28 07:28:27 Document that rev(1) uses LC_CTYPE. Triggered by an incorrect patch from Jan Stary. While here, add an .Xr to cut(1). OK millert@ jmc@
84d7e2a2 2016-10-28 07:22:59 Delete some useless setlocale(3) calls in /usr/bin, no functional change. Patches from Jan Stary <hans at stare dot cz>, tweaked by me and tb@. While here, apply some simple style improvements: Sort headers, static void __dead usage(), return from main(), zap case '?', drop /* NOTREACHED */, drop break after usage(), ... OK tb@ millert@
da38d447 2016-10-28 05:46:14 there's a new mbuf cluster pool.
3c54a32f 2016-10-28 03:33:52 Improve pkcs11_add_provider() logging: demote some excessively verbose error()s to debug()s, include PKCS#11 provider name and slot in log messages where possible. bz#2610, based on patch from Jakub Jelen
f74a4c70 2016-10-27 21:41:20 Pass a struct pf_pdesc to pf_route() like it is done in the other pf functions. That means less parameters, more consistency and later we can call functions that need a pd from pf_route(). OK sashan@
552ffd70 2016-10-27 20:44:19 We don't generate an eddep script for kernel builds nowadays. The last reference to eddep in the kernel Makefile I could find is in 4.3BSD, released some 30 years ago. ok tb millert
4d7f3c9d 2016-10-27 16:17:43 vmm is also available on i386 now, so don't restrict it to amd64. OK mikeb@ mlarkin@
c051250e 2016-10-27 14:33:30 Remove some code that was already disabled when it was committed 20 years ago. While there, eliminate two dead assignments. ok natano
917ec439 2016-10-27 14:32:10 Remove OLDSCSIBUS conditional. Unused since it was imported 21 years ago. ok natano
e97988fe 2016-10-27 14:04:09 Improve channel ring locking strategy Make sure to hold the ring buffer lock for the complete duration of a channel ring I/O operation. For read operations this means peeking and reading is done uninterrupted and for both reads and writes this places the buffer space availability check under the same lock as well.
1ad079e9 2016-10-27 13:55:21 Don't assume clr->ifname is a NUL-terminated printable string. Use vis(3) to safely print ifname and stop at IFNAMSIZ bytes. Found with afl by jsg@. OK jsg@
6e155017 2016-10-27 13:19:27 Revert previous `ncpus' change because the percpu code now works without it.
b122b5f2 2016-10-27 12:53:54 obvious case of s/LC_ALL/LC_CTYPE/, noticed by Jan Stary
a919f51b 2016-10-27 10:48:25 For consistency, allow symlinkat(2) in the same way as symlink(2); no need to wait until the first program using it breaks... "could make sense" semarie@ (and thanks for the cluestick) OK deraadt@
6c8ea8f6 2016-10-27 09:48:01 Avoid a use after free in swofp_flow_timeout(). The swofp_flow_entry_delete() call frees the memory pointed to by the swfe variable which was used later in the loop. ok rzalamena@
7ff9d7f5 2016-10-27 09:46:14 revert 1.41 now that subr_percpu is using ncpusfound instead of ncpus.
8457285f 2016-10-27 09:40:20 use ncpusfound to size the percpu allocations. ncpus is used on half the architectures to indicate the number of cpus that have been hatched, and is used on them in things like ddb to figure out how many cpus to shut down again. ncpusfound is incremented during autoconf on MP machines to show how big ncpus will probably become. percpu is initted after autoconf but before cpus are hatched, so this works well.
36dce07c 2016-10-27 08:21:58 Huawei squatted on BGP Path Attribute 30, and Cisco squatted on 31. So, IANA moved the Large Communities attribute to 32, which is a nice pun on the problem it is solving.
8d460ad6 2016-10-27 07:12:02 minor whitespace fixes.
ab108c85 2016-10-27 05:42:19 sync
7c5e66b0 2016-10-27 05:36:35 increment ncpus when a cpu is attached, not when its booted. fixes percpu allocations, like visa@ just did on mips64.
915eb5f7 2016-10-27 05:08:23 Uniformize debug printfs, by using consistently __func__ everywhere. From Michael W. Bombardieri <mb at ii.net>
7c71888c 2016-10-27 04:37:47 Fix many typos in comments, from Michael W. Bombardieri <mb at ii.net>
7281dfb9 2016-10-27 03:29:55 refactor m_pullup a bit. the most important change is that if the requested data is already in the first mbuf in the chain, return quickly. if that isnt true, the code will try to use the first mbuf to fit the requested data. if that isnt true, it will prepend an mbuf, and maybe a cluster, to fit the requested data. m_pullup will now try to maintain the alignment of the original payload, even when prepending a new mbuf for it. ok mikeb@
d8e71e50 2016-10-27 03:06:53 tell ix and em to use 2k+ETHER_ALIGN clusters for rx on all archs. this means that the ethernet header and therefore its payload will be aligned correctly for the stack. without this em and ix are sufferring a 30 to 40 percent hit in forwarding performance because the ethernet stack expects to be able to prepend 8 bytes for an ethernet header so it can gaurantee its alignment. because em and ix only had 6 bytes where the ethernet header was, it always prepends an mbuf which turns out to be expensive. this way the prepend will be cheap because the 8 byte space will exist. 2k+ETHER_ALIGN clusters will end up using the newly created mcl2k2 pool. the regression was isolated and the fix tested by hrvoje popovski. ok mikeb@
7887e009 2016-10-27 03:00:35 add a new pool for 2k + 2 byte (mcl2k2) clusters. a certain vendor likes to make chips that specify the rx buffer sizes in kilobyte increments. unfortunately it places the ethernet header on the start of the rx buffer, which means if you give it a mcl2k cluster, the ethernet header will not be ETHER_ALIGNed cos mcl2k clusters are always allocated on 2k boundarys (cos they pack into pages well). that in turn means the ip header wont be aligned correctly. the current workaround on these chips has been to let non-strict alignment archs just use the normal 2k cluster, but use whatever cluster can fit 2k + 2 on strict archs. that turns out to be the 4k cluster, meaning we waste nearly 2k of space on every packet. properly aligning the ethernet header and ip headers gives a performance boost, even on non-strict archs.
ab417b3a 2016-10-26 21:07:22 Put union pf_headers and struct pf_pdesc into separate header file pfvar_priv.h. The pf_headers had to be defined in multiple .c files before. In pfvar.h it would have unknown storage size, this file is included in too many places. The idea is to have a private pf header that is only included in the pf part of the kernel. For now it contains pf_pdesc and pf_headers, it may be extended later. discussion, input and OK henning@ procter@ sashan@
2e96c40a 2016-10-26 19:14:28 In addition to forwarding and path MTU discovery with pf, check that ICMP Time Exceeded packets are generated. Traceroute output from packets forwarded through pf and a router must contain 3 hops and every hop must respond. Do not test with af-to and reply-to rules as this does not work right now.
6a64d099 2016-10-26 17:24:13 nicer list width; from julien dhaille
5442aaa2 2016-10-26 16:25:06 Section name references are case sensitive
fe5882cf 2016-10-26 16:18:45 in florian;s last commit i urged him to change "twenty-four" to "twenty four", arguing, i think, that the internet is wrong; well seemingly i'm wrong, and you should hyphenate numbers when spelled out - who'd have thought it. apologies to florian and the diff submitter (and the internet); still, what i should have advised, and what i've done here, is use "24", which is much simpler, fits the surrounding text, and agrees with oed style advice;
944eabd5 2016-10-26 15:31:13 s/EXIT_FAILURE/1/
4f3c7809 2016-10-26 15:22:40 mac68k is discontinued
d41c3c4a 2016-10-26 14:17:42 Add the omit-trailing-period cd9660 option to the manual.
cf181e99 2016-10-26 14:15:59 When using a /32 IPv4 interface address, pfctl(8) reports a 0.0.0.0 as broadcast address. The kernel does not consider this a broadcast address and ifconfig(8) has a check to exclude it. Use the same check in pfctl(8). Found by regress/sbin/pfctl pfi2; OK mikeb@
91b28e22 2016-10-26 14:14:16 Remove cd9660's chrp-boot option. deraadt confirmed we don't support any CHRP hardware.
e1a25d74 2016-10-26 14:06:46 Use OPT_BOOL, not OPT_INT32 for boolean cd9660 options.
b3e4b791 2016-10-26 14:06:33 Cleanup pflow test before fixing it. Be more verbose to make debugging easier. Handle EINPROGRESS connect(2) error correctly. Perl pack Q fails on 32 bit machines, add workaround. Restore interfaces in END block, works also if script dies. OK florian@
1fef22de 2016-10-26 14:06:05 Due to 64 bit seconds + 64 bit nano seconds resolution and the addition of a MAC we need at least 24 bytes packet size these days to show timing information. Pointed out by Tamas Horvath, thanks! OK jmc
ff813cab 2016-10-26 13:42:54 Increment `ncpus' to its final value already during autoconfiguration so that percpu data areas get allocated properly on mips64 platforms. It is too late to set the value during launch of secondary CPUs. ok jasper@ kettenis@ dlg@
2829bd71 2016-10-26 13:21:52 sync
f9fb68b5 2016-10-26 11:48:07 Buffer name can be NULL, check before strdup().
139635d4 2016-10-26 11:24:17 use -ffloat-store to avoid too much precision which breaks the subtle test on some platforms; suggested by and ok martynas@
40854474 2016-10-26 07:53:47 Remove FS-specific option descriptions from the source code. We have a manual for that. While there document the isolevel option and remove some dysfunctional cd9660 options.
9dae6e67 2016-10-26 05:26:36 vmd(8)/vmctl(8) for i386. Some ugliness in #ifdef __i386__ areas will be fixed in tree, but the changes required were pretty minimal. Note that i386 hosts are still presently limited to running i386 guests. ok deraadt, stefan, jca
635fd524 2016-10-26 05:22:15 Fix a few misc bugs in i386 vmm: 1. Include ioctls needed for pledge support (to be used with the upcoming i386 vmd diff) 2. Don't assume we can enter an IA32e mode guest on entry when the host doesn't have unrestricted guest capability 3. Don't enable PAE in the guest CR4 when launching on hosts without unrestricted guest capability (vmd does not set up PAE bootstrap page tables) 4. Don't use a bitfield for the MSR bitmap index (same fix as just committed for amd64) 5. Store and restore EFER properly on exit to ensure that the host NXE is recovered on exit
41556e47 2016-10-26 05:15:13 Don't use a bitfield in the msr store index structure. This may not end up initializing the unused bits, leading to VMABORTs during vmentry. Found the hard way on i386 vmm, but the problem could occur on amd64 as well.
6008a705 2016-10-26 01:20:39 Document LC_CTYPE. The lack of this entry was reported by Jan Stary <hans at stare dot cz>. OK czarkoff@ jmc@
aa3e8f20 2016-10-26 01:00:27 Polishing together with jmc@: Avoid the impression that we unconditionally recommend LC_CTYPE=en_US.UTF-8. Make it clear that not all parts of the system fully support it yet. Collect the sentences drawing the big picture into a single paragraph, and move it to a less unusual place, right after the option list.
e824ecfc 2016-10-26 00:46:01 make it clear that the s/// numeric flag can contain more than one digit but cannot start with zero; feedback and OK jmc@, OK jca@, OK millert@ on an earlier version
15941a90 2016-10-25 19:40:57 bluhm@ pointed out that addr->sin6_port should be forced to zero since a port doesn't make sense for a raw socket. I forgot to commit this hunk in the previous commit. Sorry about that.
00998797 2016-10-25 19:36:11 Channel API users should pick the bufring size hvn(4) needs to be able to put up to 128 RNDIS data messages on the channel ring each pointing up to 16 fragments in addition to a small number of RNDIS control messages. This simplifies accounting of available TX descriptors in relation to the available space on the channel ring and as a results prevents packet drops due to the ring being full.
d9378229 2016-10-25 16:31:08 Make kernel without INET6 compile again. OK mikeb@
6ccc3427 2016-10-25 08:43:15 Add missing OpenBSD keyword in the first line.
8ce5b002 2016-10-25 08:09:22 minor tweaks;
6612abda 2016-10-25 07:59:45 convert usage() to just spit out the normal options list, instead of trying to list all the fs-specific stuff; help/ok natano
13cf009a 2016-10-25 07:24:10 Do not handle activity or silence alerts in the current window, reported by jasper@.
f86db091 2016-10-25 07:21:02 Accept CARP advertisement packets whose destination is not for multicast. When both "carppeer" and "real mac-address" are used at once and the BACKUP is to take over the new MASTER, the present MASTER receives such packets. Found by and diff from nagasaka at iij. ok henning bluhm
11acbd79 2016-10-25 06:55:59 Deduplicate the CRS parsing code and handle broken ACPI implementations. This change was prompted by a report from Ilya Kaliman where acpiec(4) failed to initialize on his Acer Aspire S7. Further investigations showed that the machine had 4 instead of 2 resources defined inside the EC device which is a violation of all existing ACPI revisions. We now handle such machines by using the aml resource parser directly, which lead to the removal of the existing one from acpiec.c, and ignoring extra resources (although they are reported in the dmesg). In the process I also done a couple of more style(9) fixes. Suggested by and ok guenther@
dd9a9f1c 2016-10-25 06:48:58 Add the resource index to aml_parse_resource() callback function. This is needed by an upcoming acpiec commit that handles machines breaking the current ACPI specifications. Change suggested by and ok kettenis@, guenther@
dd3aac00 2016-10-25 06:26:03 Fix bind(2)ing link local addresses to raw sockets by calling in6_pcbaddrisavail() which does all the checking for us instead of hand rolling half of it. Input & OK bluhm@ bluhm@ also points out that this relaxes the check for valid addresses a bit, deprecated addresses become valid for raw sockets. This should be fine, it brings raw sockets in line with udp/tcp sockets and it might be particularly interesting for debugging purposes.
eb77e636 2016-10-25 06:20:41 mask and unmask the interrupt source in an intx specific intr handler. it seems devices using levelled intx interrupts need to explicitely ack interrupts by masking and unmasking the source around the completion ring handling. without this completions can be lost, which in turn causes long (permanent?) stalls in the block layer under heavy write load. ive experienced this problem with an intel nvme part that only has intx and msix support. because we dont support msix yet we only use intx on it. it appeared to lock up before this fix. this has been tested on both that intel board and a samsung with msi. this fix was based on work found in code by nonaka
5aa68a31 2016-10-25 06:04:41 bring canaries for > page sized objects from libc to ld.so; ok guenther@
d7202284 2016-10-25 04:08:13 Fix logic in add_local_forward() that inverted a test when code was refactored out into bind_permitted(). This broke ssh port forwarding for non-priv ports as a non root user. ok dtucker@ 'looks good' deraadt@
1a108db9 2016-10-25 00:21:05 provide an example based on the mbuf code
309a8aed 2016-10-25 00:11:06 bluhm@ suggested pointing out that cpumem_malloc_ncpus and counters_alloc_ncpus preserve the contents of memory used by the boot cpu.
75088f8d 2016-10-25 00:07:29 bluhm@ suggests that it is enough to say that the allocations will be zeroed, and how they're zeroed is an implementation detail that doesnt really help the reader.
7cdc427f 2016-10-25 00:04:59 Remove now unused disable_l2_if_needed interface. ok kettenis@ patrick@
57d14348 2016-10-25 00:03:40 start documenting allocating per cpu data at boot time, and adding memory for new cpus after theyve attached. some tweaks from jmc@ who will probably find more things wrong after this. im putting some suggestions in from bluhm@ shortly
780021b3 2016-10-24 23:58:33 avoid using realloc in the name of things that dont work like realloc. cpumem_realloc and counters_realloc actually allocated new per cpu data for new cpus, they didnt resize the existing allocation. specifically, this renames cpumem_reallod to cpumem_malloc_ncpus, and counters_realloc to counters_alloc_ncpus. ok (and with some fixes by) bluhm@
7e041c99 2016-10-24 21:05:55 Compare server-identifiers and reject packets only *after* applying value specified in dhcpd.conf. i.e. don't assume it is always the primary address of the interface the packet arrived on. Fixes issues with redundant dhcpd servers and CARP'd interfaces. Issue reported and fix tested by Johan Huldtgren
17030149 2016-10-24 18:26:17 make cleandir should skip the version file; ok otto millert
924cf9c1 2016-10-24 17:18:42 remove double semicolon from Brian Callahan
42cc34d6 2016-10-24 15:34:59 using exact valus in floating point tests often does not work as expected, use epsilon test
3ca31b0c 2016-10-24 15:06:49 document the options for msdos systems; help/ok natano
c37de4bc 2016-10-24 13:53:05 As suggested by martijn@, delete absurd EXAMPLES section and two irrelevant .Xr links. While here, add two .Xr links that are relevant. OK martijn@ jmc@
4da37b8e 2016-10-24 13:46:58 Unify wording for LC_CTYPE in ENVIRONMENT: * Consistently use "character encoding locale" as suggested by stsp@. * Resolve various gratuitious wording variations. OK jmc@.
fa59c59e 2016-10-24 13:27:06 Document the LC_* variables in more detail and explain what is special about locales in OpenBSD. Lots of feedback and OK jmc@.
01402e93 2016-10-24 11:09:05 When the IPv6 network stack receives an empty non atomic fragment, just drop it. It can never overlap existing content, there is no ambiguous payload. So save resources and do not try to insert it into the queue. This makes our IPv6 stack behave like pf fragment reassembly. OK deraadt@
9f00ffd1 2016-10-24 09:45:45 do not ignore -Wsign-compare; requested by deraadt@
0f74efba 2016-10-24 09:45:02 regen
c1e73312 2016-10-24 09:44:43 Update to 4.1.13 Testing millert, brad and myself. OK millert@
7e0520dc 2016-10-24 06:19:22 fix SEE ALSO;
ff7533e8 2016-10-24 06:13:52 adapt to recent wsmouse changes by bru (oct23)
c1e051b2 2016-10-24 05:27:52 Backout last 2 revisions. Requested by deraadt.
6e021050 2016-10-24 04:38:44 move the mbstat structure to percpu counters each cpus counters still have to be protected by splnet, but this is better thana single set of counters protected by a global mutex. ok bluhm@
4e68b742 2016-10-24 03:45:48 Make mfii(4) bio(4) capable. ok dlg
6c8f19e1 2016-10-24 03:15:35 non-MP vs MP codepaths were confusingly split between the .c and .h file. Unify these by placing #ifdef MULTIPROCESSOR inside the functions, then collapse further to reduce _KERNEL blocks ok dlg
786ef2d6 2016-10-24 03:11:58 Add scsi ioctl hook to do a special treatment for DIOC{G,S}CACHE which is already done in mfi(4). ok dlg
99dedb4c 2016-10-24 02:52:02 Add regress tests for carp(4).
23646fe4 2016-10-24 01:50:09 augment the scsi_probe handler so it tries to query the sas dev pg 0 sas dev pg0 tells us interesting things, like the devices sas addresses and if it is ATAPI or not.
d6822f2d 2016-10-24 01:09:17 Remove dead breaks, found via opencoverage.net. ok deraadt@
03a2e3af 2016-10-23 22:59:19 Improved parameter handling in wsmouse and new ioctls for reading and setting parameter values. ok matthieu@
7c66583e 2016-10-23 22:04:05 Factor out "can bind to low ports" check into its own function. This will make it easier for Portable to support platforms with permissions models other than uid==0 (eg bz#2625). ok djm@, "doesn't offend me too much" deraadt@.
f24ab995 2016-10-23 19:06:08 Remove sunxi board IDs.
575b9fbf 2016-10-23 19:05:09 Remove sunxi board IDs.
4469d804 2016-10-23 18:50:34 De-platformize sunxi. This removes the board initialization code that sets up SRAM for the EMAC. Instead we rely on u-boot setting this up for us. ok jsg@, patrick@
4afe725d 2016-10-23 18:46:03 fix lgamma test on i386 and use symbolic constant; ok martynas@
f2043530 2016-10-23 18:14:01 For -d, if there is no modifier, don't go down the "longformat" path. Fixes cases like "pstat -d x ticks" on armv7. ok jca@, deraadt@
09b6552d 2016-10-23 17:27:01 zap trailing whitespace;