Displaying 1 50 of 279,114 commits (0.017s)

FreeBSD — head/sys/dev/acpica acpi.c acpivar.h

Refactor out the _PXM -> VM domain lookup done in ACPI, in preparation for
its use in upcoming code.

This is inspired by something in jhb's NUMA IRQ allocation patchset.

However, the tricky bit here is that the PXM lookup for a node may
fail, requiring a lookup on the parent node.  So if it doesn't
exist, don't fail - just go up to the parent.  Only error out of the
lookup is the ACPI lookup returns an error.

Sponsored by:        Norse Corp, Inc.

FreeBSD — head/tools/tools/netmap pkt-gen.c

Update pkt-gen to optionally use randomised source/destination
IPv4 addresses/ports.

When doing traffic testing of actual code that /does/ things to the
packet (rather than say, 'bridge.c'), it's typically a good idea to
use a variety of cache-busting and flow-tracking-busting packet
spreads.  The pkt-gen method of testing an IP range was to walk
it linearly - which is fine, but not useful enough.

This can be used to completely randomize the source/destination
addresses (eg to test out flow-tracking-busting) and to keep the
destination fixed whilst randomising the source (eg to test out
what a DDoS may look like.)


* Intel ixgbe 10G (82599) netmap

Differential Revision:        https://reviews.freebsd.org/D2309
MFC after:        2 weeks
Sponsored by:        Norse Corp, Inc.
Delta File
+46 -25 head/tools/tools/netmap/pkt-gen.c
+46 -25 1 file

FreeBSD — head/share/man/man4 run.4, head/sys/dev/usb usbdevs

Add new USB ID.

PR:        199522

FreeBSD — user/jceel/soc2014_evdev/head/sys/dev/evdev cdev.c

To conform with Linux implementation, return ENOENT from EVIOCGPHYS
and EVIOCGUNIQ ioctl if device is backed by uinput.

FreeBSD — stable/10/lib/libc/gen wordexp.c

MFC r280919: wordexp: Explicitly pass along IFS.

Per Austin group issue #884, sh should not import IFS from the environment
but always set it to $' \t\n'. For wordexp(), however, it is documented and
useful for it to use IFS from the environment.

Since sh currently imports IFS from the environment, this change has no
functional effect.
Delta File
+4 -1 stable/10/lib/libc/gen/wordexp.c
+4 -1 1 file

FreeBSD — stable/10/tools/regression/lib/libc/gen test-wordexp.c

MFC r280830: wordexp(): Add testcase for non-default IFS in environment.

The non-default IFS is expected to be used.

FreeBSD — stable/10/lib/libc/gen fts.c

MFC r281082: fts: Don't return FTS_SLNONE if it's not a symlink (if race).

When following symlinks, fts returned FTS_SLNONE when fstatat(flag=0)
failed, but a subsequent fstatat(flag=AT_SYMLINK_NOFOLLOW) succeeded. This
incorrectly triggered if a filename existed to be read from the directory,
was deleted before the fstatat(flag=0) and created again after the

Fix this by only returning FTS_SLNONE if the result from
fstatat(flag=AT_SYMLINK_NOFOLLOW) is actually a symlink. If it is not a
symlink, treat it as if fstatat(flag=0) succeeded.

PR:                196724
Delta File
+6 -5 stable/10/lib/libc/gen/fts.c
+6 -5 1 file

FreeBSD — head/sbin/ipfw nat.c

Fix use-after-free.

Reported by:        Coverity Scan, pfg
CID:                1245747
Delta File
+2 -3 head/sbin/ipfw/nat.c
+2 -3 1 file

FreeBSD — user/jceel/soc2014_evdev/head/sys/dev/evdev evdev.c evdev.h

Add futher checks to ensure that supported event types array won't
get overwritten by provider.

FreeBSD — head/sys/fs/nfsclient nfs_clvfsops.c

Change wcommitsize default from one empirical value to another.

The new value is more predictable with growing RAM size:

        hibufspace maxvnodes      old      new
  256MB   32980992     15800  2198732  2097152
    2GB   94027776    107677   878764  4194304
  256MB   32980992     15800  2198732  2097152
    1GB  114114560     68062  1678155  4194304
    4GB  217055232    111807  1955452  4194304
   16GB 1717846016    337308  5097465 16777216
   64GB 1734918144   1164427  1490479 16777216
  256GB 1734918144   4426453   391983 16777216

Reviewed by:        rmacklem
MFC after:        2 weeks

FreeBSD — user/jceel/soc2014_evdev/head/sys/dev/evdev evdev.c uinput.c

Add event checks to evdev_push_event() to prevent overwriting event
state arrays by potentially malicious uinput provider.

FreeBSD — head/usr.sbin/inetd inetd.c

identd: restore memcpy
        I should not be committing at 2:30am....

Reported by:        pluknet
Delta File
+2 -0 head/usr.sbin/inetd/inetd.c
+2 -0 1 file

FreeBSD — head/usr.sbin/inetd inetd.c

identd: also zero se_rpc_highvers

Reported by:        pluknet
Delta File
+2 -3 head/usr.sbin/inetd/inetd.c
+2 -3 1 file

FreeBSD — head/usr.sbin/inetd inetd.c

identd: remove redundant zeroing
        se_rpc_lowvers was set to 0 twice, so remove one of them
        I can not find any other variable which they may have been a typo of.

Reported by:        gcc5.1
Delta File
+1 -2 head/usr.sbin/inetd/inetd.c
+1 -2 1 file

FreeBSD — head/usr.sbin/tzsetup tzsetup.c

tzsetup: remove set but unused variable
        - leave a comment explaining which variable it used to be

Reported by:        gcc5.1
Delta File
+2 -2 head/usr.sbin/tzsetup/tzsetup.c
+2 -2 1 file

FreeBSD — stable/10/sys/dev/acpica acpivar.h

MFC r281462:
Define capabilities bits from the revision 007 of the document 302223.

FreeBSD — head/usr.sbin/config main.c

config:        remove set but unchecked variable
        reported by: gcc5.1
Delta File
+2 -2 head/usr.sbin/config/main.c
+2 -2 1 file

FreeBSD — stable/10/share/man/man4 icmp.4

MFC r280688 (by ru):

Corrected descriptions of net.inet.icmp.icmplim and icmplim_output.
Delta File
+3 -5 stable/10/share/man/man4/icmp.4
+3 -5 1 file

FreeBSD — stable/10/lib/libc/sys mount.2

MFC r274933 (by bapt), r281470:

r274933 - Ta is only allowed with Bl -column not in Bl -item
r281470 - Remove obsolete bits about maximum number of file systems.
Delta File
+2 -7 stable/10/lib/libc/sys/mount.2
+2 -7 1 file

FreeBSD — head/sys/compat/linux linux_file.c

Add back fdrop() missed in r281726.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head README

README: changes and fixups
        Two orthogonal goals:
        - try to make README look a little nicer on phabricator by using
          Remarkup syntax for commands (using `` instead of using a closing ')
        - try to make README look a little nicer on github.

        - Don't encourage `make world` when the handbook specifies otherwise
        - Change language around documentation to be a bit clearer

MFC After:        2 weeks
Delta File
+12 -17 head/README
+12 -17 1 file

FreeBSD — head/sys/compat/linux linux_file.c

Optimize the O_NOCTTY handling hack in linux_common_open().

Differential Revision:        https://reviews.freebsd.org/D2323
Reviewed by:        kib@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+27 -28 head/sys/compat/linux/linux_file.c
+27 -28 1 file

FreeBSD — head/sys/fs/nfs nfs_commonport.c, head/sys/fs/nfsclient nfs_clvfsops.c

Replace "new NFS" with just "NFS" in some sysctl description strings.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/usr.bin/rpcgen rpc_sample.c

rpcgen: fix use use of strcmp
        strcmp only guarantee that it will return at least 1 if the string B
        is greater than that of string A.
Delta File
+1 -1 head/usr.bin/rpcgen/rpc_sample.c
+1 -1 1 file

FreeBSD — head/usr.bin/calendar io.c

calendar: remove useless check
        lineline checked for 0 in the while loop condition.  There is no need to
        check for it additionally in the body.

CID:        1288959
MFC After:        1 week
Delta File
+0 -3 head/usr.bin/calendar/io.c
+0 -3 1 file

FreeBSD — projects/em_mq/sys/dev/e1000 if_em.c

No need to read the TXDCTL register if we are going to override all of its

Submitted by:        Kevin Bowling <kevin.bowling at kev009.com>

FreeBSD — head/sys/sys pmc.h

Fix the build.  Commit the last part of e500 PMC.

Pointy hat to:        jhibbits
Delta File
+3 -0 head/sys/sys/pmc.h
+3 -0 1 file

FreeBSD — head/sys/vm device_pager.c

Eliminate an unused variable.

MFC after:        1 week
Delta File
+0 -2 head/sys/vm/device_pager.c
+0 -2 1 file

FreeBSD — head/bin/ed glbl.c

bin/ed: use correct type in multiplication
        The result is line_t** so the multiplication should be size *

MFC After:        1 month
Delta File
+1 -1 head/bin/ed/glbl.c
+1 -1 1 file

FreeBSD — head/bin/sh sh.1 trap.c, head/bin/sh/tests/builtins trap16.0 trap15.0

sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n...'.

The parser considered 'trap exit INT' to reset the default for both EXIT and
INT. This beahvior is not POSIX compliant. This was avoided if a value was
specified for 'exit', but then disallows exiting with the signal received. A
possible workaround is using ' exit'.

However POSIX does allow this type of behavior if the parameters are all
integers. Fix the handling for this and clarify its support in the manpage
since it is specifically allowed by POSIX.

Differential Revision:        https://reviews.freebsd.org/D2325
Reviewed by:        jilles
MFC after:        2 weeks

FreeBSD — projects/em_mq/sys/dev/e1000 if_em.c

Acquire tx lock when attempting to insert into the buf ring.  An rxeof can
initiate a transmit and will have the same address of an mbuf as an already
inserted entry. Attempt to not do that by only allowing one thread to insert
into the tx buf ring per queue.

Add queue information in a clearer output for the queue debug function.

FreeBSD — head/share/man/man5 src.conf.5

Delta File
+1 -4 head/share/man/man5/src.conf.5
+1 -4 1 file

FreeBSD — head/sys/kern systrace_args.c init_sysent.c, head/sys/sys sysproto.h syscall.mk


FreeBSD — head/lib/libc Makefile, head/lib/libc/amd64/sys Makefile.inc

The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and
pwrite(2) syscalls are wrapped to provide compatibility with pre-7.x
kernels which required padding before the off_t parameter.  The
fcntl(2) contains compatibility code to handle kernels before the
struct flock was changed during the 8.x CURRENT development.  The
shims were reasonable to allow easier revert to the older kernel at
that time.

Now, two or three major releases later, shims do not serve any
purpose.  Such old kernels cannot handle current libc, so revert the
compatibility code.

Make padded syscalls support conditional under the COMPAT6 config
option.  For COMPAT32, the syscalls were under COMPAT6 already.

Remove WITHOUT_SYSCALL_COMPAT build option, which only purpose was to
(partially) disable the removed shims.

Reviewed by:        jhb, imp (previous versions)
Discussed with:        peter
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week

FreeBSD — head/lib/libpmc libpmc.c, head/sys/conf files.powerpc

Implement hwpmc(4) for Freescale e500 core.

This supports e500v1, e500v2, and e500mc. Tested only on e500v2, but the
performance counters are identical across all, with e500mc having some
additional events.

Relnotes:        Yes

FreeBSD — head/lib/libc/gen waitid.c, head/lib/libc/include libc_private.h

Make wait6(2), waitid(3) and ppoll(2) cancellation points.  The
waitid() function is required to be cancellable by the standard.  The
wait6() and ppoll() follow the other syscalls in their groups.

Reviewed by:        jhb, jilles (previous versions)
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week

FreeBSD — stable/10/lib/libc/gen fts.c

MFC r260571: fts: Stat things relative to the directory fd, if possible.

As a result, the kernel needs to process shorter pathnames if fts is not
changing directories (if fts follows symlinks (-L option to utilities), fts
cannot open "." or FTS_NOCHDIR was specified).

Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the
stat stage but later (opendir or application fts_accpath) or not at all.
Delta File
+19 -12 stable/10/lib/libc/gen/fts.c
+19 -12 1 file

FreeBSD — head/sys/x86/include acpica_machdep.h

Revert unrelated chunk from the r281707.

MFC after:        2 weeks

FreeBSD — stable/10/sys/dev/atkbdc psm.c

MFC r281441:
  Add support for controlling the trackpoint when Synaptics is enabled.
Delta File
+116 -24 stable/10/sys/dev/atkbdc/psm.c
+116 -24 1 file

FreeBSD — stable/10/sys/dev/atkbdc psm.c, stable/10/sys/sys mouse.h

MFC r281440:

  Improve Synaptics support for newer touchpads.

  Enable two finger scrolling by default and disable the edge scrolling if
  the touchpad has no physical zone for it.  Disable directional scrolling
  by default to avoid using extended buttons as scroll buttons.

  Add support for ClickPad.  On Lenovo laptops, this is the button
  reported when one presses the touchpad.

  While there, fix a problem where the extended buttons were not reporting
  the button release event correctly: we need to save the state of the
  buttons and report it to sysmouse until we receive a packet from the
  touchpad indicating the button has been released.  This makes it
  possible to use an extended button to resize a window.  On Lenovo
  laptops, the major buttons are actually reported as extended buttons.

FreeBSD — head/sys/amd64/amd64 pmap.c, head/sys/i386/i386 pmap.c apic_vector.s

Remove lazy pmap switch code from i386.  Naive benchmark with md(4)
shows no difference with the code removed.

On both amd64 and i386, assert that a released pmap is not active.

Proposed and reviewed by:        alc
Discussed with:        Svatopluk Kraus <onwahe at gmail.com>, peter
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks

FreeBSD — stable/10/sys/dev/netmap netmap.c

MFC r281406:
  netmap: improve the netmap attach message on FreeBSD.
Delta File
+6 -0 stable/10/sys/dev/netmap/netmap.c
+6 -0 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace dtrace.1, head/share/man/man4 dtrace-tcp.4 dtrace-ip.4

Add manual pages for the io, ip, proc, sched, tcp and udp DTrace providers.
The format of these pages is somewhat experimental, so they may be subject
to further tweaking.

Differential Revision:        https://reviews.freebsd.org/D2170
Reviewed by:        bcr, rpaulo
MFC after:        2 weeks

FreeBSD — head/sys/dev/atkbdc psm.c

Synaptics: don't report the middle button when clickPad is used.

On trackpads that had support for both, we were sending two button
events when the trackpad was pressed.

Tested by:        Jakob Alvermark <jakob at alvermark.net>
MFC after:        1 week
Delta File
+2 -1 head/sys/dev/atkbdc/psm.c
+2 -1 1 file

FreeBSD — head/sys/conf files

Complete r281670, unlist removed files.

Sponsored by:        The FreeBSD Foundation
Delta File
+0 -2 head/sys/conf/files
+0 -2 1 file

FreeBSD — head/sys/kern kern_synch.c

Remove unimplemented sched provider probes.

They were added for compatibility with the sched provider in Solaris and
illumos, but our sched provider is already incompatible since it uses native
types, so there isn't much point in keeping them around.

Differential Revision:        https://reviews.freebsd.org/D2167
Reviewed by:        rpaulo
Delta File
+0 -11 head/sys/kern/kern_synch.c
+0 -11 1 file

FreeBSD — head/share/man/man9 SDT.9

SDT(9): add a section on SDT providers, mentioning the "sdt" provider.
Add examples demonstrating how one can list available providers and the
DTrace probes provided by a provider.

Differential Revision:        https://reviews.freebsd.org/D2166
Reviewed by:        rpaulo
MFC after:        2 weeks
Delta File
+31 -1 head/share/man/man9/SDT.9
+31 -1 1 file

FreeBSD — head/usr.sbin/bhyve block_if.c pci_virtio_block.c

Workaround bhyve virtual disks operation on top of GEOM providers.

GEOM does not support scatter/gather lists in its I/Os.  Such requests
are cut in pieces by physio(), that may be problematic, if those pieces
are not multiple of provider's sector size.  If such case is detected,
move the data through temporary sequential buffer.

MFC after:        2 weeks

FreeBSD — head/usr.sbin/mountd mountd.c

No need to delete export from filesystems which are not exported.
Delta File
+6 -0 head/usr.sbin/mountd/mountd.c
+6 -0 1 file

FreeBSD — head/sys/dev/virtio/block virtio_blk.c

Do not report stripe size if it is equal to sector size.

MFC after:        1 week