Displaying 1 50 of 245,322 commits (0.020s)

PC-BSD — sbin/devd devd.cc

Fix memory leaks by freeing XML parser instance in two places

(cherry picked from commit a3c23dc5b6e587064ae54d58225d3aaa19b94a35)
Delta File
+6 -1 sbin/devd/devd.cc
+6 -1 1 file

PC-BSD — sbin/devd devd.cc

Fix memory leaks by freeing XML parser instance in two places
Delta File
+6 -1 sbin/devd/devd.cc
+6 -1 1 file

PC-BSD — usr.bin/sed process.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ pfg - c912a7ae - 2016-06-28 03:11:07
MFC r301138:
sed(1): convert sed to use REG_STARTEND more explicitly.

This is a followup to previous r302228, which only merged the
incomplete r300684 causing a regression.

Reported by:        mi
PR:                209387
Taken from:     openbsd-tech (Martijn van Duren)
Delta File
+6 -5 usr.bin/sed/process.c
+6 -5 1 file

PC-BSD — sys/vm vm_meter.c vm_object.h

MFC r302063:
Avoid the active object marking for vm.vmtotal sysctl.
Delta File
+37 -45 sys/vm/vm_meter.c
+0 -1 sys/vm/vm_object.h
+37 -46 2 files

PC-BSD — sys/dev/filemon filemon_wrapper.c filemon.c

MFC r300809,r300890,r300891:

  r300809:
    filemon exec: Use imgp->execpath rather than vn_fullpath(9).
  r300890:
    exec: Cease tracing if credentials will change with the new image.
  r300891:
    Write to the log using the tracer's credentials.

PC-BSD — sys/kern kern_exec.c

MFC r300793:

  exec: Provide execpath in imgp for the process_exec hook.
Delta File
+16 -8 sys/kern/kern_exec.c
+16 -8 1 file

PC-BSD — sys/kern kern_exec.c, sys/sys imgact.h

MFC r300792,r300851,r301580:

  r300792:
    exec: Add credential change information into imgp for process_exec hook.
  r300851:
    exec: get rid of one vnode lock/unlock pair in do_execve
  r301580:
    Old process credentials for setuid execve must not be dereferenced when the
    process credentials were not changed.  This can happen if an error occured
    trying to activate the setuid binary.  And on error, if new credentials
    were not yet assigned, they must be freed to not create the leak.
Delta File
+133 -125 sys/kern/kern_exec.c
+4 -0 sys/sys/imgact.h
+137 -125 2 files

PC-BSD — sys/cam/ctl ctl_backend_block.c, sys/compat/linux linux_dtrace.h

MFC r292384:

  Fix style issues around existing SDT probes.

  ** Changes to sys/netinet/in_kdtrace.c and sys/netinet/in_kdtrace.h skipped.

PC-BSD — sys/kern kern_lockf.c bus_if.m

MFC r298819:

  sys/kern: spelling fixes in comments.
Delta File
+10 -10 sys/kern/kern_lockf.c
+4 -4 sys/kern/bus_if.m
+4 -4 sys/kern/vfs_subr.c
+3 -3 sys/kern/uipc_socket.c
+3 -3 sys/kern/kern_lock.c
+3 -3 sys/kern/kern_descrip.c
+44 -44 37 files not shown
+71 -71 43 files

PC-BSD — sys/kern kern_exec.c imgact_elf.c, sys/net rtsock.c

MFC r297391:

  Remove some NULL checks for M_WAITOK allocations.

PC-BSD — sys/kern kern_exec.c

MFC r285513:

  exec: textvp -> oldtextvp; binvp -> newtextvp
Delta File
+15 -15 sys/kern/kern_exec.c
+15 -15 1 file

PC-BSD — sys/kern kern_exec.c

MFC r285512:

  exec plug a redundant vref + vrele of the image vnode
Delta File
+6 -8 sys/kern/kern_exec.c
+6 -8 1 file

PC-BSD — sys/kern kern_exec.c

MFC r273351:

  Plug unnecessary binvp NULL initialization and test.
Delta File
+3 -3 sys/kern/kern_exec.c
+3 -3 1 file

PC-BSD — sys/compat/linux linux_misc.c linux_uid16.c, sys/kern kern_prot.c init_main.c

MFC r280130:

  cred: add proc_set_cred helper

PC-BSD — sys/sys param.h, usr.bin/sed process.c

sed(1): convert sed to use REG_STARTEND more explicitly.

Summarizing the findings in the OpenBSD list:

This solves a reproduceable issue with very recent Mesa where REG_NOTBOL
combined with a match at the begin of the string causes our regex library
to treat the word as not begin of word.

Bump __FreeBSD_version: JIC we hit the issue in recent Mesa ports.

PR:                209352, 209387 (exp-run)
Taken from:     openbsd-tech (Martijn van Duren)
MFC after:        1 month
Delta File
+22 -16 usr.bin/sed/process.c
+1 -1 sys/sys/param.h
+23 -17 2 files

PC-BSD — sys/security/audit audit_syscalls.c

MFC r280121:

  audit: fix cred assignment when A_SETPMASK is used

PC-BSD — sys/kern kern_exec.c

MFC r296285:

  Correct a comment.
Delta File
+1 -1 sys/kern/kern_exec.c
+1 -1 1 file

PC-BSD — sys/dev/mps mps_sas.c mps_user.c

MFC r302031

- No log bit in IOCStatus and endian-safe changes.

Use MPI2_IOCSTATUS_MASK when checking IOCStatus to mask off the log bit, and
make a few more things endian-safe.

- Fix possible use of invalid pointer.

It was possible to use an invalid pointer to get the target ID value. To fix
this, initialize a local Target ID variable to an invalid value and change that
variable to a valid value only if the pointer to the Target ID is not NULL.

- No need to set the MPSSAS_SHUTDOWN flag because it's never used.

- done_ccb pointer can be used if it is NULL.

To prevent this, move check for done_ccb == NULL to before done_ccb is used in
mpssas_stop_unit_done().

- Disks can go missing until a reboot is done in some cases.

This is due to the DevHandle not being released, which causes the Firmware to
not allow that disk to be re-added.

Approved by:        ken, scottl, ambrisko (mentors)

PC-BSD — sys/conf files.i386 files.amd64, sys/dev/hyperv/vmbus hv_channel_mgmt.c vmbus.c

The upstream problem was fixed (thanks, Sepharosa) so now we can go back
to being merged with upstream stable/10

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ Jordan Hubbard - 85462dfa - 2016-06-27 01:35:06
Revert "Revert "MFC 301483,301484,301487,301488,301583,301588""

This reverts commit 34870c0199413e56541123e2c7629870fbc3183b.

PC-BSD — sys/conf files.amd64 files.i386, sys/modules/hyperv/vmbus Makefile

Revert "Revert "MFC 301113""

This reverts commit ecf3273f2b8ef53e9c7bdc2732c439e4df8d71c6.

PC-BSD — sys/dev/hyperv/include hyperv.h, sys/dev/hyperv/utilities hv_kvp.c

Revert "Revert "MFC 301017,301018,301019,301020,301021,301022,301106""

This reverts commit e80ae1b3ece4375ed596390b76cc553feb26f367.

PC-BSD — sys/amd64/include apicvar.h, sys/dev/hyperv/vmbus hv_vmbus_drv_freebsd.c vmbus_var.h

Revert "Revert "MFC 301015""

This reverts commit fd4053cd7db00074d1b14286dccf2d33fb0490c9.

PC-BSD — sys/dev/hyperv/vmbus vmbus.c

hyperv/vmbus: Fix mismerge of r301015

Submitted by:        Oliver Pinter <oliver.pinter hardenedbsd org>
Sponsored by:        Microsoft OSTC
Delta File
+2 -2 sys/dev/hyperv/vmbus/vmbus.c
+2 -2 1 file

PC-BSD — contrib/lib9p request.c utils.c, contrib/lib9p/backend fs.c

Sync lib9p with https://github.com/jceel/lib9p master.

PC-BSD — sys/amd64/include apicvar.h, sys/dev/hyperv/vmbus hv_vmbus_drv_freebsd.c vmbus_var.h

Revert "MFC 301015"

This reverts commit ad3696213e74cc15453f57fd70efe31a64dfb2ce.

PC-BSD — sys/dev/hyperv/include hyperv.h, sys/dev/hyperv/utilities hv_kvp.c

Revert "MFC 301017,301018,301019,301020,301021,301022,301106"

This reverts commit 76df998b4891260cb7074c472cfda4714bfe07b4.

PC-BSD — sys/conf files.amd64 files.i386, sys/modules/hyperv/vmbus Makefile

Revert "MFC 301113"

This reverts commit c45c824e6b4172efa131a7166214ec7a14ff5168.

PC-BSD — sys/conf files.i386 files.amd64, sys/dev/hyperv/vmbus hv_channel_mgmt.c vmbus.c

Revert "MFC 301483,301484,301487,301488,301583,301588"

This reverts commit 4ea0d8730695362178cc5e3e727e3a5a5be535bc.

PC-BSD — usr.sbin/bhyve pci_e82545.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ Jakub Klama - 19b48e8d - 2016-06-24 16:03:38
Add MSI interrupt support to e1000 emulated device.
Delta File
+4 -2 usr.sbin/bhyve/pci_e82545.c
+4 -2 1 file

PC-BSD — usr.sbin/bhyve pci_e82545.c

Add MSI interrupt support to e1000 emulated device.
Delta File
+4 -2 usr.sbin/bhyve/pci_e82545.c
+4 -2 1 file

PC-BSD — build-files/conf/trueos installcd-packages

Don't install grub2-pcbsd for trueos

PC-BSD — build-files/conf installcd-packages

Don't need grub2-pcbsd installed

PC-BSD — build-files/conf installcd-packages iso-packages

Prune a few from ISO creation

PC-BSD — sys/conf files.i386 files.amd64, sys/dev/hyperv/vmbus hv_channel_mgmt.c vmbus.c

MFC 301483,301484,301487,301488,301583,301588

301483
    hyperv: Move machine dependent bits into machine dependent files.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6701

301484
    hyperv/vmbus: Define type for channel messages.

    And fix message processing; only channel messages are supported.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6706

301487
    hyperv/vmbus: Factor out channel message processing

    This paves the way for further cleanup.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC

    [22 lines not shown]

PC-BSD — lib/libc/regex regex.3 engine.c

MFC r300683:
libc: regexec(3) adjustment.

Change the behavior of when REG_STARTEND is combined with REG_NOTBOL.

From the original posting[1]:

"Enable the assumption that pmatch[0].rm_so is a continuation offset
to  a string and allows us to do a proper assessment of the character
in  regards to it's word position ('^' or '\<'), without risking going
into unallocated memory."

This change makes us similar to how glibc handles REG_STARTEND |
REG_NOTBOL, and is closely related to a soon-to-land fix to sed.

Special thanks to Martijn van Duren and Ingo Schwarze for working
out some consistent behaviour.

Differential Revision:        https://reviews.freebsd.org/D6257
Taken from:        openbsd-tech 2016-05-24 [1]  (Martijn van Duren)
Delta File
+48 -22 lib/libc/regex/regex.3
+2 -2 lib/libc/regex/engine.c
+50 -24 2 files

PC-BSD — sys/conf files.amd64 files.i386, sys/modules/hyperv/vmbus Makefile

MFC 301113

    hyperv: Rename some cleaned up/almost cleaned up files

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC

PC-BSD — sys/dev/hyperv/include hyperv.h, sys/dev/hyperv/utilities hv_kvp.c

MFC 301017,301018,301019,301020,301021,301022,301106

301017
    hyperv/vmbus: Indentation cleanup

    No functional changes.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6602

301018
    hyperv/vmbus: Move global vmbus id array to stack.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6603

301019
    hyperv/vmbus: Redefine SynIC message.

    - Avoid unnecessary indirection.
    - Avoid bit fields.
    - Use __packed.


    [42 lines not shown]

PC-BSD — sys/amd64/include apicvar.h, sys/dev/hyperv/vmbus hv_vmbus_drv_freebsd.c vmbus_var.h

MFC 301015

    hyperv/vmbus: Rename ISR functions

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6601

PC-BSD — usr.sbin/bhyve pci_e82545.c Makefile

Add experimental Intel e1000 emulated NIC.
Delta File
+1,981 -0 usr.sbin/bhyve/pci_e82545.c
+2 -0 usr.sbin/bhyve/Makefile
+1,983 -0 2 files

PC-BSD — build-files/conf port-make.conf

Fix building curl on CURRENT
Delta File
+1 -1 build-files/conf/port-make.conf
+1 -1 1 file

PC-BSD — build-files/conf essential-packages-iso

Expand out port names for poudriere

PC-BSD — usr.sbin/cpucontrol cpucontrol.c

MFC r301963:
Return usual error indicator to shell.
Delta File
+1 -1 usr.sbin/cpucontrol/cpucontrol.c
+1 -1 1 file

PC-BSD — sys/dev/cpuctl cpuctl.c

MFC r301962:
Always allow loading of cpuctl(4).
Delta File
+22 -16 sys/dev/cpuctl/cpuctl.c
+22 -16 1 file

PC-BSD — sys/dev/hyperv/vmbus hv_et.c hv_vmbus_drv_freebsd.c

MFC 300987,300988,300989,300992,300993,300994,301009

300987
    hyperv/et: Fix STIMER0 operations.

    - Make sure that STIMER0 is disabled before writting to it, since
      writing to an enabled STIMER will result in undefined behaviour.
    - It is unnecessary to reconfigure STIMER0 upon each et_start().
    - Make sure that MSR_HV_REF_TIME_COUNT will not return 0, since
      writing 0 to STIMER_COUNT will disable the target STIMER.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6573

300988
    hyperv/vmbus: Move SINT settings to vmbus_var.h

    While I'm here remove the event timer's dependency on hv_vmbus_priv.h

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6574

300989

    [42 lines not shown]

PC-BSD — sys/kern kern_thread.c

MFC r301960:
Remove XXX comments from kern_thread.c.
Delta File
+3 -3 sys/kern/kern_thread.c
+3 -3 1 file

PC-BSD — sys/kern kern_thread.c

MFC r301959:
Remove code duplication.
Delta File
+0 -5 sys/kern/kern_thread.c
+0 -5 1 file

PC-BSD — sys/netinet tcp_output.c

MFC 300981

    tcp: Don't prematurely drop receiving-only connections

    If the connection was persistent and receiving-only, several (12)
    sporadic device insufficient buffers would cause the connection be
    dropped prematurely:
    Upon ENOBUFS in tcp_output() for an ACK, retransmission timer is
    started.  No one will stop this retransmission timer for receiving-
    only connection, so the retransmission timer promises to expire and
    t_rxtshift is promised to be increased.  And t_rxtshift will not be
    reset to 0, since no RTT measurement will be done for receiving-only
    connection.  If this receiving-only connection lived long enough
    (e.g. >350sec, given the RTO starts from 200ms), and it suffered 12
    sporadic device insufficient buffers, i.e. t_rxtshift >= 12, this
    receiving-only connection would be dropped prematurely by the
    retransmission timer.

    We now assert that for data segments, SYNs or FINs either rexmit or
    persist timer was wired upon ENOBUFS.  And don't set rexmit timer
    for other cases, i.e. ENOBUFS upon ACKs.

    Discussed with:     lstewart, hiren, jtl, Mike Karels
    MFC after:  3 weeks
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D5872
Delta File
+11 -3 sys/netinet/tcp_output.c
+11 -3 1 file

PC-BSD — sys/dev/hyperv/vmbus hv_vmbus_priv.h hv_hv.c

MFC 300825,300827,300830,300831,300832,300834

300825
    hyperv: Move CPUID related bits to hyperv_reg.h and give them clean name

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6565

300827
    hyperv: Move timer related MSRs into hyperv_reg.h

    And avoid bit fields for event timer.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6566

300830
    hyperv/vmbus: Move MSR EOM to hyperv_reg.h

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6567


    [20 lines not shown]

PC-BSD — sys/dev/hyperv/vmbus hv_vmbus_drv_freebsd.c hv_hv.c

MFC 300654,300655,300708

300654
    hyperv/vmbus: Rework SynIC setup and teardown

    - Avoid bit fields.
    - Fix SINT setup (preserve required bits).

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6529

300655
    hyperv: Preserve required bits when disable Hypercall

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6530

300708
    hyperv: Rework guest id settings according to Hyper-V spec

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6553

PC-BSD — sys/dev/hyperv/include hyperv_busdma.h, sys/dev/hyperv/vmbus hv_vmbus_drv_freebsd.c hv_vmbus_priv.h

MFC 300647,300650,300651,300652,300653

300647
    hyperv/vmbus: Move vcpuid into vmbus softc per-cpu data

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6521

300650
    hyperv/vmbus: Move two global flags into vmbus softc

    And pack them into one flag field.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6522

300651
    hyperv/vmbus: Minor style and white space cleanup

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6523


    [13 lines not shown]