Displaying 1 50 of 295,851 commits (0.022s)

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs vdev_geom.c

Refactor vdev_geom_attach and friends to reduce code duplication

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
        Move checks for provider's sectorsize and mediasize into a single
        location in vdev_geom_attach. Remove the zfs::vdev::taste class;
        it's ok to use the regular vdev class for tasting. Consolidate guid
        checks into a single location in vdev_attach_ok. Consolidate some
        error handling code from vdev_geom_attach into vdev_geom_detach,
        closing a resource leak of geom consumers in the process.

Reviewed by:        avg
MFC after:        4 weeks
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D5974

FreeBSD — stable/8/bin/ed cbc.c

MFC r270256, r298640:

  ed(1): switch two statements so we check the index before dereferencing.

Approved by:        pfg
Delta File
+2 -2 stable/8/bin/ed/cbc.c
+2 -2 1 file

FreeBSD — head/etc/defaults rc.conf, head/etc/rc.d savecore

Add a savecore_enable variable support for the savecore rc script

By default set to 'YES' so it does not change the current behaviour for users,
this variable allows to decide to not extract crach dumps from the dump
device at boot time by setting it to "NO" in rc.conf.

Sponsored by:        Gandi.net

FreeBSD — head/etc/devd usb.conf

Regenerate usb.conf .

MFC after:        1 week
Delta File
+20 -4 head/etc/devd/usb.conf
+20 -4 1 file

FreeBSD — stable/9/sys/dev/usb usbdevs, stable/9/sys/dev/usb/quirk usb_quirk.c

MFC r297696 and r298424:
Add new USB quirks.

Submitted by:        AJ <aleksanderlothe at live.com>
PR:                208623
Submitted by:        Naram Qashat <cyberbotx at cyberbotx.com>
PR:                208642

FreeBSD — stable/10/sys/dev/usb usbdevs, stable/10/sys/dev/usb/quirk usb_quirk.c

MFC r297696 and r298424:
Add new USB quirks.

Submitted by:        AJ <aleksanderlothe at live.com>
PR:                208623
Submitted by:        Naram Qashat <cyberbotx at cyberbotx.com>
PR:                208642

FreeBSD — stable/9/sys/ofed/drivers/infiniband/ulp/ipoib ipoib_cm.c

MFC r298458:
Add missing set of the current VNET when inputting IP packets in IPoIB.

This fixes a kernel panic when using IPoIB with VIMAGE and infiniband.

PR:                208957
Sponsored by:        Mellanox Technologies
Tested by:        Justin Clift <justin at postgresql.org>

FreeBSD — stable/10/sys/ofed/drivers/infiniband/ulp/ipoib ipoib_cm.c

MFC r298458:
Add missing set of the current VNET when inputting IP packets in IPoIB.

This fixes a kernel panic when using IPoIB with VIMAGE and infiniband.

PR:                208957
Sponsored by:        Mellanox Technologies
Tested by:        Justin Clift <justin at postgresql.org>

FreeBSD — stable/10/sys/ofed/drivers/net/mlx4 mlx4_en.h en_netdev.c

MFC r297968:
Remove some unused fields.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/9/sys/ofed/drivers/net/mlx4 mlx4_en.h en_netdev.c

MFC r297968:
Remove some unused fields.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/9/sys/ofed/drivers/net/mlx4 en_rx.c mlx4_en.h

MFC r297967:
Ensure the received IP header gets 32-bits aligned.

The FreeBSD's TCP/IP stack assumes that the IP-header is 32-bits aligned
when decoding it. Else unaligned 32-bit memory access can happen, which
not all processor architectures support.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/10/sys/ofed/drivers/net/mlx4 en_rx.c mlx4_en.h

MFC r297967:
Ensure the received IP header gets 32-bits aligned.

The FreeBSD's TCP/IP stack assumes that the IP-header is 32-bits aligned
when decoding it. Else unaligned 32-bit memory access can happen, which
not all processor architectures support.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/9/sys/ofed/drivers/net/mlx4 en_tx.c

MFC r297966:
Add missing port_up checks.

When downing a mlxen network adapter we need to check the port_up variable
to ensure we don't continue to transmit data or restart timers which can
reside in freed memory.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/10/sys/ofed/drivers/net/mlx4 en_tx.c

MFC r297966:
Add missing port_up checks.

When downing a mlxen network adapter we need to check the port_up variable
to ensure we don't continue to transmit data or restart timers which can
reside in freed memory.

Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/dev/mlx5/mlx5_en mlx5_en_main.c

Correct some error codes to native FreeBSD ones.

Sponsored by:        Mellanox Technologies
Tested by:        Netflix
MFC after:        1 week

FreeBSD — head/sys/dev/mlx5 driver.h, head/sys/dev/mlx5/mlx5_core mlx5_eq.c

Add function to detect the presence of a port module and use this
function to error out early when no port module is present and doing
eeprom access. This also prevents error codes from filling up in
dmesg.

Sponsored by:        Mellanox Technologies
Tested by:        Netflix
MFC after:        1 week

FreeBSD — releng/10.1 UPDATING, releng/10.1/contrib/ntp CommitLog NEWS

Fix ntp multiple vulnerabilities.

Approved by:        so

FreeBSD — head/sys/netinet tcp_syncache.c

tcp/syncache: Set flowid and hash type properly for SYN|ACK

So the underlying drivers can use it to select the sending queue
properly for SYN|ACK instead of rolling their own hash.

Sponsored by:        Microsoft OSTC
Differential Revision:        https://reviews.freebsd.org/D6120
Delta File
+11 -5 head/sys/netinet/tcp_syncache.c
+11 -5 1 file

FreeBSD — head/bin/tests Makefile, head/cddl/lib/tests Makefile

Fix including Kyuafile in packaged base system.

Fix a related typo while here.

Note, this change results in the Kyuafile inclusion in the runtime
package, which needs to be fixed, however addresses the PR as far
as I can tell in my tests.

PR:                209114
Submitted by:        ngie
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/9/bin/ed cbc.c

MFC r298640:
ed(1): switch two statements so we check the index before dereferencing.
Delta File
+1 -1 stable/9/bin/ed/cbc.c
+1 -1 1 file

FreeBSD — stable/10/bin/ed cbc.c

MFC r298640:
ed(1): switch two statements so we check the index before dereferencing.
Delta File
+1 -1 stable/10/bin/ed/cbc.c
+1 -1 1 file

FreeBSD — stable/9/sbin/fsck_ffs suj.c

MFC r298551, r298679, r298680:
fsck_ffs: use uint32_t for closedisk().

fs_ncg is of type uint32_t, and we were indexing it with an int.
Fixed this using an unsigned type.

Reviewed by:        mckusick
Delta File
+1 -1 stable/9/sbin/fsck_ffs/suj.c
+1 -1 1 file

FreeBSD — stable/10/sbin/fsck_ffs suj.c

MFC r298551, r298679, r298680:
fsck_ffs: use uint32_t for closedisk().

fs_ncg is of type uint32_t, and we were indexing it with an int.
Fixed this using an unsigned type.

Reviewed by:        mckusick
Delta File
+1 -1 stable/10/sbin/fsck_ffs/suj.c
+1 -1 1 file

FreeBSD — stable/10/usr.bin/patch pch.c

MFC r298530:
patch(1): avoid signed integer overflow when debugging.

Integer i is used to index p_end of type LINENUM (actually long).
Match the types.
Delta File
+2 -2 stable/10/usr.bin/patch/pch.c
+2 -2 1 file

FreeBSD — head/sys/dev/ath if_ath_tx_ht.c

[ath] Add LDPC transmit support.

LDPC adds better transmit reliability if both ends support it.

You in theory can do both STBC and LDPC at the same time.
If I see issues I'll disable it.

* Only enable it if both ends of a connection negotiate it.
* Disable it if any rate is non-11n.
* Count both LDPC TX and STBC TX.

Tested:

* AR9380, STA mode
Delta File
+33 -0 head/sys/dev/ath/if_ath_tx_ht.c
+33 -0 1 file

FreeBSD — head/sys/dev/ath if_ath_tx.c

[ath] turn the BA hardware bug back into a printf().

I saw this happen a couple of times and all I saw was a dump of the
transmit descriptors.  Log the message for now so I can see whta happened.
Delta File
+1 -1 head/sys/dev/ath/if_ath_tx.c
+1 -1 1 file

FreeBSD — head/sys/dev/ath if_ath_sysctl.c if_athioctl.h

[ath] Add counters for STBC TX and LDPC TX.

This is a big no-op until the TX path changes to enable LDPC TX are
added.

FreeBSD — head/share/man/man7 build.7

Clarify build(7) instructions for alternate object directory.

PR:                209062
Submitted by:        Shawn Debnath <sd at beastie.io>
MFC after:        1 week
Differential Revision:        https://reviews.freebsd.org/D6106
Delta File
+15 -3 head/share/man/man7/build.7
+15 -3 1 file

FreeBSD — head/sbin/camcontrol camcontrol.c

Remove logically impossible test in scsidoinquiry(..)

It was already done 4 lines prior and the value of error didn't change

MFC after: 3 days
Reported by: Coverity
CID: 1011236
Sponsored by: EMC / Isilon Storage Division
Delta File
+0 -3 head/sbin/camcontrol/camcontrol.c
+0 -3 1 file

FreeBSD — head/sys/net80211 ieee80211_adhoc.c

[net80211] fix indenting.

Sponsored by:        Eva Automation, Inc.

FreeBSD — head/sys/net80211 ieee80211_adhoc.c

[net80211] handle action frames in adhoc mode from the node that created the BSS.

We don't have a separate bss node; instead we dup the first node we saw
and turn that into the BSS node.  This means that action frames from
that node would be rejected.

So, check that the node is the bss node /and/ the MAC doesn't match ni_macaddr.
That's the "right" way for now to verify it's an unknown node.

This fixes handling action frames in adhoc mode, which includes negotiating
11n aggregation via ADDBA/DELBA.

This by itself isn't enough to correctly create 11n adhoc networks; but
it is required for aggregation to be negotiated.

Tested:

* AR9380, 11n adhoc mode
* broadcom 11ac adhoc (vendor platform)

Sponsored by:        Eva Automation, Inc.

FreeBSD — head/sys/geom/journal g_journal.h, head/sys/geom/raid g_raid_ctl.c md_ddf.c

sys/geom: spelling fixes.

These affect debugging messages.

MFC after:        2 weeks

FreeBSD — head/sys/dev/acpica acpi_cpu.c

Only count CPU devices that are using the ACPI CPU driver.

Arguably we should only be doing the probe/attach to children of
these devices as well.

Tested by:        Michal Stanek <mst_semihalf.com> (arm64)
Differential Revision:        https://reviews.freebsd.org/D6133
Delta File
+2 -1 head/sys/dev/acpica/acpi_cpu.c
+2 -1 1 file

FreeBSD — head/lib/libcam scsi_cmdparse.c

Fix va_list handling

- Add missing va_end's after corresponding va_start's to cleanup state
- Eliminate questionable bzero'ing of va_list passed in to
  do_buff_decode(..) and do_encode(..) from buff_{de,en}code_visit(..)
  and csio_{de,en}code_visit(..). Make va_list a pointer instead and
  pass NULL into the underlying functions to handler this in a portable
  way.
- Do some minor style(9) clean up in affected functions.

Differential Revision: https://reviews.freebsd.org/D6072
MFC after: 3 days
Reported by: cppcheck, Coverity
CID: 1018500-1018503
Reviewed by: cem
Sponsored by: EMC / Isilon Storage Division
Delta File
+41 -38 head/lib/libcam/scsi_cmdparse.c
+41 -38 1 file

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

Add some notes about the implicit resource mapping for activated resources.

Specifically, mention that rman_get_bustag/handle/virtual are valid after
a resource is activated.  Also, mention the wrapper API that accepts a
struct resource instead of a bus tag and handle.

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

Document RF_PREFETCHABLE.

FreeBSD — head/usr.sbin/bsnmpd/tools/libbsnmptools bsnmptc.c

Use a better idiom for finding UTC prefixed timezones

Instead of copy-pasting the string literal for "UTC" 3 times and using
strlen, use a static char[3] buffer and sizeof(..).

MFC after: 3 days
X-MFC with: r298507
Submitted by: kib
Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/share/man/man9 bus_activate_resource.9 bus_alloc_resource.9

Document PCI_RES_BUS as a possible resource type.

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

Remove a stale reference to the removed RF_TIMESHARE flag.

FreeBSD — head/sys/net if_vxlan.c, head/sys/netinet udp_usrreq.c udp_var.h

Complete the UDP tunneling of ICMP msgs to those protocols
interested in having tunneled UDP and finding out about the
ICMP (tested by Michael Tuexen with SCTP.. soon to be using
this feature).

Differential Revision:        http://reviews.freebsd.org/D5875

FreeBSD — head/usr.bin/localedef wide.c

Small typo.
Delta File
+1 -1 head/usr.bin/localedef/wide.c
+1 -1 1 file

FreeBSD — head/sys/cam/scsi scsi_all.c

Small typos.
Delta File
+2 -2 head/sys/cam/scsi/scsi_all.c
+2 -2 1 file

FreeBSD — head/usr.sbin/extattr/tests Makefile

Add PACKAGE fields to usr.sbin/extattr/tests/Makefile

usr.sbin/extattr/tests/Makefile
        Add boiler plate required by 298107 but omitted by 298483.  These
        two changes passed through CR in parallel.  I think this should get
        the full test suite running in Jenkins again.

MFC after:        22 days
X-MFC-with:        298483
Sponsored by:        Spectra Logic Corp

FreeBSD — head/sys/netinet tcp_subr.c tcp_timer.c, head/sys/netinet/tcp_stacks fastpath.c

This cleans up the timers code in TCP to start using the new
async_drain functionality. This as been tested in NF as well as
by Verisign. Still to do in here is to remove all the old flags. They
are currently left being maintained but probably are no longer needed.

Sponsored by:        Netflix Inc.
Differential Revision:        http://reviews.freebsd.org/D5924

FreeBSD — head/sys/arm/nvidia tegra_gpio.c

TEGRA: Add interrupt support for Tegra GPIO controller.
Delta File
+464 -61 head/sys/arm/nvidia/tegra_gpio.c
+464 -61 1 file

FreeBSD — head/contrib/jemalloc/include/jemalloc jemalloc_FreeBSD.h

Stop using sbrk(2) with malloc. This helps reduce the number of places
within the tree where we call this legacy interface.

Reviewed by:        jasone
Obtained from:        brooks
Sponsored by:        ABT Systems Ltd

FreeBSD — head/sys/arm/arm swtch-v6.S

ARM: Use kernel pmap as intermediate mapping in context switch.
On ARM, we can directly switch between translation tables only when
the size of the mapping for any given virtual address is the same in
the old and new translation tables. The load of new TTB and subsequent
TLB flush is not atomic operation. So speculative page table walk can
load TLB entry from new mapping while rest of TLB entries are still the
old ones. In worst case, this can lead to situation when TLB cache can
contain multiple matching TLB entries. One (from old mapping) L2 entry
for VA + 4k and one (from new mapping) L1 entry for VA.

Thus, we must switch to kernel pmap translation table as intermediate
mapping because all sizes of these (old pmap and kernel pmap) mappings
are same (or unmapped). The same is true for switch from kernel pmap
translation table to new pmap one.
Delta File
+23 -11 head/sys/arm/arm/swtch-v6.S
+23 -11 1 file

FreeBSD — head/sys/dev/gpio gpiobus.c, head/sys/kern subr_intr.c

INTRNG: Define 'INTR_IRQ_INVALID' constant and use it consistently
as error indicator.

FreeBSD — head/sys/dev/gpio gpiobus.c gpiobusvar.h, head/sys/kern subr_intr.c

GPIO: Add support for gpio pin interrupts.
Add new function gpio_alloc_intr_resource(), which allows an allocation
of interrupt resource associated to given gpio pin. It also allows to
specify interrupt configuration.

Note: This functionality is dependent on INTRNG, and must be
implemented in each GPIO controller.

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

fix missing variable in r298736

Pointyhat to:        avg
Reported by:        Ivan Klymenko <fidaj at ukr.net>
MFC after:        2 weeks
X-MFC with:        r298736
Delta File
+1 -0 head/sys/amd64/amd64/initcpu.c
+1 -0 1 file