CVS: cvs.openbsd.org: src

2020-12-09 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/12/09 23:53:38

Modified files:
sys/net: fq_codel.c 

Log message:
classify packets without a flowid into bucket 0, not a random bucket.

putting packets into random buckets means packets in a flow/connection
will be reorderd. pf assigns a flowid if it's enabled, and you need
pf to configure code, so it's reasonable to assume that most packets
will have a flowid. using bucket 0 like this is what we do in most
other places that bin packets with the flowid.



CVS: cvs.openbsd.org: src

2020-12-09 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/12/09 23:40:22

Modified files:
sys/net: pf.c 

Log message:
when setting a flowid, set the M_FLOWID csum_flags bit too.

this "fixes" TCP going over an interface with fq codel enabled. the
way the codel code classifies a packet without a flowid set is to
randomly assign it to a bucket. this in turn means that packets
will get reordered, and tcp hates that.

sthen was able to find a test case and narrow down at which time
the problem appeared, helped greatly.

tested by sthen@ and millert@
ok sashan@ jmatthew@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/12/09 22:05:39

Modified files:
sys/dev/pci/drm/include/linux: jiffies.h 

Log message:
remove timespec_to_jiffies() which no longer exists in linux



CVS: cvs.openbsd.org: src

2020-12-09 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2020/12/09 21:27:25

Modified files:
sys/ddb: db_usrreq.c 

Log message:
Convert ddb_sysctl to sysctl_bounded_arr

ok gkoehler@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2020/12/09 21:27:07

Modified files:
sys/net: if_gre.c 

Log message:
Convert gre_sysctl to sysctl_bounded_arr

Fixed up a reference to gre_wccp where a fixed value from wwcp
standard was intended.

ok gkoehler@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2020/12/09 21:26:50

Modified files:
sys/kern   : sched_bsd.c 

Log message:
Use sysctl_int_bounded for sysctl_hwsetperf

Removed some trailing whitespace while there.

ok gkoehler@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2020/12/09 14:54:11

Modified files:
sys/net80211   : ieee80211_input.c 

Log message:
Ignore trailing data in A-MSDU frame buffers if it is smaller than the
Ethernet header size. Avoids spurious "input packet decapsulations failed"
errors in 'netstat -W' with A-MSDU enabled (currently disabled in-tree).

Problem observed and fix verified on iwm(4) 8260 by me and 7260 by tobhe.

ok phessler@ tobhe@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2020/12/09 13:00:11

Modified files:
usr.bin/awk: FIXES README.md awk.1 b.c lex.c lib.c main.c 
 parse.c proto.h run.c tran.c 

Log message:
Update awk to December 8, 2020 version.
Prevents strings beginning with "inf" or "nan" from being interpreted
as infinity or not-a-number respectively which still parsing "inf"
and "nan" (with or without a leading sign) correctly.



CVS: cvs.openbsd.org: src

2020-12-09 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/12/09 11:58:19

Modified files:
sys/kern   : kern_event.c kern_exit.c 
sys/sys: event.h proc.h 

Log message:
Add kernel-only per-thread kqueue & helpers to initialize and free it.

This will soon be used by select(2) and poll(2).

ok anton@, visa@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/12/09 11:11:18

Modified files:
sys/arch/i386/conf: RAMDISK 

Log message:
fxp does not currently fit



CVS: cvs.openbsd.org: src

2020-12-09 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2020/12/09 11:10:19

Modified files:
sys/arch/alpha/stand/boot: disk.c disk.h 
sys/arch/amd64/stand/boot: conf.c 
sys/arch/amd64/stand/cdboot: conf.c 
sys/arch/amd64/stand/efi32: conf.c diskprobe.c efidev.c efidev.h 
efipxe.c efipxe.h 
sys/arch/amd64/stand/efi64: conf.c diskprobe.c efidev.c efidev.h 
efipxe.c efipxe.h 
sys/arch/amd64/stand/efiboot: conf.c diskprobe.c efidev.c 
  efidev.h efipxe.c efipxe.h 
sys/arch/amd64/stand/libsa: biosdev.c biosdev.h disk.h 
diskprobe.c pxe_net.c pxe_net.h 
softraid_amd64.c softraid_amd64.h 
sys/arch/amd64/stand/pxeboot: conf.c 
sys/arch/arm64/stand/efiboot: conf.c disk.h efidev.c efidev.h 
  efipxe.c efipxe.h softraid_arm64.c 
  softraid_arm64.h 
sys/arch/armv7/stand/efiboot: conf.c disk.h efidev.c efidev.h 
  efipxe.c efipxe.h 
sys/arch/hppa/stand/boot: conf.c 
sys/arch/hppa/stand/libsa: libsa.h pdc.c 
sys/arch/i386/stand/boot: conf.c 
sys/arch/i386/stand/cdboot: conf.c 
sys/arch/i386/stand/libsa: biosdev.c biosdev.h disk.h 
   diskprobe.c pxe_net.c pxe_net.h 
   softraid_i386.c softraid_i386.h 
sys/arch/i386/stand/pxeboot: conf.c 
sys/arch/landisk/stand/boot: conf.c devs.c libsa.h 
sys/arch/landisk/stand/xxboot: boot1.c 
sys/arch/loongson/stand/boot: conf.c dev.c libsa.h rd.c 
sys/arch/luna88k/stand/boot: conf.c dev_net.c dev_net.h 
 samachdep.h sd.c 
sys/arch/macppc/stand: conf.c ofdev.c 
sys/arch/octeon/stand/rdboot: rdboot.c 
sys/arch/powerpc64/stand/rdboot: rdboot.c 
sys/arch/sgi/stand/boot: conf.c diskio.c netfs.c netio.c 
sys/arch/sparc64/stand/ofwboot: ofdev.c ofdev.h 
softraid_sparc64.c 
softraid_sparc64.h vers.c 
sys/lib/libsa  : stand.h 

Log message:
Use daddr_t and not daddr32_t in boot media.

At a minimum, amd64/i386 should now boot from 4TB GPT formatted disks.

More daddr32_t terminations with extreme prejudice to follow.

Tested by various, in snaps for a few days.

ok deraadt@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2020/12/09 08:50:58

Modified files:
sys/net80211   : ieee80211_input.c ieee80211_proto.c 

Log message:
Disable A-MSDU support again.

iwm(4) 9k and iwx(4) need more work before AMSDU can be enabled.
These devices decapsulate A-MSDU in hardware and required changes to
make this work with our drivers and stack seem to be non-trivial.

Problems reported by phessler@

ok phessler@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/12/09 08:45:58

Modified files:
distrib/loongson/ramdisk: install.md 

Log message:
Gdium bootblocks are still dumb, and cannot load the kernel from ffs.
This chunk was incorrectly removed recently with installboot improvements.



CVS: cvs.openbsd.org: www

2020-12-09 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:www
Changes by: schwa...@cvs.openbsd.org2020/12/09 06:52:25

Modified files:
.  : support.html 
build  : support.dat 

Log message:
add amglabs.net;
thanks to martijn@ and jj@ for pointing out that it does mention OpenBSD;
sort lines in a few nearby entries while here



CVS: cvs.openbsd.org: src

2020-12-09 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/12/09 06:24:22

Modified files:
sys/net80211   : ieee80211_input.c 

Log message:
Flush reorder buffer after gap timeout, otherwise the frames remain
in the buffer until the next frame is received.

Found by and fix from Christian Ehrhardt
ok stsp@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2020/12/09 05:11:13

Modified files:
sys/arch/arm64/arm64: pmap.c 

Log message:
Remove redundant TLB flush.  All callers of pmap_pte_remove() were already
calling ttlb_flush().

ok patrick@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/12/09 04:33:10

Modified files:
usr.sbin/rpki-client: rpki-client.8 

Log message:
Lets claim RFC6493 support.



CVS: cvs.openbsd.org: src

2020-12-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/12/09 04:30:44

Modified files:
regress/usr.sbin/rpki-client: Makefile.inc 
Added files:
regress/usr.sbin/rpki-client: test-gbr.c 
regress/usr.sbin/rpki-client/gbr: 
  LMrbiOIR4bDInnBEXLsY5MZ1q1U.gbr 

Log message:
Add a minimal test case for ghostbuster resources.



CVS: cvs.openbsd.org: src

2020-12-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/12/09 04:29:50

src/regress/usr.sbin/rpki-client/gbr

Update of /cvs/src/regress/usr.sbin/rpki-client/gbr
In directory cvs.openbsd.org:/tmp/cvs-serv87839/gbr

Log Message:
Directory /cvs/src/regress/usr.sbin/rpki-client/gbr added to the repository



CVS: cvs.openbsd.org: src

2020-12-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/12/09 04:29:04

Modified files:
usr.sbin/rpki-client: Makefile extern.h main.c output-json.c 
  output.c 
Added files:
usr.sbin/rpki-client: gbr.c 

Log message:
Validate ghostbuster records (RFC 6493) but for now do nothing with the
provided vcard payload. This change verifies the certificate of the .gbr
file and makes sure it is valid (like we do for e.g. .roa files).
OK job@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/12/09 04:25:08

Modified files:
usr.sbin/rpki-client: mft.c 

Log message:
All files provided in a manifest needs to be checked against the provided
hash even if rpki-client ignores this file later on.
OK job@



CVS: cvs.openbsd.org: src

2020-12-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/12/09 04:22:47

Modified files:
regress/usr.sbin/rpki-client: test-cert.c 

Log message:
If provided print the RRDP notify URL along the MFT rsync URL