Displaying 1 50 of 262,075 commits (0.014s)

FreeBSD — head/sys/kern kern_time.c

Fix VIRTUAL and PROF interval timers for short intervals, broken at r247903.

Due to the way those timers are implemented, we can't handle very short
intervals.  In addition to that mentioned patch caused math overflows
for short intervals.  To avoid that round those intervals to 1 tick.

PR:                kern/187668
MFC after:        1 week
Delta File
+8 -0 head/sys/kern/kern_time.c
+8 -0 1 file

FreeBSD — head/sys/dev/iscsi iscsi.c iscsi_ioctl.h, head/usr.sbin/iscsid iscsid.c pdu.c

Make it possible for the initiator side to operate in both proxy
and normal mode; this makes it possible to compile with the former
by default, but use it only when neccessary.  That's especially
important for the userland part.

Sponsored by:        The FreeBSD Foundation
Delta File
+23 -25 head/usr.sbin/iscsid/iscsid.c
+23 -7 head/usr.sbin/iscsid/pdu.c
+19 -7 head/sys/dev/iscsi/iscsi.c
+5 -5 head/sys/dev/iscsi/iscsi_ioctl.h
+0 -2 head/usr.sbin/iscsid/iscsid.h
+70 -46 5 files

FreeBSD — stable/8/sys/dev/uart uart_bus_pci.c

MFC r249803:

        Add support for Intel C600/X79 Series Chipset KT Controller.

PR:                kern/177072
Delta File
+1 -0 stable/8/sys/dev/uart/uart_bus_pci.c
+1 -0 1 file

FreeBSD — stable/9/sys/dev/uart uart_bus_pci.c

MFC r249803:

        Add support for Intel C600/X79 Series Chipset KT Controller.

PR:                kern/177072
Delta File
+1 -0 stable/9/sys/dev/uart/uart_bus_pci.c
+1 -0 1 file

FreeBSD — stable/10/sys/kern subr_devstat.c

MFC r263690

change defaule permissions on /dev/devstat. while i'm here remove
D_NEEDGIANT flag

Submitted by:        jhb
Reviewed by:        jhb, scottl, rwatson, delphij, phk
Delta File
+4 -2 stable/10/sys/kern/subr_devstat.c
+4 -2 1 file

FreeBSD — head/sys/dev/iscsi icl.c

Fix typo.

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/sys/dev/iscsi/icl.c
+1 -1 1 file

FreeBSD — head/sys/dev/iscsi iscsi.c

Add kern.iscsi.fail_on_disconnection; this is required for gmultipath
to work.

Sponsored by:        The FreeBSD Foundation
Delta File
+65 -63 head/sys/dev/iscsi/iscsi.c
+65 -63 1 file

FreeBSD — head/lib libkse

Remove the libkse directory.  It was unhooked from the build and kernel
support removed in 2008 (prior to 8.0).

Approved by:        deischen, imp
MFC after:        3 days
Delta File
+0 -0 head/lib/libkse/
+0 -0 1 file

FreeBSD — head/sys/dev/altera/atse if_atse.c

Use ETHER_ALIGN as argument to m_adj() to offset the beginning of packet
rather than the magic number 2.

While here fix a typo in a comment.

No functional changes.

MFC after:        1 week
Sponsored by:        DARPA/AFRL
Delta File
+2 -2 head/sys/dev/altera/atse/if_atse.c
+2 -2 1 file

FreeBSD — stable/10/sys/cam/scsi scsi_cd.c

MFC r264311 (by smh):
Fix build breakage caused by r264295
Delta File
+0 -2 stable/10/sys/cam/scsi/scsi_cd.c
+0 -2 1 file

FreeBSD — head/sys/netpfil/ipfw ip_fw_pfil.c

Set oif only for outgoing packets.

PR:                188543
MFC after:        1 week
Sponsored by:        Yandex LLC
Delta File
+1 -1 head/sys/netpfil/ipfw/ip_fw_pfil.c
+1 -1 1 file

FreeBSD — head/sbin/route route.c

When switching variables to flags in r243185 a few cases were missed.
After r263152 this leaves unused variables if route(8) is compiled
without INET support.
Switch the remaining variable accesses to flags and remove now obsolete
variables.

Reviewed by:        glebius
MFC after:        1 week
Delta File
+5 -5 head/sbin/route/route.c
+5 -5 1 file

FreeBSD — head/sys/dev/iscsi iscsi.c

Remove useless debug.

Sponsored by:        The FreeBSD Foundation
Delta File
+0 -1 head/sys/dev/iscsi/iscsi.c
+0 -1 1 file

FreeBSD — head/sys/dev/iscsi iscsi.c

Be more strict with locking for is_waiting_for_iscsid variable.

Sponsored by:        The FreeBSD Foundation
Delta File
+4 -1 head/sys/dev/iscsi/iscsi.c
+4 -1 1 file

FreeBSD — head/sys/dev/iscsi iscsi.c iscsi_ioctl.h

Get rid of ISCSIDCLOSE; it wasn't used and is redundant anyway,
because of ISCSIDFAIL.

Sponsored by:        The FreeBSD Foundation
Delta File
+0 -25 head/sys/dev/iscsi/iscsi.c
+0 -6 head/sys/dev/iscsi/iscsi_ioctl.h
+0 -31 2 files

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

English.

Sponsored by:        The FreeBSD Foundation
Delta File
+3 -3 head/usr.sbin/ctld/ctld.c
+3 -3 1 file

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

If we fail to create LUN, try again on next configuration reload.

Sponsored by:        The FreeBSD Foundation
Delta File
+9 -1 head/usr.sbin/ctld/ctld.c
+9 -1 1 file

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

Use consistent punctuation.

Sponsored by:        The FreeBSD Foundation
Delta File
+4 -3 head/usr.sbin/ctld/ctld.c
+4 -3 1 file

FreeBSD — head/usr.sbin/ctld login.c

Use proper terminology in debug messages.

Sponsored by:        The FreeBSD Foundation
Delta File
+3 -3 head/usr.sbin/ctld/login.c
+3 -3 1 file

FreeBSD — head/usr.sbin/ctld ctld.h ctld.c

Constify.

Sponsored by:        The FreeBSD Foundation
Delta File
+8 -5 head/usr.sbin/ctld/ctld.h
+5 -5 head/usr.sbin/ctld/ctld.c
+13 -10 2 files

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c ctl_ioctl.h, head/sys/dev/iscsi icl.h icl_proxy.c

Properly pass the initiator address when running in proxy mode.

Sponsored by:        The FreeBSD Foundation
Delta File
+18 -25 head/usr.sbin/ctld/ctld.c
+9 -4 head/usr.sbin/ctld/ctld.h
+12 -1 head/sys/cam/ctl/ctl_frontend_iscsi.c
+6 -1 head/usr.sbin/ctld/kernel.c
+4 -2 head/sys/dev/iscsi/icl.h
+3 -2 head/sys/dev/iscsi/icl_proxy.c
+3 -1 2 files not shown
+55 -36 8 files

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

Use socket address from accept(2) instead of retrieving it via
getpeername(2).

Sponsored by:        The FreeBSD Foundation
Delta File
+13 -11 head/usr.sbin/ctld/ctld.c
+13 -11 1 file

FreeBSD — head/usr.sbin/ctld ctld.c parse.y

Rework the way we enable CTL iSCSI port.  Previously conf_apply()
needed it to be already enabled, because listening in proxy mode
requires it; however, it's conf_apply() that opens pidfiles,
so it resulted in port being enabled before pidfile was opened.
This was not so bad, but it was also disabled when pidfile couldn't
be opened due to ctld already running; this means that starting
second ctld instance screwed up the first.

Sponsored by:        The FreeBSD Foundation
Delta File
+13 -8 head/usr.sbin/ctld/ctld.c
+2 -0 head/usr.sbin/ctld/parse.y
+1 -0 head/usr.sbin/ctld/ctld.h
+16 -8 3 files

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c

Make it possible to interrupt login when running in proxy mode.

Sponsored by:        The FreeBSD Foundation
Delta File
+21 -6 head/sys/cam/ctl/ctl_frontend_iscsi.c
+21 -6 1 file

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c ctl_ioctl.h, head/sys/dev/iscsi icl_proxy.c icl.h

Properly identify target portal when running in proxy mode.  While here,
remove CTL_ISCSI_CLOSE, it wasn't used or implemented anyway.

Sponsored by:        The FreeBSD Foundation
Delta File
+22 -11 head/usr.sbin/ctld/ctld.c
+14 -15 head/usr.sbin/ctld/kernel.c
+11 -8 head/sys/dev/iscsi/icl_proxy.c
+10 -8 head/sys/dev/iscsi/icl.h
+4 -13 head/sys/cam/ctl/ctl_frontend_iscsi.c
+9 -2 head/usr.sbin/ctld/ctld.h
+4 -6 2 files not shown
+74 -63 8 files

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c ctl_ioctl.h, head/sys/dev/iscsi iscsi.c

Add some stuff to make it easier to figure out for the system administrator
whether the ICL_KERNEL_PROXY stuff got compiled in correctly.

Sponsored by:        The FreeBSD Foundation
Delta File
+16 -1 head/sys/cam/ctl/ctl_frontend_iscsi.c
+5 -1 head/sys/cam/ctl/ctl_ioctl.h
+4 -0 head/sys/dev/iscsi/iscsi.c
+25 -2 3 files

FreeBSD — head/sys/cam/ctl ctl_frontend_iscsi.c ctl_ioctl.h, head/usr.sbin/ctld ctld.c pdu.c

Make it possible for the iSCSI target side to operate in both normal
and ICL_KERNEL_PROXY mode, and fix some bit rot so the latter actually
works again.

Sponsored by:        The FreeBSD Foundation
Delta File
+75 -76 head/usr.sbin/ctld/ctld.c
+45 -29 head/sys/cam/ctl/ctl_frontend_iscsi.c
+25 -7 head/usr.sbin/ctld/pdu.c
+7 -10 head/sys/cam/ctl/ctl_ioctl.h
+10 -1 head/usr.sbin/ctld/kernel.c
+162 -123 5 files

FreeBSD — stable/10/sys/cam/ctl ctl_frontend_iscsi.c

MFC r264307:
Fix three refcounter leaks and lock recursion they covered.
Delta File
+4 -7 stable/10/sys/cam/ctl/ctl_frontend_iscsi.c
+4 -7 1 file

FreeBSD — stable/10/share/man/man4 cd.4, stable/10/sys/cam/scsi scsi_cd.c

MFC r264295:
Remove support of LUN-based CD changers from cd(4) driver.

This code was heavily broken few months ago during CAM locking changes.
Fixing it would require almost complete rewrite.  Since there are no
known devices on market using this interface younger then ~15 years, and
they are CD, not even DVD, I don't see much reason to rewrite it.

This change does not mean those devices won't work.  They will just work
slower due to inefficient disks load/unload schedule if several LUNs
accessed same time.
Delta File
+18 -691 stable/10/sys/cam/scsi/scsi_cd.c
+1 -86 stable/10/share/man/man4/cd.4
+19 -777 2 files

FreeBSD — head/sys/netpfil/pf pf.c pf_lb.c

Backout r257223,r257224,r257225,r257246,r257710. The changes caused
some regressions in ICMP handling, and right now me and Baptiste
are out of time on analyzing them.

PR:                188253
Delta File
+82 -332 head/sys/netpfil/pf/pf.c
+1 -22 head/sys/netpfil/pf/pf_lb.c
+83 -354 2 files

FreeBSD — head/sys/netipsec ipsec.c ipsec_output.c

Remove _IP_VHL* macros and related ifdefs.

MFC after:        1 week
Delta File
+0 -12 head/sys/netipsec/ipsec.c
+0 -12 head/sys/netipsec/ipsec_output.c
+0 -24 2 files

FreeBSD — stable/8/etc Makefile pkg, stable/8/etc/mtree BSD.usr.dist BSD.root.dist

MFC Pkg configuration, known public key, and pkg(7) changes to align with pkg(8)

This partially merges:
    r229068,r237795,r252048,r257145,r257147,r257150,r257150,r257159,r257164,
    r257168,r257344,r257344,r257667,r257668,r258227,r258550,r263937,r264420

- etc/
  - Bring in current pkg configuration from head
  - Add /etc/pkg/ and /usr/share/keys to mtree
- share/keys
  - Bring in trusted key fingerprint from head
- share/man/man7
  - Document /usr/share/keys/pkg
- usr.sbin/pkg
  - No longer create pkg.conf as it is deprecated in pkg(8).
  - Show security warning when bootstrapping.
    * This is a direct commit as the signature verification is not being
      MFC'd due to being too large.

Discussed with:        bapt, gjb
Delta File
+5 -25 stable/8/usr.sbin/pkg/pkg.c
+12 -2 stable/8/etc/pkg/FreeBSD.conf
+11 -1 stable/8/share/man/man7/hier.7
+8 -0 stable/8/etc/mtree/BSD.usr.dist
+2 -0 stable/8/etc/mtree/BSD.root.dist
+1 -0 stable/8/share/Makefile
+1 -1 4 files not shown
+40 -29 10 files

FreeBSD — head/release/arm release.sh

Fix armv6 build failure: "armv6-freebsd-gcc: not found"

Help from:        imp
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/release/arm/release.sh
+1 -1 1 file

FreeBSD — head/sys/net if_vlan.c

Vlan did not set the value of if_hw_tsomax, so when vlan
was stacked on top of a network interface that set if_hw_tsomax,
tcp_output() would see the default value instead of the value
set by the network interface. This patch modifies vlan so that
it sets if_hw_tsomax to the value of the parent interface.

Reviewed by:        glebius
MFC after:        2 weeks
Delta File
+2 -0 head/sys/net/if_vlan.c
+2 -0 1 file

FreeBSD — head/sys/amd64/vmm vmm.c

Don't spindown the BSP if it executes hlt with the APIC disabled.  A
guest that doesn't use the APIC at all can trigger this, plus the BSP
always needs to execute as it should trigger a reset, etc.

Reviewed by:        tychon
Delta File
+5 -3 head/sys/amd64/vmm/vmm.c
+5 -3 1 file

FreeBSD — head/tools/build/options WITHOUT_GPL_DTC

Document WITHOUT_GPL_DTC too.
Delta File
+3 -0 head/tools/build/options/WITHOUT_GPL_DTC
+3 -0 1 file

FreeBSD — head/sys/dev/puc pucdata.c

Correct a typo in a device description added in r264257.
Delta File
+1 -1 head/sys/dev/puc/pucdata.c
+1 -1 1 file

FreeBSD — stable/10/bin/sh var.c

MFC r263847: sh: Fix memory leak with an assignment before a regular builtin
Delta File
+8 -2 stable/10/bin/sh/var.c
+8 -2 1 file

FreeBSD — stable/10/bin/sh var.c

MFC r263846: sh: Fix memory leak when trying to set a read only variable.
Delta File
+4 -1 stable/10/bin/sh/var.c
+4 -1 1 file

FreeBSD — stable/9/sys/dev/ciss ciss.c

MFC r264354 but change the lock arg and implementation to fit the current state
of CAM in stable/9

Fix insta-panic on assert of unlocked periph mtx in ciss(4) when
logical volume state changes.

I'm still setting the mergeinfo as done here as the intent of the MFC, if not
the EXACT code is being implemented.

Reviewed by:        mav@
Sponsored by:        Yahoo! Inc
Delta File
+11 -24 stable/9/sys/dev/ciss/ciss.c
+11 -24 1 file

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

MFC r264354

Fix insta-panic on assert of unlocked periph mtx in ciss(4) when
logical volume state changes.

Sponsored by:        Yahoo! Inc.
Delta File
+11 -24 stable/10/sys/dev/ciss/ciss.c
+11 -24 1 file

FreeBSD — head/sys/amd64/vmm vmm_lapic.c

Local APIC access via 32-bit naturally-aligned loads is merely
suggested in the SDM.  Since some OSes have implemented otherwise
don't be too rigorous in enforcing it.

Approved by:        grehan (co-mentor)
Delta File
+5 -3 head/sys/amd64/vmm/vmm_lapic.c
+5 -3 1 file

FreeBSD — head/lib/libc/posix1e posix1e.3

Correct sorting.
Delta File
+1 -1 head/lib/libc/posix1e/posix1e.3
+1 -1 1 file

FreeBSD — head/lib/libc/posix1e posix1e.3

Mention Capsicum.

MFC after:        1 week
Delta File
+7 -1 head/lib/libc/posix1e/posix1e.3
+7 -1 1 file

FreeBSD — stable/9/lib/libelf Makefile

MFC r237528:

Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.

When building libelf in the bootstrap stage this would include the tree
versions of, for example, sys/_types.h. This would work as long as the
tree's version of this file was close enough to the system's version of
the file. If, however, there was a change in the tree such that the location
of a typedef was moved this would cause problems. In this case the version
of sys/_types.h in the tree no longer defines __wchar_t and expects it to
to be defined in machine/_types.h, however we pick up machine/_types.h from
the system and find it is not defined there. The solution is to restrict the
parts of sys er include from the tree to those that are needed.

This fixes the recent Tinderbox failure.

MFC r237531:

Add the sys directory we create to the list of items to clean.

MFC r238741:

Don't ever build files depending on the directory where they are placed in.
It is obvious that its modification time will change with each such file
builded.

    [2 lines not shown]
Delta File
+14 -1 stable/9/lib/libelf/Makefile
+14 -1 1 file

FreeBSD — stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_tx.c, stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_tx.c

Don't pass a timeout of 0 ticks to pause() for a delay of less than 1
hz tick.  On 8.x this results in an infinite sleep as pause() does not
support a delay of 0 ticks.  Since all delay values are converted from
nanoseconds to ticks using a floor function, skipping the sleep for a
delay smaller than 1 tick is the more consistent than rounding up to a
single tick.

This is a direct commit to 8 and 9 as 10.x and later use pause_sbt()
instead.

Reviewed by:        avg
Delta File
+5 -1 stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c
+5 -1 stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c
+10 -2 2 files

FreeBSD — head/sys/geom/uzip g_uzip.c

Make sure not to do I/O for more than MAXPHYS bytes. Doing so can cause
problems in our providers, such as a KASSERT in md(4). We can initiate
I/O for more than MAXPHYS bytes if we've been given a BIO for MAXPHYS
bytes, the blocks from which we're reading couldn't be compressed and
we had compression in preceeding blocks resulting in misalignment of
the blocks we're trying to read relative to the sector. We're forced to
round up the I/O length to make it an multiple of the sector size.

When we detect the condition, we'll reduce the block count and perform
a "short" read. In g_uzip_done() we need to consider the original I/O
length and stop early if we're about to deflate a block that we didn't
read. By using bio_completed in the cloned BIO and not bio_length to
check for this, we automatically and gracefully handle short reads that
our providers may be doing on top of the short reads we may initiate
ourselves.

Obtained from:        Juniper Networks, Inc.
Delta File
+22 -5 head/sys/geom/uzip/g_uzip.c
+22 -5 1 file

FreeBSD — stable/9/etc Makefile

MFC r264420:

  Always install pkg.conf. Don't depend on MK_PKGBOOTSTRAP.
Delta File
+0 -2 stable/9/etc/Makefile
+0 -2 1 file

FreeBSD — stable/10/etc Makefile

MFC r264420:

  Always install pkg.conf. Don't depend on MK_PKGBOOTSTRAP.
Delta File
+0 -2 stable/10/etc/Makefile
+0 -2 1 file

FreeBSD — head/sys/amd64/vmm vmm_instruction_emul.c

Add support for emulating the byte move and sign extend instructions:
"movsx r/m8, r32" and "movsx r/m8, r64".

Approved by:        grehan (co-mentor)
Delta File
+37 -5 head/sys/amd64/vmm/vmm_instruction_emul.c
+37 -5 1 file