summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-07-26pool debug dance, part deuxTed Unangst
2016-07-26In rsu(4), put code that twiddles HT data in the ic under #ifdef notyet.Stefan Sperling
Some code paths in this driver peek at ic_htcaps and act upon it, so let's play it safe until this driver gets its 11n support enabled on purpose. Spotted while investigating the bug fixed in r1.35.
2016-07-26Remove the restriction that the kernel needs to be loaded at the bottom ofMark Kettenis
physical memory. This makes it possible to boot OpenBSD on platforms that have physical memory start at address 0x00000000 as the EFI bootloader will only attempt to load kernels at address 0x10000000 and above to work around a bug in the u-boot EFI API layer. ok patrick@
2016-07-26Welcome to 6.0-current.Mark Kettenis
ok deraadt@
2016-07-26Unbreak rsu(4) which was broken since r1.32. Reported by Jake Swensen.Stefan Sperling
ok deraadt@
2016-07-26Fix byteswap errors in rtwn(4) and urtwn(4) introduced by me on June 17.Stefan Sperling
Repairs urtwn(4) on macppc. Problem reported by juanfra@. ok millert@ deraadt@
2016-07-25disable tmpfs because it receives zero maintainance.Theo de Raadt
2016-07-25fix revision 1.290 of sys/netinet/ip_carp.c.Sebastian Benoit
diff from jsg@ ok deraadt@, benno@
2016-07-25Make sure closed bpf devices are removed from bpf_d_list to free theMartin Natano
minor number for reuse by the device cloning code. This fixes a panic reported by bluhm@. initial diff from tedu ok deraadt
2016-07-23Previously the uarts attached in order, so that the first attached uartPatrick Wildt
is always the serial console. With device tree enumeration, this order is not given anymore. The serial console might now attach with a different minor and has to be updated, otherwise there will be no further output on the serial. Thus, re-create the i.MX6 console with the correct minor number on attach. ok jsg@, kettenis@
2016-07-23do the pool debug release dance. ok deraadtTed Unangst
2016-07-23The linux kernel treated the "phy-reset-gpio" as active-low regardless of whatMark Kettenis
the device tree says. As a result many device trees encode it as active-high when active-low is needed. For now just override the device tree. ok jsg@, patrick@
2016-07-23Fix a few CPUID emulation issues:Mike Larkin
Don't advertise a hyperthreaded CPU. This doesn't make a lot of sense now as we only provide UP guest support. This, combined with the other CPUID issues fixed, fooled NetBSD's topology enumeration code into thinking we had an unsupportable core/thread/package configuration. Also fixed the unsupported CPUID functions by returning 0 in the return registers instead of leaving whatever trash happened to be there before the call was made.
2016-07-23Dump vcpu state on unknown exit type, and add a diagnostic messageMike Larkin
(including vcpu state dump) on failure to enter due to an incorrect guest state. Added as a debug facility when diagnosing interruptibility state problems seen while testing NetBSD guest VMs.
2016-07-23Ensure some undesirable entry controls are cleared, instead of relyingMike Larkin
on the default settings. Noticed when booting a NetBSD guest VM.
2016-07-22Attach imx(4) on i.mx6 quad plus which appears to be largely compatibleJonathan Gray
with i.mx6 quad but with more memory bandwidth and some graphics tweaks. ok kettenis@
2016-07-22Fallback to the known fec irq number on imx.6 if the fdtJonathan Gray
interrupts-extended property is missing or not the size we expect. Some dtbs implement a workaround for "ERR006687 ENET: Only the ENET wake-up interrupt request can wake the system from Wait mode" suggested by the IMX6DQCE errata document to set an undocumented gpio mux mode and handle the interrupt via gpio. We don't support gpio interrupts yet, hopefully this change is enough to make interrupts work on wandboard and sabre lite again till we do. Discussed with kettenis and patrick, tested on sabre lite by patrick.
2016-07-22Set the vfs_systcl member of the vsfops struct to eopnotsupp. While we checkMark Kettenis
for a null pointer now, all other filesystems fill in the complete table. ok deraadt@, tom@
2016-07-22Revert in_selectsrc() refactoring, it breaks IPv6.Martin Pieuchot
Reported by Heiko on bugs@. ok stsp@, claudio@
2016-07-22Check for errors when deleting routes inside rtable_walk() and abortMartin Pieuchot
the walk if a route cannot be deleted. Prevent an infinite recursion reported by Dimitris Papastamos. ok claudio@
2016-07-22Prevent NULL-pointer call for filesystems that don't provide vfs_sysctlMark Kettenis
in their vfsops. Issue reported by Tim Newsham. ok claudio@, natano@
2016-07-22Fix a double rtfree(9) triggered when IPSEC inserts a more specificMartin Pieuchot
route because of PMTU. otto@ reported the issue and helped me tracking it down during more than one month, he is the man! mikeb@ figured out the bug was in the forwarding path. ok mikeb@, deraadt@, claudio@
2016-07-21Remove a few debugging leftoversMike Belopuhov
2016-07-21Make rtwn(4) and urtwn(4) respect the RTS threshold set by net80211.Stefan Sperling
ok mpi@
2016-07-21set and clear the 10baseT bit in statchgJonathan Gray
ok patrick@
2016-07-20Plug potential leak of device list.Kenneth R Westerback
Problem found by Michael McConville. Tested & ok stsp@
2016-07-20To tune the TCP SYN cache we need more information. Print theAlexander Bluhm
relevant counters with netstat -s -p tcp. OK henning@
2016-07-20Split in6_selectsrc() into a low-level part and a pcb-level part, andVincent Gross
convert in_selectsrc() prototype to match. Ok bluhm@ mpi@.
2016-07-20Disable the beacon filter in iwm(4). This allows beacons to pass through toStefan Sperling
the stack while associated, which in turn makes it possible to keep track of HT protection changes. ok mpi@
2016-07-20Make the iwn(4) LED flash 10 times slower in monitor mode.Stefan Sperling
Makes running monitor mode over extended periods of time much less annoying. ok benno@
2016-07-20In net80211, enable RTS for frames above a particular size (currently 512Stefan Sperling
bytes). This is what other OS have been doing for years. In our stack this feature was present but disabled at compile-time by an #ifdef. This is a low risk change because drivers were already required to use RTS whenever the AP set the USE_PROTECTION flag in ERP elements of its beacons. This change allows for reasonable throughput on loaded 11g networks whereas before they were practically unusable. tests and ok phessler@
2016-07-20Bring iwn_update_htprot() back, so iwn(4) will properly keep trackStefan Sperling
of HT protection changes while associated. HT protection affects behaviour on Tx but is configured along with Rx settings (because Intel likes it that way). And our previous iwn_update_htprot() implementation had a bug where it would accidentally clear bits which enable CCK rates for Rx. The Intel Wireless-N 2200 chip accordingly stopped receiving some frames (most notably broadcast frames) and the link broke down. Also, restore the power-saving level after updating the Rx config (like Linux does), and add some DELAYs for good measure to ensure the firmware has time to process asynchronous commands we send. tested by myself and mlarkin@ ok mlarkin@
2016-07-20Unbreak ural(4), which had been dropping frames on Tx whileStefan Sperling
the IFF_RUNNING flag was set since last November (r1.138). Apparently nobody is using this driver, except for martijn@. Fix tested by martijn@ and myself. ok dlg@
2016-07-20ATI controllers seem to need the same workaround as VIA controllers.Martin Pieuchot
This should hopefully help people reporting errors with SB700. From FreeBSD, ok kettenis@, krw@
2016-07-20Make the size for the syn cache hash array tunable. As we areAlexander Bluhm
swapping between two syn caches for random reseeding anyway, this feature can be added easily. When the cache is empty, there is an opportunity to change the hash size. This allows an admin under SYN flood attack to defend his machine. Suggested by claudio@; OK jung@ claudio@ jmc@
2016-07-19Plug an mbuf leak in the error path of tcp signature in tcp_output().Alexander Bluhm
OK claudio@ henning@
2016-07-19Fix the check supposed to prevent 'ip' and 'ip-stealth' balancing modesMartin Pieuchot
from leaking the multicast address. beck@ found the hard way that this made his second CARP master use a wrong MAC address. This is part of a bigger diff from Florian Riehm who is currently working on a proper solution to fix balancing modes. ok beck@, bluhm@
2016-07-19protect a pf specific function with the correct #if. Fixes ramdisk building.Peter Hessler
(we got lucky before, because the variable that used to be checked was always available) OK bluhm@
2016-07-19NULLify a route pointer after calling rtfree(9).Martin Pieuchot
This should theoretically be a no-op because we're freeing the PCB right after, but it helps us debug a reference count problem found by otto@. ok mikeb@
2016-07-19style: no spaces after # for define/include, ok phessler bennoHenning Brauer
2016-07-19don't hide globals between function prototypes; ok phessler bennoHenning Brauer
2016-07-19remove wrong and misleading comment, ok phesslerHenning Brauer
2016-07-19Revert use of the _SAFE version of SRPL_FOREACH() now that the offendingMartin Pieuchot
function has been fixed. Functions passed to rtable_walk() must return EAGAIN if they delete an entry from the tree, no matter if it is a leaf or not.
2016-07-19Return EAGAIN for every deleted route when detaching an interface.Martin Pieuchot
Previously the code was "too clever" and returned EAGAIN only for cloning route assuming that other deletion did not modify the tree. Analysed by and ok dlg@
2016-07-19In ip6_input() use a shortcut to detect our own address if the pfAlexander Bluhm
state key is linked to a socket inp. OK mpi@ henning@
2016-07-19Use a flag to indicate that a packet has been received on an IPv6Martin Pieuchot
anycast address. This will allow us to split ip6_input() in two parts using a queue in the middle. ok jca@, florian@, bluhm@
2016-07-19instead of messing about with pointer arithmetic, add an empty arrayTed Unangst
to the end of the defer structure. solves sizing and alignment concerns.
2016-07-19virtio_pci: Always allow MSI/MSI-XStefan Fritsch
For virtio devices, ignore the black/white-listing depending on the PCI bridge. This enables MSI-X with qemu's old "82441FX" pci-bridge. Suggested by kettenis@
2016-07-19Remove what appears to be a copy-paste error setting cur_ttbTom Cosgrove
in pmap_free_l1(). from aalm@ - thanks ok patrick@
2016-07-18Kill the rtableid variable in ip6_input(). It does not make senseAlexander Bluhm
to store a field in an extra variable that is only accessed twice. OK mpi@