summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-09-16Fix uninitalized use of variable.Claudio Jeker
Issue _17 found by Maxime Villard Brainy scanner. OK bluhm@
2015-09-16Fix uninitialized variable found by Maxime Villard's Brainy Code Scanner.Daniel Dickman
ok uebayasi@, mlarkin@
2015-09-15Fix overlapping memcpy found by Maxime Villard's Brainy Code Scanner.Mark Kettenis
2015-09-15regenJasper Lievisse Adriaanse
2015-09-15add fingerprint reader as found the x250 as well as another similarJasper Lievisse Adriaanse
device found while figuring out the chipset. ok jsg@
2015-09-15Fix kpanic I found the hard way while using pcsc-liteDavid Coppa
From Grant Czajkowski <czajkow2 AT illinois DOT edu> OK mpi@
2015-09-15link_addr() is gonePhilip Guenther
ok mpi@
2015-09-15Unbeak boot from GPT partition. Reported by Henrik Friedrichsen.YASUOKA Masahiko
ok krw
2015-09-14unify free(NULL,size) behaviour by allowing passing NULLSebastien Marie
ok millert@ jasper@
2015-09-14Fix more ifmedia64 fallout in the kernel. It's hiding everywhere...Stefan Sperling
2015-09-13intr_barrier(9) for loongson, octeon and sgi.Mark Kettenis
2015-09-13intr_barrier(9) for alpha.Mark Kettenis
2015-09-13Fix double rtfree(9) in non-INET6 kernel.Martin Pieuchot
With and ok claudio@
2015-09-13There's no point in abstracting ifp->if_output() as long as pf_test()Martin Pieuchot
needs to see lo0 in the output path. ok claudio@
2015-09-13if_put() after if_get().Martin Pieuchot
ok dlg@
2015-09-13syncPhilip Guenther
2015-09-13Rename __sysctl syscall to just sysctl, as the userland wrapper is no longerPhilip Guenther
necessary ok deraadt@ jsing@
2015-09-13Put the 12x22 font on alpha and macppc installation kernels, the 8x16 fontMiod Vallat
is really fugly on large displays (tga, vgafb). It's only 10KB more data before compression, which fits in our floppies.
2015-09-13Remove unused and incorrect defines GPT_PARTSPERSEC and GPT_SECOFFSET.Kenneth R Westerback
2015-09-13intr_barrier(9) for hppa.Mark Kettenis
2015-09-13remove deltaTheo de Raadt
2015-09-13Move prototype for spoofgptlabel() from disklabel.h to subr_disk.c.Kenneth R Westerback
It's a helper function for readdoslabel(). Not something called outside of subr_disk.c.
2015-09-13intr_barrier(9) for macppc and socppc.Mark Kettenis
2015-09-13Get the default loopback interface pointer just after doing a routeMartin Pieuchot
lookup to ensure pf_test() is called with the same interface in the input annd output path for local traffic. Fix a regression reported by Heiko Zimmermann on bugs@, thanks! ok mikeb@, claudio@
2015-09-13Rename readgptlabel() to spoofgptlabel() because that's what weKenneth R Westerback
really want it to do. Handle all the actual disklabel reading in readdoslabel(). Makes the code much simpler to understand. ok deraadt@
2015-09-13Locators are long now.Miod Vallat
2015-09-13Needs <sys/systm.h> before <sys/syscall_mi.h> now.Miod Vallat
2015-09-13intr_barrier(9) for i386.Mark Kettenis
2015-09-13Introduce intr_barrier(4), an interface that guarantees that an interruptMark Kettenis
handler that was running has finished. ok miod@, guenther@ (both for the equivalent sparc64 diff)
2015-09-13Introduce intr_barrier(4), an interface that guarantees that an interruptMark Kettenis
handler that was running has finished. ok miod@, guenther@
2015-09-13Adjust printf for the fact that device locators are now long.Mark Kettenis
2015-09-13<sys/systm.h> must be before <sys/syscall_mi.h> now.Miod Vallat
2015-09-13Introduce sched_barrier(9), an interface that acts as a scheduler barrier inMark Kettenis
the sense that it guarantees that the specified CPU went through the scheduler. This also guarantees that interrupt handlers running on that CPU will have finished when sched_barrier() returns. ok miod@, guenther@
2015-09-13queue revarps to softnet so we can defer processing to a context withDavid Gwynne
the kernel lock. "do it" claudio@ mpi@
2015-09-13replace hand rolled refcounts and sleep_setup/finish with refcnts andDavid Gwynne
refcnt_finalize.
2015-09-13replace hand rolled reference counting with refcnts.David Gwynne
2015-09-13Run the interface watchdog timer routine as a task such that we have processMark Kettenis
context. ok mpi@, claudio@
2015-09-13reintroduce mpsafe vlan_input.David Gwynne
the last commit was missing SRPL_INITs of the vlan_tagh buckets, which was in a different tree to the one i committed from. apologise to naddy@ again
2015-09-13tweak ordering slightlyDavid Gwynne
2015-09-13On show the ps/o output and ddb.html blurb once, so that we don't get themPhilip Guenther
after each "mach ddbcpu N" ok miod@ deraadt@
2015-09-13back out mpsafe vlans while i chase down a panic when operationsDavid Gwynne
are done in a certain order. panic found by naddy@
2015-09-12Restore SMBIOS detection in ISA. OK yasuoka@Masao Uebayashi
2015-09-12Call socreate(9) only when we have a destination ip and port.Florian Obser
Call sobind(9) only when we have a source ip. With this we can treat sc->so != NULL as a flag if the interface is in state IFF_RUNNING. Input & OK bluhm@, OK benno@
2015-09-12Add missing free() in efid_io(). Found by jsg.YASUOKA Masahiko
ok kettenis jsg
2015-09-12consistently name the ifnet * that refers to the parent interfaceDavid Gwynne
ifp0, and the ifnet * that refers to the carp interface ifp. this makes it easier for me to read. it's probably not the right name for ifp0, but at least it's consistent. ok sthen@ bluhm@ mpi@ claudio@
2015-09-12Now that rtrequest1(9) properly sets RTF_UP for newly added route,Martin Pieuchot
stop passing it in every rt_ifa_add(9) calls. ok claudio@
2015-09-12make vlan_input mpsafe by using srp lists in the vlan tag hash buckets.David Gwynne
ok mpi@ claudio@
2015-09-12Stop overwriting the rt_ifp pointer of RTF_LOCAL routes with lo0ifp.Martin Pieuchot
Use instead the RTF_LOCAL flag to loop local traffic back to the corresponding protocol queue. With this change rt_ifp is now always the same as rt_ifa->ifa_ifp. ok claudio@
2015-09-12introduce SRPs to the interface index maps to make if_get() mpsafe.David Gwynne
each index in the ifidx map is now an SRP that points at each interfaces struct ifnet. because the map needs to be grown at run time as interfaces are added to the system, we now use an SRP to gain access to the map. if_get enters the idx map and follows it to the ifnet pointer. if an interface exists at that index it gets adds a refcount before leaving the ifp SRP. modifications to the map pointer and the interface pointers are serialised by the kernel lock. ok mpi@ claudio@
2015-09-12Enable some diagnostics for interrupt-safe maps that are already happening forMark Kettenis
normal maps. ok beck@, miod@, guenther@