summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-12-10Add support for the internal PHY on the Allwinner H3. From Stephen Graf.Mark Kettenis
2017-12-10Fix MDIO_CMD register bit definitions. From Stepen Graf.Mark Kettenis
2017-12-10Move SB_SPLICE, SB_WAIT and SB_SEL to `sb_flags', serialized by solock().Martin Pieuchot
SB_KNOTE remains the only bit set on `sb_flagsintr' as it is set/unset in contexts related to kqueue(2) where we'd like to avoid grabbing solock(). While here add some KERNEL_LOCK()/UNLOCK() dances around selwakeup() and csignal() to mark which remaining functions need to be addressed in the socket layer. ok visa@, bluhm@
2017-12-10Remove outdated comment and trailing spaces.Martin Pieuchot
From kshe59@zoho.eu
2017-12-10Enable the phy-supply regulator if present and use the phy id specifiedJonathan Gray
in the device tree. Patch from Artturi Alm who tested on a Miniand Hackberry.
2017-12-09Add sizes for free() in the AMD PowerNow! K8 driver.Frederic Cambus
OK deraadt@, sthen@, visa@
2017-12-09No need for the txb_used flag anymoreMike Belopuhov
2017-12-09More precision in pledge sysctl reportTheo de Raadt
2017-12-09Add a #define for the name of the .openbsd.randomdata section.Theo de Raadt
ok guenther
2017-12-08Pullup the mbuf before accessing the version field in the IP header.Alexander Bluhm
Fix the pullup length of the shim header in mpls_do_error(). issue reported by Maxime Villard; OK deraadt@ claudio@
2017-12-08Use m_freem() in error case. Found by Maxime VillardClaudio Jeker
OK bluhm@
2017-12-08The adjttl functions use m_pullup(). In some cases m_pullup() can returnClaudio Jeker
a new mbuf chain and this chain needs to be returned to the caller else a use after free may happen. Issue reported by Maxime Villard OK bluhm@ deraadt@
2017-12-08mpls_shim_pop() can return NULL. Check it else we end up dereferencing NULL.Claudio Jeker
Issue reported by Maxime Villard OK bluhm@ deraadt@
2017-12-08Add support for background scanning to net80211 and iwm(4).Stefan Sperling
The iwm(4) driver will now roam between access points which share an SSID. Use 'ifconfig iwm0 debug' and 'tail -f /var/log/messages' to watch it do so. Tested by several people in various iterations. As usual, let me know if you run into issues. ok phessler deraadt
2017-12-08The per-interface mpls flag should also also be tested on input beforeTheo de Raadt
proceeding, as described in ifconfig documentation. Discussion with claudio. Related to a report from maxime. ok claudio bluhm
2017-12-08Make iwm(4) restore the ic_bss channel after tweaking this channel as partStefan Sperling
of passing the frame to ieee80211_input(). Fixes a race where auth frames would be sent on the wrong channel during association. Problem reported by florian@ ok deraadt@
2017-12-08Make sure we don't match (and attach) more than the maximum number ofMark Kettenis
supported CPUs.
2017-12-08Disable SMAP temporarily to display userland traces.Martin Pieuchot
ok visa@, deraadt@, mlarkin@, jasper@
2017-12-07correct indentationTheo de Raadt
2017-12-07Initialize tcp_secret in tcp_initMike Belopuhov
The initialization of a secret SHA256 context for generating TCP initial sequence numbers is moved out of tcp_set_iss_tsm used to set up ISN for new connections and into tcp_init, sparing the need for a global flag. OK deraadt, visa, mpi
2017-12-07In iwm(4), keep scanning if net80211 asks for a SCAN->SCAN transitionStefan Sperling
and the firmware is no longer busy scanning. Fixes 'ifconfig iwm0 scan' returning no results after resume far away from the currently configured AP. ok phessler@
2017-12-07Make iwm_newstate() recover from state transition errors.Stefan Sperling
On error, we now schedule the init task which will whack the interface when it gets to run, which prevents the driver from stalling in such situations. ok phessler@
2017-12-07reorder some port numbers, no functional change.Mike Larkin
2017-12-06Update inaccurate comment: i386_has_xcrypt => amd64_has_xcrypt.Frederic Cambus
2017-12-06Implement support for using interrupt cookies in vbus(4) and vpci(4) asMark Kettenis
introduced in version 3.0 of the Interrupt APIs group. This makes it possible boot OpenBSD on SPARC T7/M7 hardware (although there still may be issues with the onboard mpii(4) controller).
2017-12-05regenMark Kettenis
2017-12-05Add SPARC-M7 PCIe; rename existing SPARC PCIe entries.Mark Kettenis
2017-12-05Handle 64-bit-address Memory Space.Mark Kettenis
2017-12-05Show board ID and revision in dmesg to ease the identificationVisa Hankala
of system model. The early boot code already prints them, but that output is not buffered and tends to be left out from dmesg submissions.
2017-12-05Drop cn30xxpow_intr_establish(), cn30xxpow_intr() and some otherVisa Hankala
unused code. POW interrupts are now handled in if_cnmac.c.
2017-12-04Sadly the firmware on SPARC T7 machines omits the executable bit on mappingsMark Kettenis
that contain code, just like some sun4u machines. So add it for sun4v as well when entering the mappings into the kernel pmap.
2017-12-04Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).Martin Pieuchot
Missed in previous, found by deraadt@, ok visa@
2017-12-04RFC 4861 requires that all neighbor discovery packets have 255 inAlexander Bluhm
their IPv6 header hop limit field. Let pf drop neighbor solicitation, neighbor advertisement, router solicitation, router advertisement, and redirect ICMP6 packets that do not comply. This enforces that bogus packets cannot be routed when pf is enabled. OK mpi@ sashan@ benno@
2017-12-04add the alps touchpad that can be found in the ideapad 710sRobert Nagy
ok mpi@
2017-12-04Make divert lookup similar for all socket types. If PF_TAG_DIVERTEDAlexander Bluhm
is set, pf_find_divert() cannot fail so put an assert there. Explicitly check all possible divert types, panic in the default case. For raw sockets call pf_find_divert() before of the socket loop. Divert reply should not match on TCP or UDP listen sockets. OK sashan@ visa@
2017-12-04Change __mp_lock_held() to work with an arbitrary CPU info structure andMartin Pieuchot
extend ddb(4) "ps /o" output to print which CPU is currently holding the KERNEL_LOCK(). Tested by dhill@, ok visa@
2017-12-04Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).Martin Pieuchot
ok visa@
2017-12-03Enable bgw(4).Mark Kettenis
2017-12-03Enumerate all i2c devices on the bus. Mark their nodes as attached evenMark Kettenis
if we didn't attach a device driver to avoid enumerating them again in the acpi device tree walk. ok deraadt@
2017-12-03Rename ci_number to ci_cpuid to match other archs.Martin Pieuchot
ok visa@, kettenis@, deraadt@
2017-12-01Add quotes around the name of (unconfigured) devices like we do for otherMark Kettenis
iic(4) controllers. ok jcs@
2017-12-01Fix white spaces and shorten long line.Alexander Bluhm
2017-12-01Simplify the reverse PCB lookup logic. The PF_TAG_TRANSLATE_LOCALHOSTAlexander Bluhm
security check prevents that the user accidentally configures redirect where a divert-to would be appropriate. Instead of spreading the logic into tcp and udp input, check the flag during PCB listen lookup. This also reduces parameters of in_pcblookup_listen(). OK visa@
2017-11-30Fix the IPL and flags of the MP-safe crypto taskq. Now a sane IPLVisa Hankala
is passed to the mutex implementation, and the queue actually runs without the kernel lock. Tested by dhill@ OK mikeb@, dhill@, kettenis@
2017-11-30Fix typos in comments.Nayden Markatchev
OK florian@
2017-11-30Add bgw(4), a driver for a family of Bosch acceleration sensors.Mark Kettenis
ok deraadt@, mlarkin@
2017-11-30vn_open(9) does not pass the open(2) flags to VOP_CREATE(9) so we can'thelg
support FBT_CREATE. Fall back to FBT_MKNOD + FBT_OPEN so that a valid sequence of FUSE messages is sent to the file system when creating files. input from mpi@, otto@
2017-11-30__MAP_NOFAULT doesn't make sense with anon mappings, so return EINVAL ifPhilip Guenther
that is attempted. Minor cleanups: - Eliminate some always false and always true tests against MAP_ANON - We treat anon mappings with neither MAP_{SHARED,PRIVATE} as MAP_PRIVATE so explicitly indicate that ok kettenis@ beck@
2017-11-30Per https://patchwork.kernel.org/patch/5838821/, the documented check of ACPIPhilip Guenther
mwait info against CPUID is wrong; loosen the test per Intel's suggestion. While here, fix the wrapping of dmesg lines when reporting bogus C-state info. ok mlarkin@ kettenis@ (who pointed out the email from Intel)
2017-11-29Add support for GPIO-signaled events.Mark Kettenis
ok mlarkin@