summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-03-14Allocate statistics command from the heap, pointed out by deraadt@Mike Belopuhov
2016-03-13keep disabled wl_paths for now. the expensiveness impact need to be betterSebastien Marie
considered. ok deraadt@
2016-03-13reenable wl_paths (whitelisted-paths) in pledge(2)Sebastien Marie
2016-03-13pledge: replace #if 0 printf with DNPRINTF macroSebastien Marie
2016-03-13pledge: let wl_paths works well with chrootSebastien Marie
it factorizes path resolution in resolvpath() function, and use it in sys_pledge() and pledge_namei(). please note that wl_paths is still disabled.
2016-03-13Introduce memory ranges to support VMs with >= 4G RAMStefan Kempf
Kernel bits: - When creating a VM, a list of memory ranges has to be specified, similar to the BIOS memory map. This is necessary for VMs with RAM sizes approaching 4G because we'll need PCI MMIO space in the higher parts of the 32 bit address space. vmctl and vmd bits: - Construct appropriate memory ranges to create a VM with a given RAM size - Construct a corresponding BIOS memory map from the memory ranges and update the boot params page accordingly. - Make sure that all variables that represent guest physical addresses match the address width of the target CPU instead of using uint32_t. - Fix some integer promotion glitches that actually restricted VM RAM size to 2G. This changes the VM create ioctl interface, so update your kernel, vmd, and vmctl. ok mlarkin@
2016-03-13In ichiic(4), ignore the SMBALERT# interrupt. This interrupt has beenStefan Sperling
observed to fire for spurious reasons with buggy hardware/bios. It is being ignored by both FreeBSD and Linux as well. Fixes GENERIC kernel boot on ADI RCC-VE with buggy bios versions, where ichiic(4) ended up stealing interrupts from ehci(4), rendering the internal eMMC flash unusable. Also, always ackknowledge all interrupts by writing status bits back to avoid a potential SMBALERT# interrupt storm. with and ok deraadt@ kettenis@ mpi@
2016-03-13i forgot to rename p to ifp0 in vlan_configDavid Gwynne
still no binary change.
2016-03-13corrects on off-by-one error in pledge_namei()Sebastien Marie
- rewrite canonpath() to not require extra byte before shrinking - make canonpath() error not fatal for the caller (proposition from tedu@) ok millert@ tedu@ deraadt@
2016-03-13consistencly name ifnet pointers like we did in carpDavid Gwynne
the vlan interface is ifp, the vlans parent interface is ifp0, the new interface parent is newifp0. requested by mpi@ no binary change
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofKenneth R Westerback
'sc_link'. 'sc_link' is a field in the various device *_softc structures, where the sc_ prefix was for 'softc'. Reduces potential mental confusion. Newer code from down under was already using 'link'. No functional change. Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
2016-03-12Add checks on overlapping IPv6 sockets ownershipVincent Gross
ok mpi@ bluhm@
2016-03-12When unplugging an USB umass stick, the kernel could panic becauseAlexander Bluhm
of a use after free. In sdopen() the scsi link pointer is taken from the scsi disk struct. While the scsi disk memory is refcounted by autoconf, the scsi link may be detached and freed during sleep. The solution is to check wether the disk is dying after every sleep. The SDF_DYING flag is set before scsi bus and scsi disk are detached, so without this flag the link must be valid. input and OK krw@
2016-03-12When vfs_busy() is sleeping, it uses RW_SLEEPFAIL and will fail.Alexander Bluhm
So if vop_generic_revoke() does not unmount because the mount point is busy, this could result in a mount point without a valid device. It is better to check and sleep in a loop to avoid a corrupt mount point. OK natano@ krw@
2016-03-11increase size of oldpids to 128 to prevent mod bias when idx wraps.Ted Unangst
from Michal Mazurek
2016-03-11don't check a stack-allocated array against NULLmmcc
ok mpi@
2016-03-11"if (_3btol(cmd->len) != 0)" is more likely to be a useful test thanKenneth R Westerback
"if (cmd->len) != 0)", as cmd->len is a 3 byte array. Broken since media_blkno accounting was introduced in r1.72 (2007!). Might fix some obscure tape issues around miscounting variable sized blocks. Spotted by mmcc@ and his friend clang.
2016-03-11Move rtwn(4) DMA init code back to the PCI part of the driver.Stefan Sperling
This will make a future merge with urtwn(4) easier. ok mpi@
2016-03-11pledge: define the meaning of passing NULL to one arguments of pledge(2) as "ISebastien Marie
don't want to change the current value" it changes only the `request' argument behaviour when NULL is passed: previously it was traited as "" was passed. with help from jmc@ for man-page OK tb@ on previous version
2016-03-10don't check stack-allocated arrays against NULLmmcc
ok mpi@
2016-03-10Enforce some naming sanity. Stop using 'sc_link' to mean two differentKenneth R Westerback
things by renaming the field 'SLIST_HEAD(, scsi_link) sc_link' to 'sc_link_list' in struct scsibus_softc. Use 'sb' as the short name for scsibus_softc variables. Impetus from & ok bluhm@
2016-03-10Remove the explicit map invalidation, free() is going to overwriteTobias Ulmer
it with junk anyway. ok patrick mpi dlg and tested by Daniel Bolghero
2016-03-10beck@ forgot to commit this with sys/kern/vfs_bio.c r1.100.David Gwynne
> Start some refactoring in here. this gets bufadjust out > of the hibernate path and starts preparing for some other work in here
2016-03-10more pieces of vaxTheo de Raadt
2016-03-10Start some refactoring in here. this gets bufadjust outBob Beck
of the hibernate path and starts preparing for some other work in here
2016-03-09Remove pointless function pointers from urtwn(4) softc. They didn't serveStefan Sperling
any purpose and the code is shorter when calling the functions directly. ok mpi@
2016-03-09Make rtwn(4) check for "unsupported test chip" error during attach again.Stefan Sperling
ok mpi@
2016-03-09Make rtwn(4) stop the chip during DVACT_QUIESCE rather than DVACT_SUSPENDStefan Sperling
because the code that shuts down the firmware tsleep's to avoid system hangs. ok mpi@
2016-03-09Hook up dev/ic/rtwn.c -- should have been part of rtwn(4) split commit.Stefan Sperling
2016-03-09Split the rtwn(4) driver into two layers:Stefan Sperling
One layer which handles PCI support and low-level packet processing. And another layer which handles ioctls, net80211 state transitions, and all communication with the chip. The plan is to eventually merge corresponding code from urtwn(4) in here. ok mpi@
2016-03-09delete dangling vax referenceTheo de Raadt
2016-03-09remove handling of vaxTheo de Raadt
2016-03-09remove vaxismsTheo de Raadt
2016-03-09remove __vax__Theo de Raadt
2016-03-09We are done providing support for the vax.Theo de Raadt
lots of agreement.
2016-03-09Unmask interrupts unconditionnally before calling the generic trap handler.Martin Pieuchot
Reduce differences with amd64. Inputs from mikeb@, ok mlarkin@
2016-03-09Correct some comments and definitions, from Michal Mazurek.Martin Pieuchot
2016-03-09Move db_show_regs() in the only file where it is used and turn it private.Martin Pieuchot
ok mlarkin@
2016-03-09Convert DDB_REGS -> &ddb_regs, inputs and ok naddy@Martin Pieuchot
Put addresses instead of registers inside db_regs[] to match what other archs do and to get rid of db_setf_regs().
2016-03-09Add a comment to the vcpu state enum to remind people there is a matchingMike Larkin
conversion function in vmm.c Increase the size of the pending interrupt field from uint8_t to uint16_t.
2016-03-09Induce an exit in a running vcpu if an interrupt is asserted (pending).Mike Larkin
Needed for ongoing interrupt controller work.
2016-03-09rework how mpw(4) interacts with vlan(4)David Gwynne
previously mpw would walk around our interface hierarchy so it could reinject vlan tags for packets that were received on a stack of vlan interfaces. this got in the way of making vlan mpsafe, but is also unecessary according to how i read RFC 4448 which describes how mpls pseudowires should function. the behaviour is now: - in raw mode mpw(4) acts like a normal ethernet interface it no longer injects a tag from a vlan interface that may be on the same bridge as it, and it allows you to configure ip addresses on the local interface and use them without panicking the kernel. - in tagged mode it will only add tags from vlan interfaces on the same bridge as it, but not any parent/child tags from interfaces on top of that vlan. if the packet did not come from a vlan interface on a bridge it will inject a tag for vlan 0. this will also allow vlan to move forward. ok mpi@ rzalamena@ claudio@
2016-03-08- bridge_localbroadcast() must call pf_pkt_addr_changed()Alexandr Nedvedicky
(makes KASSERT() in pf_test() to go away) Thanks to Mark and Mattieu for quick testing OK mpi@
2016-03-08Change where we note the 'last' pcpu we ran on. This is needed for upcomingMike Larkin
work in revamping the interrupt controller code.
2016-03-08Remove an outdated comment and fix some error case printfs that wereMike Larkin
printing the wrong function name.
2016-03-08additional debug printfsMike Larkin
2016-03-07For rtwn(4) and urtwn(4) inline driver-specific definitions in theirStefan Sperling
respective .c files. ok mpi@
2016-03-07http -> https for IETF/IANA URLs in commentsmmcc
2016-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
ok mpi@ millert@
2016-03-07Make __fd_isset() take a const fd_set * param, to avoid upsetting c++Jeremie Courreges-Anglas
ok zhuk@ deraadt@