summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-27Adjust definition of DART_L1_TABLE to what Linux uses.Mark Kettenis
ok jsg@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-02-27Use ',' in custom separator example and change shell prompt to non-root.Todd C. Miller
2022-02-27Enable libedit line editingJeremie Courreges-Anglas
Sync our hardcoded config with what cmake detects in ports/devel/llvm. Brought up privately by cheloha@, then by Andrei on tech@, input and ok gnezdo@
2022-02-27Fix whitespace and uninitialized variable in dt(4).Alexander Bluhm
OK mpi@
2022-02-27tweak the opening paragraph for readability, and tidy up one of the examples;Jason McIntyre
ok millert
2022-02-27SC_DEBUG() requires an initialized scsi_link. ShuffleKenneth R Westerback
code to make it so. Pointed out by clang when prodded with SCSIDEBUG.
2022-02-27include rejected signature algorithm in error message and not theChristian Weisgerber
(useless) key type; ok djm@
2022-02-26Allow pledged pf ioctl test to pass also when pf is disabled.Alexander Bluhm
2022-02-26setuserenv: a missing /etc/login.conf file is not an error.Todd C. Miller
The code to handle LOGIN_SETENV (and thus LOGIN_SETALL) returned an error if /etc/login.conf could not be opened. We should simply return success from setuserenv() in this case like we do for the other flags. From Matthew Martin, OK deraadt@
2022-02-26Add regress coverage for ASN1_OBJECT public interfaces.Joel Sing
2022-02-26Currently malloc caches a number of free'ed regions up to 128kOtto Moerbeek
in size. This cache is indexed by size (in # of pages), so it is very quick to check. Some programs allocate and deallocate larger allocations in a frantic way. Accomodate those programs by also keeping a cache of regions between 128k and 2M, in a cache of variable sized regions. Tested by many in snaps; ok deraadt@
2022-02-26regenMark Kettenis
2022-02-26Add Broadcom BCM4387.Mark Kettenis
2022-02-26Remove excessive ;Claudio Jeker
2022-02-26add the mbuf tag that prevents loops in vxlan_encap, not vxlan_output.David Gwynne
vxlan_output calls ether_output, which will do arp for ipv4 packets. if arp hasn't resolved an address for a peer yet, it will queue the packet and transmit it again after resolution completes. the way it outputs is to call the interface output routine again, which is vxlan_output. if we tag the packet in vxlan_output before arp, and then arp calls vxlan_output again, it looks like a loop and drops it. moving the tagging to when we add all the encap headers in vxlan_encap avoids this issue.
2022-02-26have another go at fixing assert "sc->sc_dev == NUM" failed.David Gwynne
claudio figured it out. his clue was that multiple concurrent calls to tunopen (or tapopen) will share a vnode. because tunopen can sleep, multiple programs can be inside tunopen for the same tun interface at the same time, all with references against the same vnode. at the same time as this another thread/program can call VOP_REVOKE via tun_clone_destroy (eg, ifconfig tun1 destroy does this). VOP_REVOKE marks a vnode as bad, which in turn means that subsequent open()s of a tun interface will get a brand new vnode. so multiple threads holding references to a vnode can be sleeping in tun_dev_open on the interface cloner lock. one thread wins and takes ownership of the tun interface, then another thread can destroy that tun interface, calls VOP_REVOKE which calls tun_dev_close to tear down the vnodes association with the tun interface and mark the vnode as bad. the thread that called tun_clone_destroy then creates another instance of the interface by calling tun_clone_create immediately. one of the original threads with the old vnode reference wakes up and takes ownership of the new tun_softc. however, because the vnode is bad, all the vnode ops have been replaced with the deadfs ops. the close() op on the old vnode is now a nop from the point of view of tun interfaces. the old vnode is no longer associated with tun and tap and will now never call tun_dev_close (via tunclose or tapclose), which in turn means sc_dev won't get cleared. another thread can now call tun_clone_destroy against the new instance of tun_softc. this instance has sc_dev set, so it tries to revoke it, but there's no vnode associated with it because the old vnode reference is dead. because this second call to VOP_REVOKE couldnt find a vnode, it can't call tunclose against it, so sc_dev is still set and this KASSERT fires. claudio and i came up with the following, which is to have tun_dev_open check the state of the vnode associated with the current open call after all the sleeping and potential tun_clone_destroy and tun_clone_create calls. if the vnode has been made bad/dead after all the sleeping, it returns with ENXIO. Reported-by: syzbot+5e13201866c43afbfbf6@syzkaller.appspotmail.com ok claudio@ visa@
2022-02-25Reported-by: syzbot+1b5b209ce506db4d411d@syzkaller.appspotmail.comPhilip Guenther
Revert the pr_usrreqs move: syzkaller found a NULL pointer deref and I won't be available to monitor for followup issues for a bit
2022-02-25To fix crashes seen by Hrvoje with pfsync, IPsec and parallelAlexander Bluhm
forwarding, protect tdb flags and lists in pfsync with a mutex. help and OK sashan@
2022-02-25use setall for setusercontext, to make it simpler to inherit new changes.Ted Unangst
note that the addition of setenv doesn't do much, since doas will rewrite the environment anyway (but added variables are accessible in keepenv, should anybody be using that feature).
2022-02-25add setrtable to pledge("id"). from Matthew MartinTed Unangst
ok deraadt
2022-02-25A few additional changes related to the now 32 bit accounting flag.Rob Pierce
Pointers from and discussions with millert and deraadt. Ok millert@, deraadt@, bluhm@
2022-02-25Whitespace.Rob Pierce
2022-02-25fix indent and other minor KNF nitsTheo Buehler
2022-02-25Enable cduart(4) on arm64.Visa Hankala
OK kettenis@
2022-02-25The pointer returned by pt_fill() can be directly used in most cases.Claudio Jeker
There is no need for an extra local variable. Noticed by and OK tb@
2022-02-25For add-path send the Adj-RIB-Out needs to handle multiple paths perClaudio Jeker
prefix. For this extend the RB trees of the Adj-RIB-Out to also consider the path_id. Add functions to lookup a prefix without path_id so that bgpctl works. Rename functions so that all Adj-RIB-Out specific functions start with prefix_adjout_ For now the path_id_tx in the Adj-RIB-Out is forced to 0 since up_generate_updates() is not ready to handle more than one path per prefix. OK tb@
2022-02-25Remove the char * casts from arguments to do_lstat, do_readdir andDarren Tucker
do_stat paths since the underlying functions now take a const char *. Patch from vapier at gentoo.org.
2022-02-25Move pr_attach and pr_detach to a new structure pr_usrreqs that canPhilip Guenther
then be shared among protosw structures, following the same basic direction as NetBSD and FreeBSD for this. Split PRU_CONTROL out of pr_usrreq into pru_control, giving it the proper prototype to eliminate the previously necessary casts. ok mvs@ bluhm@
2022-02-25in6_ioctl() is declared in in6_var.h as it's used in if_umb.c, soPhilip Guenther
don't declare it again in the .c file ok dlg@ mvs@ bluhm@
2022-02-25save an unneccessary alloc/free, based on patch fromDamien Miller
Martin Vahlensieck; ok dtucker@
2022-02-24Get rid of SHA1 for comparing CRL's - use SHA512 just like we do for certs.Bob Beck
ok tb@
2022-02-24Remove accidentally committed debug code.Theo Buehler
2022-02-24struct prefix holds path_id_tx for the path id sent to peers whenClaudio Jeker
add-path send is enabled. Start using this instead of 0. Currently nothing sets path_id_tx to any value != 0 so this is the same but a bit more correct. OK tb@
2022-02-24Rename parselabel() to parsefstab() and makelabel() toKenneth R Westerback
parsedisktab(). Move non-fstab and non-disktab bits to the single points of invocation for both. No intentional functional change.
2022-02-24Fix kernel stack alignment on riscv64Visa Hankala
Pad trapframe and switchframe structs so that their size is a multiple of 16 bytes. This makes context switching and exception handlers keep kernel stack properly aligned. OK kettenis@
2022-02-24Reserve room for holding curcpu pointer in u-areaVisa Hankala
The tp register contains the curcpu pointer in kernel mode. The pointer has to be saved and replaced with the TCB pointer in the register when entering user mode. These steps are reversed when returning to kernel. The curcpu pointer is saved in the u-area. Explicitly reserve room for the pointer to make the saving more visible. OK kettenis@
2022-02-24drm/amd/display: fix yellow carp wm clampingJonathan Gray
From Dmytro Laktyushkin 1ddab2ee882900df817dd89882618356b7ecbab3 in linux 5.15.y/5.15.25 60fdf98a774eee244a4e00c34a9e7729b61d0f44 in mainline linux
2022-02-24drm/amd/display: Cap pflip irqs per max otg numberJonathan Gray
From Roman Li 929b2eddebc2cb5ecf220337658f8d8538d4ab9d in linux 5.15.y/5.15.25 328e34a5ad227399391891d454043e5d73e598d2 in mainline linux
2022-02-24display/amd: decrease message verbosity about watermarks table failureJonathan Gray
From Mario Limonciello 3fd92f5be6c48cce92c90ecf71719582645da888 in linux 5.15.y/5.15.25 03ad3093c7c069d6ab4403730009ebafeea9ee37 in mainline linux
2022-02-24drm/i915/ttm: tweak priority hint selectionJonathan Gray
From Matthew Auld 79bdf56cc55d103f2a276318fd973a296a110b95 in linux 5.15.y/5.15.25 0bdc0a0699929c814a8aecd55d2accb8c11beae2 in mainline linux
2022-02-24drm/i915: Fix mbus join config lookupJonathan Gray
From Ville Syrjala fe802b3fe7631c35abbf280702c5d29b867a1150 in linux 5.15.y/5.15.25 8d9d2a723d64b650f2e6423024ccb4a33f0cdc40 in mainline linux
2022-02-24drm/i915: Fix dbuf slice config lookupJonathan Gray
From Ville Syrjala 34f5556ddf2b5fc25696832fa4a1a7013fc80a05 in linux 5.15.y/5.15.25 698bef8ff5d2edea5d1c9d6e5adf1bfed1e8a106 in mainline linux
2022-02-24drm/i915/opregion: check port number bounds for SWSCI display power stateJonathan Gray
From Jani Nikula d006f2fe7d627b3ff3f637cf2fa90d30e05887c9 in linux 5.15.y/5.15.25 ea958422291de248b9e2eaaeea36004e84b64043 in mainline linux
2022-02-24drm/amdgpu: skipping SDMA hw_init and hw_fini for S0ix.Jonathan Gray
From Rajib Mahapatra 960c8a55016bece26140eef7a8077e9dc3709098 in linux 5.15.y/5.15.25 f8f4e2a518347063179def4e64580b2d28233d03 in mainline linux
2022-02-24drm/amd/pm: correct the sequence of sending gpu reset msgJonathan Gray
From Yifan Zhang 3851046599c1907c956b126bac18c4b84bf6a16b in linux 5.15.y/5.15.25 9c4f59ea3f865693150edf0c91d1cc6b451360dd in mainline linux
2022-02-24drm/atomic: Don't pollute crtc_state->mode_blob with error pointersJonathan Gray
From Ville Syrjala a1596e0277ed430dc2f44b61ebc2c1ecdab718e4 in linux 5.15.y/5.15.25 439cf34c8e0a8a33d8c15a31be1b7423426bc765 in mainline linux
2022-02-24drm/radeon: Fix backlight control on iMac 12,1Jonathan Gray
From Nicholas Bishop 68f3a4252e9718843bd172f9761267aa288647d0 in linux 5.15.y/5.15.25 364438fd629f7611a84c8e6d7de91659300f1502 in mainline linux
2022-02-24drm/amdgpu: fix logic inversion in checkJonathan Gray
From Christian Koenig 0fec53c5dca8a218e20b1d3964db23391a689dff in linux 5.15.y/5.15.25 e8ae38720e1a685fd98cfa5ae118c9d07b45ca79 in mainline linux
2022-02-24drm/amd: Only run s3 or s0ix if system is configured properlyJonathan Gray
From Mario Limonciello 38108fd273acbc6248870a7a3e61714398af6f94 in linux 5.15.y/5.15.25 04ef860469fda6a646dc841190d05b31fae68e8c in mainline linux