summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2020-05-26increment version numbers, due to recent RB_GOODSEED and fchmod +T changesTheo de Raadt
2020-05-26/etc/random.seed reuse can now be detected. The stat +T bit marks the fileTheo de Raadt
(fchmod +T by bootcode, chmod 600 by /etc/rc). If the seed is reused, and HWRNG isn't available, the kernel won't get RB_GOODSEED indication...
2020-05-26iodcstrategy() maintains a cache for READ performance (tapes are supportedTheo de Raadt
here, and alternatively would need to rewind). WRITE code exists, but was always wrong -- it writes the cache-buffer to disk, rather than the provided write-buffer. Copy the write-buffer into the cache, and invalidate the cache completely so that future reads start from scratch.
2020-05-26Check outcome of loadrandom() on octeonVisa Hankala
If loadrandom() succeeds, set RB_GOODRANDOM in boothowto. To enable fchmod(), disk_open() has to mount the filesystem in writable mode. This is tricky because the filesystem might be unclean. Hence the code has to use MNT_FORCE. Input and OK deraadt@
2020-05-26Rework kernel loading with octboot(4)Visa Hankala
Load the kernel image from the filesystem upfront in rdboot and pass the loaded image to octboot(4)'s kexec call in a memory buffer. As a result, octboot(4) does not rely on a mounted filesystem. OK deraadt@
2020-05-26fix wrong firmware filename typo in a comment in iwx_read_firmware()Stefan Sperling
2020-05-26Make the necessary adjustments to parse iwx(4) -48 firmware image files.Stefan Sperling
This does not switch to newer firmware yet. The driver currently fails to send frames when -48 firmware is used. And the -48 firmware image is not yet available in fw_update(1).
2020-05-26Implement support for the iwx(4) SOC_CONFIGURATION command.Stefan Sperling
This command doesn't seem to be needed with the ax200 device we currently support. But it does not hurt and will be needed for other devices this driver intends to support in the future. ok mpi@
2020-05-26Don't enable any BT modules in the iwx(4) BT_COEX command.Stefan Sperling
The iwx(4) driver intends to disable bluetooth. The command we sent to the firmware says "wifi only", but also enabled a bluetooth module. This seems to work as intended but is ambiguous. Linux also leaves all modules disabled in wifi-only mode. So do not enable any BT modules in the BT_COEX command. ok mpi@
2020-05-26Make iwx(4) flush the Tx path before removing the AP from the firmware'sStefan Sperling
station table. The Tx flush operation depends on the station being present. Avoids a fatal firmware error when the driver moves out of AUTH state.
2020-05-26Make iwx(4) binding command work on -48 firmware.Stefan Sperling
Some firmware versions don't expect LMAC_5G_INDEX in the binding command. Set that value under the same conditions as the Linux driver does, which makes this command work on -48 firmware. ok mpi@
2020-05-26Support iwx(4) firmware's BEACON_FILTER_CONFIG_API_S_VER_4 command.Stefan Sperling
Newer iwx(4) firmware versions will require a larger beacon filter command. The extra fields fields are initialized to zero even on Linux but newer firmware will require a size change anyway. ok mpi@
2020-05-26Rewrite m88k mutex code as a slight variation of the MI mutex code.Kenji Aoyama
This will make mutex spinning time visible in top(1), and also might improve stability. The major change in this is that the old assembly code acquires mutexes with an atomic exchange operation, but releases them with a regular store, but the new code always uses atomic exchange operations. The mutex.h changes to the macros conform to <sys/mutex.h> to be able to reset the system while in ddb. Suggested from Miod Vallat, tested by me. The stability in heavy load is greatly improved in my case.
2020-05-26Let unencrypted 802.11 frames pass during hardware decryption post-processing.Stefan Sperling
Some drivers, such as ral(4), cannot provide the IV required for a replay check because hardware strips the IV before passing the frame to the driver. Which means frames with the RXI_HWDEC flag but without the 'protected' bit set in the frame header must be passed without any further verification and without updating the last-seen packet number. All we can do is hope that these devices perform replay checking correctly. Fixes a regression where some ral(4) devices would fail to receive packets on encrypted networks. Reported and fix confirmed by Hendrik Meyburgh. ok mpi@
2020-05-26Use C99 initializers in 'struct filterops' definitions.Martin Pieuchot
2020-05-26Make cdev_{audio,video}_init() expose a kqfilter handler.Martin Pieuchot
Missed in previous.
2020-05-26Document which lock protect pipex(4) fields.Martin Pieuchot
From Vitaliy Makkoveev.
2020-05-26Kill unecessary `pppx_ifs_lk' lock.Martin Pieuchot
Premature locking is causing more trouble than it is solving issue. In this case the lifetime of descriptors is protected by the KERNEL_LOCK() so using a rwlock for the lookup introduce sleeping points and possible new races without benefit. From Vitaliy Makkoveev.
2020-05-26Add checksum offload again, this time only asking the nic to do checksumsJonathan Matthew
where the network stack indicates they're needed. deraadt@ confirms this version doesn't break nfs over udp ok dlg@
2020-05-26match on TP-Link TL-WN822N-EU v5Jonathan Gray
from Tero Koskinen
2020-05-26regenJonathan Gray
2020-05-26add TP-Link TL-WN822N-EU v5Jonathan Gray
from Tero Koskinen
2020-05-25For large reads from /dev/random, use the arc4random_ctx_*() functionsChristian Weisgerber
instead of hand-rolling the same code to set up a temporary ChaCha instance. tweak/ok semarie@, ok deraadt@
2020-05-25fchmod() will be needed soon.Theo de Raadt
ok kettenis
2020-05-25Revert "Add kqueue_scan_state struct"Visa Hankala
sthen@ has reported that the patch might be causing hangs with X.
2020-05-25that dependency change breaks something else. sigh.Theo de Raadt
2020-05-25make loadrandom() return 0 for success, -1 for failure. While here,Theo de Raadt
relax the fstat() check because the system will have left the file in the right mode. ok visa kettenis
2020-05-25Pass boothowto from bootloader to kernel using .openbsd.bootdata. To makeMark Kettenis
sure that an old bootloader can boot a new kernel and a new bootloader can still boot an old kernel some hackery is needed as old kernels check for an exact size of the openbsd_bootdata struct. tested (with softraid) by kn@ ok stsp@, deraadt@
2020-05-25If either mdrandom() or fwrandom() return 0, set RB_GOODRANDOMTheo de Raadt
ok kettenis
2020-05-25Pass bootblock indicator RB_GOODRANDOM to random_start(). Future workTheo de Raadt
will frantically compensate. ok kettenis
2020-05-25Bootblocks convert RB_GOODRANDOM to -R option, kernel converts it back into ↵Theo de Raadt
howto
2020-05-25Pass boothowto from bootblock to kernelTheo de Raadt
2020-05-25Adjust mdrandom() to also return 0 for success, -1 for failureTheo de Raadt
2020-05-25Adjust fwrandom() to return 0 for sucess, -1 for failureTheo de Raadt
2020-05-25add wsmoused support to efifbJonathan Gray
from John Carmack
2020-05-25Add a comment explaining the interaction between kcovclose() andanton
kcov_exit().
2020-05-25Use <dev/clock_subr.h> in mcclock(4).Visa Hankala
Tested on Yeeloong. Looks good to miod@
2020-05-25Use <dev/clock_subr.h> in mfokclock(4).Visa Hankala
Looks good to miod@
2020-05-25Pass boothowto from the bootloader to the kernel on octeon.Visa Hankala
OK deraadt@
2020-05-25Mix board information into the entropy pool.Visa Hankala
The data are static but they introduce differences between systems. OK deraadt@
2020-05-25regenPatrick Wildt
2020-05-25ThingM blink(1)Patrick Wildt
2009-12-25By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-11-26By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2020-05-25change wsdisplay attribute type from long to uint32_tJonathan Gray
miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
2020-05-25rename wsdisplay alloc_attr() to pack_attr()Jonathan Gray
Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
2020-05-25Kill unused cdev_pc_init().Martin Pieuchot
ok kettenis@, visa@
2020-05-25Unfortunately, breaks UDP NFS under volume, when used on the src machine.Theo de Raadt
backout until resolved.
2020-05-25Add support for write operations to diskstrategy().Theo de Raadt
2020-05-25The dependencies were insufficient.Theo de Raadt