SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2015 - 08 - 31   (today)
17:30:13 - r287326
( 18 minutes ago)
by emaste
Affects: 
(3 files)
/stable/10/usr.bin/ar/ar.1
/stable/10/usr.bin/ar/ar.c
MFC r285844: ar: add -U (unique) option to disable -D (deterministic) mode

This is required in order for us to support deterministic mode by
default.  If multiple -D or -U options are specified on the command
line, the final one takes precedence.  GNU ar also uses -U for this.

PR:             196929
Sponsored by:   The FreeBSD Foundation
12:42:21 - r287325
(5 hours 6 minutes ago)
by pho
Affects: 
(5 files)
/user/pho/stress2/misc/*
Added Ctrl-C trap handling.

Sponsored by:   EMC / Isilon storage division
12:28:13 - r287324
(5 hours 20 minutes ago)
by emaste
Affects:  /head/usr.bin/ar/ar.c
ar: fix deterministic mode when running as ranlib

This was broken by r286024.

PR:             202741
Submitted by:   fk@fabiankeil.de
Obtained from:  ElectroBSD
10:43:00 - r287323
(7 hours 5 minutes ago)
by glebius
Affects:  /head/sys/dev/iwn/if_iwn.c
Remove now unneeded includes.
09:39:16 - r287322
(8 hours 9 minutes ago)
by andrew
Affects:  /head/sys/arm/arm/locore-v6.S
Clean up the style of the LEAVE_HYP macro.
07:18:13 - r287321
(10 hours 30 minutes ago)
by hselasky
Affects:  /head/sys/dev/usb/quirk/usb_quirk.c
/head/sys/dev/usb/usbdevs
Add new USB quirk.

MFC after:      1 week
PR:             202783
06:11:39 - r287320
(11 hours 37 minutes ago)
by delphij
Affects:  /head/usr.bin/tftp/main.c
 - uri is expected to be nul-terminated (strchr used later),
   so use strlcpy instead of strncpy.
 - unroll the other two cases of strncpy+\0 to strlcpy.

MFC after:      2 weeks
05:57:26 - r287319
(11 hours 51 minutes ago)
by delphij
Affects:  /head/usr.bin/iconv/iconv.c
Constify opt_f and opt_t and eliminate unneeded copying.  This fixes
memory leaks.

Reported by:    clang static analyzer
MFC after:      2 weeks
05:03:36 - r287318
(12 hours 45 minutes ago)
by melifaro
Affects:  /head/sys/net/if_llatbl.c
/head/sys/netinet6/in6.c
/head/sys/netinet6/nd6.c
Simplify lla_rt_output()/nd6_add_ifa_lle() by setting lle state in
  alloc handler, based on flags.
2015 - 08 - 30   (yesterday)
23:58:53 - r287317
(17 hours 50 minutes ago)
by marcel
Affects:  /head/sys/boot/efi/include/efipciio.h
/head/sys/boot/efi/include/efiuga.h
/head/sys/boot/efi/loader/arch/amd64/framebuffer.c
Add support for the UGA draw protocol. This includes adding a
command called 'uga' to show whether UGA is implemented by the
firmware and what the settings are. It also includes filling
the efi_fb structure from the UGA information when GOP isn't
implemented by the firmware.

Since UGA does not provide information about the stride, we
set the stride to the horizontal resolution. This is likely
not correct and we should determine the stride by trial and
error. For now, this should show something on the console
rather than nothing.

Refactor this file to maximize code reuse.

PR:             202730
23:20:00 - r287316
(18 hours 28 minutes ago)
by loos
Affects: 
(4 files)
/head/sys/arm/conf/A20
/head/sys/boot/fdt/dts/arm/*
Add the LED definitions from vendor's DTS.

Add gpioled support to A20 kernel.

While here rename the gpio phandle to match the one used in the vendor's
DTS.
22:38:06 - r287315
(19 hours 10 minutes ago)
by loos
Affects:  /head/sys/arm/allwinner/a10_gpio.c
The vendor's DTS for Allwinner A20 uses a different way to map the gpio
pins, they specify the bank and the pin in two separated cells.

This allow the use of vendor's DTS definitions by adding a gpio map
routine that copes with that.
21:55:01 - r287314
(19 hours 53 minutes ago)
by adrian
Affects:  /head/tools/tools/iwn/iwnstats/Makefile
oops - mis-commit.
21:54:47 - r287313
(19 hours 54 minutes ago)
by adrian
Affects: 
(5 files)
/head/tools/tools/iwn/iwnstats/*
Convert this over to use the new cdev based ioctl path.
21:54:33 - r287312
(19 hours 54 minutes ago)
by adrian
Affects:  /head/sys/dev/iwn/if_iwn.c
/head/sys/dev/iwn/if_iwn_ioctl.h
/head/sys/dev/iwn/if_iwnvar.h
Migrate the stats API for iwn(4) into a cdev ioctl, rather than tying
into the vap.

This allows for possible hardware interaction without needing a vap
configured.
20:59:19 - r287311
(20 hours 49 minutes ago)
by gnn
Affects:  /head/share/doc/papers/bsdreferences.bib
A bibliography of FreeBSD and BSD related papers and books.
Keep this file in order by primary key which is the first author's
last name and the year of publication.
18:02:57 - r287310
(23 hours 45 minutes ago)
by kib
Affects:  /head/sys/kern/ksched.c
Use P1B_PRIO_MAX to designate max posix priority for the RR/FIFO
scheduler types.  It was intended to be used there, compare with the
min value, and with the test for correctness in ksched_setscheduler().

Note that P1B_PRIO_MAX and RTP_PRIO_MAX do have the same numerical
values, the change is cosmetical.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
17:58:11 - r287309
(23 hours 50 minutes ago)
by kib
Affects:  /head/sys/kern/ksched.c
/head/sys/sys/posix4.h
Remove single-use macros obfuscating malloc(9) and free(9) calls.
Style.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
17:24:22 - r287308
(1 day ago)
by jilles
Affects:  /head/bin/sh/miscbltin.c
/head/bin/sh/tests/builtins/Makefile
/head/bin/sh/tests/builtins/read9.0
sh: Fix read with escaped IFS characters at the end.

Characters escaped with a backslash must be treated as if they were not in
IFS. This includes stripping trailing IFS characters.
16:10:12 - r287307
(1 day 1 hour ago)
by loos
Affects:  /head/sys/boot/fdt/dts/arm/bananapi.dts
Reduce the difference to vendor DTS by using the vendor compat strings (at
some point we have to use the complete vendor DTS files, but we're not
there yet).
15:38:41 - r287306
(1 day 2 hours ago)
by loos
Affects:  /head/sys/arm/conf/A20
/head/sys/arm/conf/CUBIEBOARD2
In preparation to support other A20 based boards, rename the CUBIEBOARD2
kernel configuration to A20.

There are other boards (namely the banana pi) that use exactly the same
devices.

Additionally, we are moving from static FDT support (DTB compiled
in-kernel) to DTB passed to kernel by the boot loader (ubldr).  The u-boot
for these boards are already available on ports and as the crochet support
for these boards isn't committed yet, this should not bring any issues.

Discussed with:         ian
13:44:46 - r287305
(1 day 4 hours ago)
by jch
Affects:  /head/sys/kern/kern_timeout.c
Revert r286880:  If at first this change made sense, it turns out
it helps only the TCP timers callout(9) usage.  As the benefit for
others callout(9) usages did not reach a consensus the historical
usage should prevail.

Differential Revision:      https://reviews.freebsd.org/D3078
13:44:39 - r287304
(1 day 4 hours ago)
by jch
Affects:  /head/sys/netinet/tcp_timer.c
/head/sys/netinet/tcp_timer.h
Put r284245 back in place:  If at first this fix was seen as a temporary
workaround for a callout(9) issue, it turns out it is instead the right
way to use callout in mpsafe mode without using callout_drain().

r284245 commit message:

Fix a callout race condition introduced in TCP timers callouts with r281599.
In TCP timer context, it is not enough to check callout_stop() return value
to decide if a callout is still running or not, previous callout_reset()
return values have also to be checked.

Differential Revision:  https://reviews.freebsd.org/D2763
08:48:31 - r287303
(1 day 9 hours ago)
by delphij
Affects:  /head/sys/dev/ipmi/ipmi_smbios.c
/head/sys/dev/ipmi/ipmivars.h
Remove support for FreeBSD < 602110.
08:46:50 - r287302
(1 day 9 hours ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c
Fix compilation error on gcc-5.2.0 - it now warns on non-paranthen'ed
logical negation when used in this fashion.

Tested:

* compile only
08:38:59 - r287301
(1 day 9 hours ago)
by delphij
Affects:  /head/libexec/talkd/table.c
Don't assign 'ptr' without using it.

Reported by:    clang static analyzer
MFC after:      2 weeks
04:46:44 - r287300
(1 day 13 hours ago)
by kib
Affects:  /head/lib/libc/gen/posix_spawn.c
Fix a mistake in r287292.  Despite correctly stating intent in the
comment above, POSIX_SPAWN_SETSIGMASK and POSIX_SPAWN_SETSIGDEF
handlers used libthr interposed functions instead of syscalls.

Noted by:       jilles
Sponsored by:   The FreeBSD Foundation
MFC after:      6 days
01:39:59 - r287299
(1 day 16 hours ago)
by marcel
Affects:  /head/sys/boot/efi/loader/arch/amd64/framebuffer.c
Add a gop command to help diagnose VT efifb problems. The gop
command has the following sub-commands:
  list          - list all possible modes (paged)
  get           - return the current mode
  set <mode>    - set the current mode to <mode>
2015 - 08 - 29   (2 days ago)
20:41:09 - r287298
(1 day 21 hours ago)
by jilles
Affects: 
(2 files)
/stable/10/lib/libc/gen/setmode.c
MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask()
if possible.

The kern.proc.umask.<pid> sysctl allows querying the umask without
temporarily modifying it.

r280713 is the actual change, while r279084 is a whitespace change.
19:47:20 - r287297
(1 day 22 hours ago)
by rodrigc
Affects: 
(30 files)
/head/tools/regression/*
/head/tools/tools/*
- Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()
- Add missing <err.h> for err() and <sys/sysctl.h> for sysctlbyname()
- NULL -> 0 for 5th parameter of sysctlbyname()

Submitted by: Andriy Voskoboinyk <s3erios@gmail com>
Differential Revision: https://reviews.freebsd.org/D3442
19:41:47 - r287296
(1 day 22 hours ago)
by jilles
Affects: 
(4 files)
/head/bin/sh/*
sh: Add set -o nolog.

POSIX requires this to prevent entering function definitions in history but
this implementation does nothing except retain the option's value. In ksh88,
function definitions were usually entered in the history file, even when
they came from ~/.profile and the $ENV file, to allow displaying their
definitions.

This is also the first option that does not have a letter.
18:37:09 - r287295
(1 day 23 hours ago)
by gavin
Affects:  /head/sys/dev/usb/serial/u3g.c
/head/sys/dev/usb/usbdevs
Support the ZTE MF112 HSUPA 3G USB stick.

MFC after:      1 week
17:26:29 - r287294
(2 days ago)
by tuexen
Affects:  /head/sys/netinet/sctp_constants.h
/head/sys/netinet/sctp_sysctl.h
/head/sys/netinet/sctputil.c
Use 5 times RTO.Max as the default for the shutdown guard timer
as required by RFC 4960. The sysctl variable can be used to
overwrite this.

Discussed with: rrs
MFC after:      1 week
15:33:31 - r287293
(2 days 2 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_io.h
/head/sys/cam/ctl/scsi_ctl.c
Remove 600 bytes of port_priv from struct ctl_io_hdr.

This field used only for camtgt frontend, and once it any way preallocates
all requests, let it preallocate this memory too, not bothering core code.
14:25:01 - r287292
(2 days 3 hours ago)
by kib
Affects: 
(22 files)
/head/lib/libc/*
Switch libc from using _sig{procmask,action,suspend} symbols, which
are aliases for the syscall stubs and are plt-interposed, to the
libc-private aliases of internally interposed sigprocmask() etc.

Since e.g. _sigaction is not interposed by libthr, calling signal()
removes thr_sighandler() from the handler slot etc.  The result was
breaking signal semantic and rtld locking.

The added __libc_sigprocmask and other symbols are hidden, they are
not exported and cannot be called through PLT.  The setjmp/longjmp
functions for x86 were changed to use direct calls, and since
PIC_PROLOGUE only needed for functional PLT indirection on i386, it is
removed as well.

The PowerPC bug of calling the syscall directly in the setjmp/longjmp
implementation is kept as is.

Reported by:    Pete French <petefrench@ingresso.co.uk>
Tested by:      Michiel Boland <boland37@xs4all.nl>
Reviewed by:    jilles (previous version)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
13:44:27 - r287291
(2 days 4 hours ago)
by melifaro
Affects: 
(4 files)
/projects/routing/sys/net/*
/projects/routing/sys/netinet/*
Remove lle read lock from IPv4 fast path.

Since r286722, IPv4 LLE address field is updated while holding AFDATA WLOCK.

However, we need a bit more to be able to actually remove read lock.
First, some sort of flags needs to be added to check if we really can
use given address data. Second, we need to provide some sort of feedback
if the entry is really used when expiration time is approaching.

First is easily solved by adding another flag field updated under AFDATA
  WLOCK along with mac address.
Second one is more tricky.
  Currently this is done the following way:
  When packet is sent using given lle and its expiration time is within
  lle->la_preempt = V_arp_maxtries = 5 seconds, we decrease la_preempt under
  lle RLOCK and send arprequest towards dst. If traffic flow continues (and
  int case of no reply) we will send up to V_arp_maxtries (one each second)
  before expiring entry.

  New behavior:
    Introduce simple state machine (incomplete->reachable<->verify->deleted)
    Schedule arptimer V_arp_maxtries seconds ealier. On first timer call in
    "reachable" state set special r_kick field to 1, set state to "verify" and
    reschedule itself V_arpt_rexmit = 1 second forward. While looking up lle
    fast path checks if given r_kick field is nonzero and sets it to zero
    under lle WLOCK (which should be very rare). On subsequent calls in arptimer
    we check if r_kick was changed (and issue arprequest if yes) and
    reschedule until expire (if valid reply was received, set state back to
    "reachable" and reschedule arptimer according to V_arpt_keep value.

Given that, introduce 2 new fields:
  - r_flags, containing flags used by fast path code. New flags are:
    RLLE_VALID (pre-compiled yes/no flag if we can use the entry)
    RLLE_IFADDR (to be able to pass given flag as hint to ether_output)
  - r_kick, used for fast path feedback.
13:35:33 - r287290
(2 days 4 hours ago)
by melifaro
Affects:  /projects/routing/sys/netinet/ip_output.c
Do not send everything to default gateway.
11:21:20 - r287289
(2 days 6 hours ago)
by mav
Affects: 
(7 files)
/head/sys/cam/ata/ata_xpt.c
/head/sys/cam/scsi/*
Attach pass driver to LUNs is OFFLINE state.

Previously such LUNs were silently ignored.  But while they indeed unable
to process most of SCSI commands, some, like RTPG, they still can.

MFC after:      1 month
11:15:58 - r287288
(2 days 6 hours ago)
by avatar
Affects: 
(3 files)
/stable/9/sys/dev/sound/midi/midi.c
MFC r286886: Fixing typo as well as improving readability of a few comments.
11:15:54 - r287287
(2 days 6 hours ago)
by avatar
Affects: 
(2 files)
/stable/10/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
MFC r286888: Using consistent coding style to deal with error inside the loop.
10:53:53 - r287286
(2 days 6 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ata/ata_da.c
MFC r287025: Remove some code duplication by using biofinish().
10:52:16 - r287285
(2 days 6 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/dev/ata/ata-all.c
/stable/10/sys/dev/ata/ata-all.h
MFC r286814, r286816: Remove UMA allocation of ATA requests.

After CAM replaced old ATA stack, this driver processes no more then one
request at a time per channel.  Using UMA after that is overkill, so
replace it with simple preallocation of one request per channel.
09:27:29 - r287284
(2 days 8 hours ago)
by tuexen
Affects:  /head/usr.bin/netstat/sctp.c
Use the userland exported states and handle them completely.
09:22:32 - r287283
(2 days 8 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Fix a buffer overrun which may lead to data corruption, introduced in
r286951 by reinstating changes in r274628.

In l2arc_compress_buf(), we allocate a buffer to stash away the compressed
data in 'cdata', allocated of l2hdr->b_asize bytes.

We then ask zio_compress_data() to compress the buffer, b_l1hdr.b_tmp_cdata,
which is of l2hdr->b_asize bytes, and have the compressed size (or original
size, if compress didn't gain enough) stored in csize.

To pad the buffer to fit the optimal write size, we round up the compressed
size to L2 device's vdev_ashift.

Illumos code rounds up the size by at most SPA_MINBLOCKSIZE.  Because we
know csize <= b_asize, and b_asize is integer multiple of SPA_MINBLOCKSIZE,
we are guaranteed that the rounded up csize would be <= b_asize. However,
this is not necessarily true when we round up to 1 << vdev_ashift, because
it could be larger than SPA_MINBLOCKSIZE.

So, in the worst case scenario, we are overwriting at most

        (1 << vdev_ashift - SPA_MINBLOCKSIZE)

bytes of memory next to the compressed data buffer.

Andriy's original change in r274628 reorganized the code a little bit,
by moving the padding to after we determined that the compression was
beneficial.  At which point, we would check rounded size against the
allocated buffer size, and the buffer overrun would not be possible.
09:14:32 - r287282
(2 days 8 hours ago)
by tuexen
Affects: 
(5 files)
/head/sys/netinet/*
Fix the exporting of SCTP association states to userland. Without this,
associations in SHUTDOWN-PENDING were never reported correctly.

MFC after:      3 weeks
09:10:52 - r287281
(2 days 8 hours ago)
by tuexen
Affects:  /head/usr.bin/sockstat/sockstat.c
Report CLOSED as state for bound sockets for consistency with
netstat and the way TCP is handled.

PR:             201585
MFC after:      3 weeks
08:16:57 - r287280
(2 days 9 hours ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
In r286705 (Illumos 5960/a2cdcdd), a separate thread is created with curproc
as parent.  In the case of a send or receive, the curproc would be the
userland application that issues the ioctl.  This would trigger an assertion
failure introduced in Solaris compatibility shims in r196458 when kernel is
compiled with INVARIANTS.

Fix this by using p0 (proc0 or kernel) as the parent thread when creating
the kernel threads.
07:59:31 - r287279
(2 days 9 hours ago)
by glebius
Affects:  /head/UPDATING
Add reminder to run etcupdate or mergemaster to get updated
rc.d scripts for wireless.

Poked by:       adrian
07:14:29 - r287278
(2 days 10 hours ago)
by adrian
Affects: 
(4 files)
/head/sys/netinet6/*
Implement RSS hashing/re-hashing for IPv6 ingress packets.

This mirrors the basic IPv4 implementation - IPv6 packets under RSS
now are checked for a correct RSS hash and if one isn't provided,
it's done in software.

This only handles the initial receive - it doesn't yet handle
reinjecting / rehashing packets after being decapsulated from
various tunneling setups.  That'll come in some follow-up work.

For non-RSS users, this is almost a giant no-op.

It does change a couple of ipv6 methods to use const mbuf * instead of
mbuf * but it doesn't have any functional changes.

So, the following now occurs:

* If the NIC doesn't do any RSS hashing, it's all done in software.
  Single-queue, non-RSS NICs will now have the RX path distributed
  into multiple receive netisr queues.

* If the NIC provides the wrong hash (eg only IPv6 hash when we needed
  an IPv6 TCP hash, or IPv6 UDP hash when we expected IPv6 hash)
  then the hash is recalculated.

* .. if the hash is recalculated, it'll end up being injected into
  the correct netisr queue for v6 processing.

Submitted by:   Tiwei Bie <btw@mail.ustc.edu.cn>
Differential Revision:  https://reviews.freebsd.org/D3504
06:58:30 - r287277
(2 days 10 hours ago)
by adrian
Affects:  /head/sys/netinet/in_rss.c
/head/sys/netinet/in_rss.h
/head/sys/netinet/ip_input.c
Rename rss_soft_m2cpuid() ->  rss_soft_m2cpuid_v4() in preparation for
an IPv6 version to show up.

Submitted by:   Tiwei Bie <btw@mail.ustc.edu.cn>
Differential Revision:  https://reviews.freebsd.org/D3504
06:52:14 - r287276
(2 days 10 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/pmap.c
The TLB1 TSIZE is a multiple of 4, not 2, so shift 2 bits, not 1.
06:28:48 - r287275
(2 days 11 hours ago)
by hselasky
Affects: 
(5 files)
/stable/8/sys/dev/usb/usb_pf.c
/stable/8/sys/dev/usb/usb_transfer.c
MFC r286799:
Fix race in USB PF which can happen if we stop tracing exactly when
the kernel is tapping an USB transfer. This leads to a NULL pointer
access. The solution is to only trace while the USB bus lock is
locked.
06:23:40 - r287274
(2 days 11 hours ago)
by hselasky
Affects: 
(9 files)
/stable/10/sys/boot/usb/bsd_kernel.h
/stable/10/sys/dev/usb/*
MFC r286773:
Improve the realtime properties of USB transfers for embedded systems
like RPI-B and RPI-2.
06:17:39 - r287273
(2 days 11 hours ago)
by hselasky
Affects: 
(4 files)
/stable/9/sys/dev/usb/usb_pf.c
/stable/9/sys/dev/usb/usb_transfer.c
MFC r286799:
Fix race in USB PF which can happen if we stop tracing exactly when
the kernel is tapping an USB transfer. This leads to a NULL pointer
access. The solution is to only trace while the USB bus lock is
locked.
06:11:50 - r287272
(2 days 11 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/usb/usb_pf.c
/stable/10/sys/dev/usb/usb_transfer.c
MFC r286799:
Fix race in USB PF which can happen if we stop tracing exactly when
the kernel is tapping an USB transfer. This leads to a NULL pointer
access. The solution is to only trace while the USB bus lock is
locked.
06:07:55 - r287271
(2 days 11 hours ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/dev/usb/controller/dwc_otg.c
/stable/10/sys/dev/usb/controller/dwc_otg.h
/stable/10/sys/dev/usb/controller/dwc_otgreg.h
MFC r283067, r286118, r285638, r285935, r286778, r286780 and r286802:
- Make the FIFO configuration a bit more flexible for the DWC OTG in
device side mode.
- Limit the number of times we loop inside the DWC OTG poll handler to
avoid starving other fast interrupts. Fix a comment while at it.
- Optimise the DWC OTG host mode driver's transmit path
- Optimise the DWC OTG host mode driver's receive path
- Minor code refactor to avoid duplicating code.
- Handle NYET high speed tokens and predict NAK'ing is up next.
- Fixes for HIGH speed ISOCHRONOUS traffic.
04:33:31 - r287270
(2 days 13 hours ago)
by adrian
Affects:  /head/sys/net/rss_config.c
Remove now unused (and #if 0'ed out) headers.
02:41:59 - r287269
(2 days 15 hours ago)
by jamie
Affects: 
(6 files)
/stable/10/bin/pkill/*
MFC r287012:

  Make pkill/pgrep -j ARG take jname, not just jid.

PR:             201588
Submitted by:   Daniel Shahaf <danielsh at apache.org>
00:05:39 - r287268
(2 days 17 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/i915/i915_drv.c
Mark ValleyView/Bay Trail as not supported
2015 - 08 - 28   (3 days ago)
22:42:37 - r287267
(2 days 19 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/10/sys/fs/nfsserver/nfs_nfsdstate.c
MFC: r286790
For the case where an NFSv4.1 ExchangeID operation has the client identifier
that already has a confirmed ClientID, the nfsrv_setclient() function would
not fill in the clientidp being returned. As such, the value of ClientID
returned would be whatever garbage was on the stack.
This patch fixes the problem by filling in these fields.
20:53:08 - r287266
(2 days 20 hours ago)
by jilles
Affects: 
(3 files)
/stable/10/usr.bin/find/extern.h
/stable/10/usr.bin/find/misc.c
MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;.

If the resulting argument is longer than MAXPATHLEN, realloc() was called to
extend the space, but the new pointer was not correctly stored.

Different from what OpenBSD has done, rewrite brace_subst() to calculate the
necessary space first and realloc() at most once.

As before, the e_len fields are not updated in case of a realloc.
Therefore, a following long argument will do another realloc.

PR:             201750
20:06:58 - r287265
(2 days 21 hours ago)
by imp
Affects:  /head/sys/kern/init_main.c
Remove now obsolete comment.

MFC After: 2 days
19:53:19 - r287264
(2 days 21 hours ago)
by imp
Affects:  /head/sys/kern/init_main.c
Per overwhelming sentiment in the code review, use FEATURE instead.

Differential Revision: https://reviews.freebsd.org/D3488
MFC After: 2 days
16:29:38 - r287263
(3 days 1 hour ago)
by imp
Affects:  /head/sys/conf/kmod.mk
Comment out cleaning files, since it cleans too much.
16:23:03 - r287262
(3 days 1 hour ago)
by imp
Affects:  /head/gnu/usr.bin/binutils/Makefile
Remove .WAIT hacks and put in specific dependencies.
16:09:29 - r287261
(3 days 1 hour ago)
by hselasky
Affects:  /projects/hps_head/sys/netinet/tcp_timer.c
Checking the return value of callout_stop() is not enough to decide if
a previous callout is still pending for completion or not. Use
callout_drain_async() to do this instead.
15:41:09 - r287260
(3 days 2 hours ago)
by imp
Affects:  /head/sys/pc98/include/ofw_machdep.h
/head/sys/x86/include/ofw_machdep.h
Add missing ofw_machdep.h. Make x86 ofw_machdep.h work pc98 too.
This allows the owc module to compile on pc98 and seems preferable to
adding another special case in the build system.
15:36:05 - r287259
(3 days 2 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Add underscores to attributes when checking for __has_attribute.

This is a good practice to avoid confusion with allowed macros.

Suggested by:   jilles
15:27:55 - r287258
(3 days 2 hours ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
/head/sys/dev/mmc/host/dwmmc.h
/head/sys/dev/mmc/host/dwmmc_reg.h
Move dwmmc.h to dwmmc_reg.h. This is in preperation for adding support to
subclass the dwmmc driver to allow SoC specific attachments.

Sponsored by:   ABT Systems Ltd
14:50:36 - r287257
(3 days 2 hours ago)
by imp
Affects:  /head/sys/boot/libstand32/Makefile
Add back missing -m32 for amd64 and powerpc64 that was lost
in the move to bsd.stand.mk.
14:26:11 - r287256
(3 days 3 hours ago)
by trasz
Affects:  /head/sys/fs/nfs/nfs_commonacl.c
Fix an NFS server bug that manifested in "ls -al" displaying a plus
sign on every directory exported via NFSv4 with NFSv4 ACLs enabled.

Reviewed by:    rmacklem@
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D3502
14:13:01 - r287255
(3 days 3 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
trailing space
14:06:28 - r287254
(3 days 3 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Be more GCC-friendly with attributes

Being clang the default compiler, we were always giving precedence to
the __has_attribute check. Unfortunately clang generally doesn't support
the new attributes (alloc_size was briefly supported and then reverted)
so we were always doing both checks. Give the precedence to GCC as that is
the working case now.

Do the same for  __has_builtin() for consistency.
13:57:30 - r287253
(3 days 3 hours ago)
by imp
Affects:  /head/sys/conf/kmod.mk
Fix cleaning of files generated from .m sources.
12:02:40 - r287252
(3 days 5 hours ago)
by ae
Affects: 
(3 files)
/stable/9/sys/dev/md/md.c
MFC r286720:
  Use g_conf_printf_escaped() to escape illegal symbols in file name.

  PR:           202289
11:56:20 - r287251
(3 days 5 hours ago)
by ae
Affects: 
(2 files)
/stable/10/sys/dev/md/md.c
MFC r286720:
  Use g_conf_printf_escaped() to escape illegal symbols in file name.

  PR:           202289
10:34:37 - r287250
(3 days 7 hours ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
Only check for the bus frequency if it has not already been set, for
example through a driver running as a subclass of this.

Sponsored by:   ABT Systems Ltd
09:38:18 - r287249
(3 days 8 hours ago)
by bz
Affects:  /head/sys/netinet6/udp6_usrreq.c
remove a left-over after r220463 empty #ifdef INET check.

MFC after:      1 week
07:31:19 - r287248
(3 days 10 hours ago)
by hselasky
Affects:  /projects/hps_head/share/man/man9/timeout.9
/projects/hps_head/sys/kern/kern_timeout.c
Revert r287194 due to coming changes in -current.
06:41:40 - r287247
(3 days 11 hours ago)
by delphij
Affects:  /head/lib/libgeom/geom_xml2tree.c
Plug memory leaks when running out of memory.

Reported by:    clang scan-build
MFC after:      2 weeks
06:07:31 - r287246
(3 days 11 hours ago)
by melifaro
Affects: 
(518 files)
/projects/routing/*
Sync to HEAD@r287236
05:58:16 - r287245
(3 days 11 hours ago)
by adrian
Affects: 
(4 files)
/head/sys/net/*
/head/sys/netinet/in_rss.c
/head/sys/netinet6/in6_rss.c
Replace the printf()s with optional rate limited debugging for RSS.

Submitted by:   Tiwei Bie <btw@mail.ustc.edu.cn>
Differential Revision:  https://reviews.freebsd.org/D3471
05:29:52 - r287244
(3 days 12 hours ago)
by melifaro
Affects:  /projects/routing/sys/net/route.h
/projects/routing/sys/net/route_internal.h
Fix userland builds.
Add forgotten route_internal header.
05:25:29 - r287243
(3 days 12 hours ago)
by melifaro
Affects: 
(1188 files)
/projects/routing/*
Merge recent HEAD.
05:20:31 - r287242
(3 days 12 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/trap.c
Fix text alignment.  mcsr was indented one too many spaces.
04:32:43 - r287241
(3 days 13 hours ago)
by imp
Affects:  /head/gnu/usr.bin/binutils/Makefile
Add another .WAIT since sometimes we lose the race.
03:03:09 - r287240
(3 days 14 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/pmap.c
/head/sys/powerpc/booke/trap_subr.S
/head/sys/powerpc/include/tlb.h
Extend pmap to support e500mc and e5500.

As part of this, clean up tlb1_init(), since bootinfo is always NULL here just
eliminate the loop altogether.

Also, fix a bug in mmu_booke_mapdev_attr() where it's possible to map a larger
immediately following a smaller page, causing the mappings to overlap.  Instead,
break up the new mapping into smaller chunks.  The downside to this is that it
uses more precious TLB1 entries, which, on smaller chips (e500v2) it could cause
problems with TLB1 being out of space (e500v2 only has 16 TLB1 entries).

Obtained from:  Semihalf (partial)
Sponsored by:   Alex Perez/Inertial Computing
02:29:31 - r287239
(3 days 15 hours ago)
by imp
Affects:  /head/sys/dev/ow/ow.c
Simply to appease gcc's warnings.
01:32:42 - r287238
(3 days 16 hours ago)
by yongari
Affects:  /head/sys/dev/msk/if_mskreg.h
Set DMA alignment constraint of status, TX and RX LEs(List Elements
in Marvell terms) to 32768.  32768 looks overkill but it will
ensure correct DMAed update.  This change addresses occasional
watchdog timeouts reported on 10.2-RELEASE.

Tested by:      Johann Hugo <jhugo@meraka.csir.co.za>
MFC after:      2 weeks
00:49:30 - r287237
(3 days 16 hours ago)
by delphij
Affects:  /head/bin/rm/rm.c
Respect locale settings.

MFC after:      2 weeks
00:44:58 - r287236
(3 days 17 hours ago)
by delphij
Affects:  /head/bin/df/df.c
Use exit() instead of return in main().

MFC after:      2 weeks
00:44:17 - r287235
(3 days 17 hours ago)
by markj
Affects:  /head/sys/sys/pcpu.h
/head/sys/vm/vm_page.c
Remove weighted page handling from vm_page_advise().

This was added in r51337 as part of the implementation of
madvise(MADV_DONTNEED).  Its objective was to ensure that the page daemon
would eventually reclaim other unreferenced pages (i.e., unreferenced pages
not touched by madvise()) from the active queue.

Now that the pagedaemon performs steady scanning of the active page queue,
this weighted handling is unnecessary.  Instead, always "cache" clean pages
by moving them to the head of the inactive page queue.  This simplifies the
implementation of vm_page_advise() and eliminates the fragmentation that
resulted from the distribution of pages among multiple queues.

Suggested by:   alc
Reviewed by:    alc
Sponsored by:   EMC / Isilon Storage Division
Differential Revision:  https://reviews.freebsd.org/D3401
00:38:18 - r287234
(3 days 17 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c
Re-apply r274569. It was reverted in r276848 since that appeared to fix
some ctfmerge crashes that started to occur on i386 weeks after r274569 was
committed. Some later investigation indicated that the crashes were caused
by malformed CTF info that led to a stack overflow. The issue with CTF
info in i386 kernels seems to have been resolved by r261246, which updated
libdwarf and libelf.

r274569 fixes a bug which caused duplicate types to appear in the kernel's
CTF info. This duplication generally does not cause problems when using
DTrace, but makes it easier to hit the limit of 2^15 - 1 distinct type
definitions in a CTF container.

MFC after:      2 weeks
00:17:21 - r287233
(3 days 17 hours ago)
by markj
Affects:  /head/sys/amd64/amd64/exception.S
Remove an unneeded instruction.

MFC after:      1 week
00:12:59 - r287232
(3 days 17 hours ago)
by markj
Affects:  /head/share/man/man9/nv.9
nv.h lives in sys/ as of r279439.
00:06:31 - r287231
(3 days 17 hours ago)
by markj
Affects: 
(2 files)
/stable/10/sys/kern/subr_witness.c
MFC r285252:
Fix an incorrect assertion in witness.
2015 - 08 - 27   (4 days ago)
23:55:46 - r287230
(3 days 17 hours ago)
by markj
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
MFC r286167:
Avoid dereferencing curthread->td_proc->p_cred in DTrace probe context.
23:52:53 - r287229
(3 days 17 hours ago)
by markj
Affects: 
(2 files)
/stable/10/sys/ofed/include/linux/in.h
MFC r286418:
ipv4_is_zeronet() and ipv4_is_loopback() expect an address in network
order, but IN_ZERONET and IN_LOOPBACK expect it in host order.
23:46:45 - r287228
(3 days 18 hours ago)
by markj
Affects: 
(3 files)
/stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
MFC r286169:
Perform bounds checking when constructing a format string.

PR:     201657
23:46:42 - r287227
(3 days 18 hours ago)
by imp
Affects: 
(10 files)
/head/lib/libstand/Makefile
/head/share/mk/bsd.stand.mk
/head/sys/boot/*
Use CFLAGS_NO_SIMD in preference to varying lists of -mno-xxxx flags.
Go ahead and defined -D_STANDALONE for all targets (only strictly
needed for some architecture, but harmless on those it isn't required
for). Also add -msoft-float to all architectures uniformly rather
that higgley piggley like it is today.

Differential Revision: https://reviews.freebsd.org/D3496
23:46:11 - r287226
(3 days 18 hours ago)
by markj
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
MFC r286169:
Perform bounds checking when constructing a format string.

PR:     201657
23:33:38 - r287225
(3 days 18 hours ago)
by imp
Affects: 
(27 files)
/head/share/man/*
/head/sys/*
New 1-Wire bus implementation. 1-Wire controller is abstracted, though
only gpiobus configured via FDT is supported. Bus enumeration is
supported. Devices are created for each device found. 1-Wire
temperature controllers are supported, but other drivers could be
written. Temperatures are polled and reported via a sysctl.  Errors
are reported via sysctl counters. Mis-wired bus detection is included
for more trouble shooting. See ow(4), owc(4) and ow_temp(4) for
details of what's supported and known issues.

This has been tested on Raspberry Pi-B, Pi2 and Beagle Bone Black
with up to 7 devices.

Differential Revision: https://reviews.freebsd.org/D2956
Relnotes: yes
MFC after: 2 weeks
Reviewed by: loos@ (with many insightful comments)
22:42:02 - r287224
(3 days 19 hours ago)
by imp
Affects:  /head/share/mk/bsd.README
Document bsd.endian.mk.
21:52:09 - r287223
(3 days 19 hours ago)
by delphij
Affects: 
(4 files)
/stable/10/usr.bin/patch/inp.c
/stable/10/usr.bin/patch/pch.c
/stable/10/usr.bin/patch/util.c
MFC r281800 (pfg):

patch(1): small include changes.

Mostly to match OpenBSD, no functional change.

MFC r286601 + 286617:

use posix_spawn(3) instead of fork() and exec() manually as suggested
by jmg@.
21:27:47 - r287222
(3 days 20 hours ago)
by kp
Affects: 
(6 files)
/head/*
pf: Remove support for 'scrub fragment crop|drop-ovl'

The crop/drop-ovl fragment scrub modes are not very useful and likely to confuse
users into making poor choices.
It's also a fairly large amount of complex code, so just remove the support
altogether.

Users who have 'scrub fragment crop|drop-ovl' in their pf configuration will be
implicitly converted to 'scrub fragment reassemble'.

Reviewed by:    gnn, eri
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D3466
21:16:24 - r287221
(3 days 20 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_backend_block.c
Fix type bug introduced at r286811.
20:52:41 - r287220
(3 days 20 hours ago)
by peter
Affects:  /head/etc/rc.d/jail
Fix a conversion error in rc.d/jail
20:38:45 - r287219
(3 days 21 hours ago)
by alc
Affects:  /head/sys/vm/vm_pageout.c
In vm_pageout_scan(), simplify the logic for determining if a page can be
paged out and apply some nearby style fixes.

In collaboration with:  kib
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation, EMC / Isilon Storage Division
19:12:42 - r287218
(3 days 22 hours ago)
by jmg
Affects:  /head/usr.bin/netstat/netstat.1
add documentation for timers that silby added in r197244, almost 6 years
ago...
18:11:00 - r287217
(3 days 23 hours ago)
by delphij
Affects:  /head/usr.sbin/syslogd/syslogd.c
die() would never return, mark it as so.

MFC after:      2 weeks
17:16:18 - r287216
(4 days ago)
by ume
Affects: 
(5 files)
/head/kerberos5/*
Move setting of LDFLAGS to the modules which require it actually, as
other kerberos5 modules do so.
16:36:39 - r287215
(4 days 1 hour ago)
by bdrewery
Affects: 
(2 files)
/stable/10/share/man/man9/Makefile
MFC r286966:

  Add link for rw_unlock(9) to rwlock(9).
16:27:51 - r287214
(4 days 1 hour ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
There is no need to get the bus tag or handle.

Sponsored by:   ABT Systems Ltd
16:24:30 - r287213
(4 days 1 hour ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
Limit the speed to the bus frequency.

Sponsored by:   ABT Systems Ltd
16:18:22 - r287212
(4 days 1 hour ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
Allow the fifo-depth and num-slots to be missing. For the former we read
the value from the hardware, for the latter assume a single slot.

Sponsored by:   ABT Systems Ltd
15:27:41 - r287211
(4 days 2 hours ago)
by bz
Affects:  /head/sys/netinet/udp_usrreq.c
/head/sys/netinet/udp_var.h
/head/sys/netinet6/udp6_usrreq.c
get_inpcbinfo() and get_pcblist() are UDP local functions and
do not do what one would expect by name. Prefix them with "udp_"
to at least obviously limit the scope.

This is a non-functional change.

Reviewed by:            gnn, rwatson
MFC after:              2 weeks
Differential Revision:  https://reviews.freebsd.org/D3505
15:21:58 - r287210
(4 days 2 hours ago)
by gjb
Affects: 
(4 files)
/stable/10/release/doc/share/xml/*
/stable/9/release/doc/share/xml/*
Document SA-15:21, SA-15:22, EN-15:15.

Sponsored by:   The FreeBSD Foundation
15:16:41 - r287209
(4 days 2 hours ago)
by ed
Affects: 
(5 files)
/head/share/man/man4/rights.4
/head/sys/*
/head/usr.bin/procstat/procstat_files.c
Decompose linkat()/renameat() rights to source and target.

To make it easier to understand how Capsicum interacts with linkat() and
renameat(), rename the rights to CAP_{LINK,RENAME}AT_{SOURCE,TARGET}.

This also addresses a shortcoming in Capsicum, where it isn't possible
to disable linking to files stored in a directory. Creating hardlinks
essentially makes it possible to access files with additional rights.

Reviewed by:    rwatson, wblock
Differential Revision:  https://reviews.freebsd.org/D3411
15:03:34 - r287208
(4 days 2 hours ago)
by ume
Affects:  /head/kerberos5/Makefile.inc
/head/kerberos5/lib/libhdb/Makefile
Make it buildable with WITH_OPENLDAP, again.

MFC after:      1 week
14:07:28 - r287207
(4 days 3 hours ago)
by loos
Affects: 
(2 files)
/stable/10/sys/netpfil/pf/pf_if.c
MFC r287119:

  Reapply r196551 which was accidentally reverted by r223637 (update to
  OpenBSD pf 4.5).

  Fix argument ordering to memcpy as well as the size of the copy in the
  (theoretical) case that pfi_buffer_cnt should be greater than ~_max.

  This fix the failure when you hit the self table size and force it to be
  resized.

  Sponsored by: Rubicon Communications (Netgate)
14:00:23 - r287206
(4 days 3 hours ago)
by kan
Affects:  /head/sys/sys/cdefs.h
Repair sys/cdefs.h enough to be usable with GCC 5.x

The __alloc_size and __alloc_align need to be defined to
nothingness for lint, but the existing check is deficient
and allows attributes with working __has_attrubute() to
slip through.
14:00:20 - r287205
(4 days 3 hours ago)
by kan
Affects:  /head/contrib/ncurses/ncurses/base/MKlib_gen.sh
Make ncurses build with GCC 5.0 and up

Merge the end result of two upstream changes:

Original fix from 20141206:
  + modify MKlib_gen.sh to work around change in development version of
    gcc introduced here:
            https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
            https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00236.html
    (reports by Marcus Shawcroft, Maohui Lei).

Later fixed in different manner in 20150725:
  + use alternate workaround for gcc 5.x feature (adapted from patch by
    Mikhail Peselnik).
14:00:16 - r287204
(4 days 3 hours ago)
by kan
Affects:  /head/usr.bin/vi/catalog/Makefile
Unbreak nvi message catalog generation for 8 bit locales.

Feeding any file encoded in 8 bit locales such as KOI8-RU
to sort utility running under UTF-8 locale produces astonishing
result of recoding the output to UTF-8. To counter that, just
run sort under 'C' locale for now.
13:17:05 - r287203
(4 days 4 hours ago)
by ken
Affects: 
(8 files)
/stable/10/sbin/camcontrol/*
/stable/10/sys/cam/scsi/*
MFC, r286965:

  ------------------------------------------------------------------------
  r286965 | ken | 2015-08-20 10:07:51 -0600 (Thu, 20 Aug 2015) | 297 lines

  Revamp camcontrol(8) fwdownload support and add the opcodes subcommand.

  The significant changes and bugs fixed here are:

  1. Fixed a bug in the progress display code:

     When the user's filename is too big, or his terminal width is too
     small, the progress code could wind up using a negative number for
     the length of the "stars" that it uses to indicate progress.

     This negative value was assigned to an unsigned variable, resulting
     in a very large positive value.

     The result is that we wound up writing garbage from memory to the
     user's terminal.

     With an 80 column terminal, a file name length of more than 35
     characters would generate this problem.

     To address this, we now set a minimum progress bar length, and
     truncate the user's file name as needed.

     This has been tested with large filenames and small terminals, and
     at least produces reasonable results.  If the terminal is too
     narrow, the progress display takes up an additional line with each
     update, but this is more user friendly than writing garbage to the
     tty.

  2. SATA drives connected via a SATA controller didn't have SCSI Inquiry
     data populated in struct cam_device.  This meant that the code in
     fw_get_vendor() in fwdownload.c would try to match a zero-length
     vendor ID, and so return the first entry in the vendor table.  (Which
     used to be HITACHI.)  Fixed by grabbing identify data, passing the
     identify buffer into fw_get_vendor(), and matching against the model
     name.

  3. SATA drives connected via a SAS controller do have Inquiry data
     populated.  The table included a couple of entries -- "ATA ST" and
     "ATA HDS", intended to handle Seagate and Hitachi SATA drives attached
     via a SAS controller.  SCSI to ATA translation layers use a vendor
     ID of "ATA" (which is standard), and then the model name from the ATA
     identify data as the SCSI product name when they are returning data on
     SATA disks.  The cam_strmatch code will match the first part of the
     string (because the length it is given is the length of the vendor,
     "ATA"), and return 0 (i.e. a match).  So all SATA drives attached to
     a SAS controller would be programmed using the Seagate method
     (WRITE BUFFER mode 7) of SCSI firmware downloading.

  4. Issue #2 above covered up a bug in fw_download_img() -- if the
     maximum packet size in the vendor table was 0, it tried to default
     to a packet size of 32K.  But then it didn't actually succeed in
     doing that, because it set the packet size to the value that was
     in the vendor table (0).  Now that we actually have ATA attached
     drives fall use the VENDOR_ATA case, we need a reasonable default
     packet size.  So this is fixed to properly set the default packet size.

  5. Add support for downloading firmware to IBM LTO drives, and add a
     firmware file validation method to make sure that the firmware
     file matches the drive type.  IBM tape drives include a Load ID and
     RU name in their vendor-specific VPD page 0x3.  Those should match
     the IDs in the header of the firmware file to insure that the
     proper firmware file is loaded.

  6. This also adds a new -q option to the camcontrol fwdownload
     subcommand to suppress informational output.  When -q is used in
     combination with -y, the firmware upgrade will happen without
     prompting and without output except if an error condition occurs.

  7. Re-add support for printing out SCSI inquiry information when
     asking the user to confirm that they want to download firmware, and
     add printing of ATA Identify data if it is a SATA disk.  This was
     removed in r237281 when support for flashing ATA disks was added.

  8. Add a new camcontrol(8) "opcodes" subcommand, and use the
     underlying code to get recommended timeout values for drive
     firmware downloads.

     Many SCSI devices support the REPORT SUPPORTED OPERATION CODES
     command, and some support the optional timeout descriptor that
     specifies nominal and recommended timeouts for the commands
     supported by the device.

     The new camcontrol opcodes subcommand allows displaying all
     opcodes supported by a drive, information about which fields
     in a SCSI CDB are actually used by a given SCSI device, and the
     nominal and recommended timeout values for each command.

     Since firmware downloads can take a long time in some devices, and
     the time varies greatly between different types of devices, take
     advantage of the infrastructure used by the camcontrol opcodes
     subcommand to determine the best timeout to use for the WRITE
     BUFFER command in SCSI device firmware downloads.

     If the device recommends a timeout, it is likely to be more
     accurate than the default 50 second timeout used by the firmware
     download code.  If the user specifies a timeout, it will override
     the default or device recommended timeout.  If the device doesn't
     support timeout descriptors, we fall back to the default.

  9. Instead of downloading firmware to SATA drives behind a SAS controller
     using WRITE BUFFER, use the SCSI ATA PASS-THROUGH command to compose
     an ATA DOWNLOAD MICROCODE command and it to the drive.  The previous
     version of this code attempted to send a SCSI WRITE BUFFER command to
     SATA drives behind a SAS controller.  Although that is part of the
     SAT-3 spec, it doesn't work with the parameters used with LSI
     controllers at least.

  10.Add a new mechanism for making common ATA passthrough and
     ATA-behind-SCSI passthrough commands.

     The existing camcontrol(8) ATA command mechanism checks the device
     type on every command executed.  That works fine for individual
     commands, but is cumbersome for things like a firmware download
     that send a number of commands.

     The fwdownload code detects the device type up front, and then
     sends the appropriate commands.

  11.In simulation mode (-s), if the user specifies the -v flag, print out
     the SCSI CDB or ATA registers that would be sent to the drive.  This will
     aid in debugging any firmware download issues.

  sbin/camcontrol/fwdownload.c:
        Add a device type to the fw_vendor structure, so that we can
        specify different download methods for different devices from the
        same vendor.  In this case, IBM hard drives (from when they
        still made hard drives) and tape drives.

        Add a tur_status field to the fw_vendor structure so that we can
        specify whether the drive to be upgraded should be ready, not
        ready, or whether it doesn't matter.  Add the corresponding
        capability in fw_download_img().

        Add comments describing each of the vendor table fields.

        Add HGST and SmrtStor to the supported SCSI vendors list.

        In fw_get_vendor(), look at ATA identify data if we have a SATA
        device to try to identify what the drive vendor is.

        Add IBM firmware file validation.  This gets VPD page 0x3, and
        compares the Load ID and RU name in the page to the values
        included in the header.  The validation code will refuse to load
        a firmware file if the values don't match.  This does allow the
        user to attempt a downgrade; whether or not it succeeds will
        likely depend on the drive settings.

        Add a -q option, and disable all informative output
        (progress bars, etc.) when this is enabled.

        Re-add the inquiry in the confirmation dialog so the user has
        a better idea of which device he is talking to.  Add support for
        displaying ATA identify data.

        Don't automatically disable confirmation in simulation (-s) mode.
        This allows the user to see the inquiry or identify data in the
        dialog, and see exactly what they would see when the command
        actually runs.  Also, in simulation mode, if the user specifies
        the -v flag, print out the SCSI CDB or ATA registers that would
        be sent to the drive.  This will aid in debugging any firmware
        download issues.

        Add a timeout field and timeout type to the firmware download
        vendor table.  This allows specifying a default timeout and allows
        specifying whether we should attempt to probe for a recommended
        timeout from the drive.

        Add a new fuction, fw_get_timeout(), that will determine
        which timeout to use for the WRITE BUFFER command.  If the
        user specifies a timeout, we always use that.  Otherwise,
        we will use the drive recommended timeout, if available,
        and fall back to the default when a drive recommended
        timeout isn't available.

        When we prompt the user, tell him what timeout we're going
        to use, and the source of the timeout.

        Revamp the way SATA devices are handled.

        In fwdownload(), use the new get_device_type() function to
        determine what kind of device we're talking to.

        Allow firmware downloads to any SATA device, but restrict
        SCSI downloads to known devices.  (The latter is not a
        change in behavior.)

        Break out the "ready" check from fw_download_img() into a
        new subfunction, fw_check_device_ready().  This sends the
        appropriate command to the device in question -- a TEST
        UNIT READY or an IDENTIFY.  The IDENTIFY for SATA devices
        a SAT layer is done using the SCSI ATA PASS-THROUGH
        command.

        Use the new build_ata_cmd() function to build either a SCSI or
        ATA I/O CCB to issue the DOWNLOAD MICROCODE command to SATA
        devices.  build_ata_cmd() figures looks at the devtype argument
        and fills in the correct CCB type and CDB or ATA registers.

        Revamp the vendor table to remove the previous
        vendor-specific ATA entries and use a generic ATA vendor
        placeholder.  We currently use the same method for all ATA
        drives, although we may have to add vendor-specific
        behavior once we test this with more drives.

  sbin/camcontrol/progress.c:
        In progress_draw(), make barlength a signed value so that
        we can easily detect a negative value.

        If barlength (the length of the progress bar) would wind up
        negative due to a small TTY width or a large filename,
        set the bar length to the new minimum (10 stars) and
        truncate the user's filename.  We will truncate it down to
        0 characters if necessary.

        Calculate a new prefix_len variable (user's filename length)
        and use it as the precision when printing the filename.

  sbin/camcontrol/camcontrol.c:
        Implement a new camcontrol(8) subcommand, "opcodes".  The
        opcodes subcommand allows displaying the entire list of
        SCSI commands supported by a device, or details on an
        individual command.  In either case, it can display
        nominal and recommended timeout values.

        Add the scsiopcodes() function, which calls the new
        scsigetopcodes() function to fetch opcode data from a
        drive.

        Add two new functions, scsiprintoneopcode() and
        scsiprintopcodes(), which print information about one
        opcode or all opcodes, respectively.

        Remove the get_disk_type() function.  It is no longer used.

        Add a new function, dev_has_vpd_page(), that fetches the
        supported INQUIRY VPD list from a device and tells the
        caller whether the requested VPD page is available.

        Add a new function, get_device_type(), that returns a more
        precise device type than the old get_disk_type() function.
        The get_disk_type() function only distinguished between
        SCSI and ATA devices, and SATA devices behind a SCSI to ATA
        translation layer were considered to be "SCSI".

        get_device_type() offers a third type, CC_DT_ATA_BEHIND_SCSI.
        We need to know this to know whether to attempt to send ATA
        passthrough commands.  If the device has the ATA
        Information VPD page (0x89), then it is an ATA device
        behind a SCSI to ATA translation layer.

        Remove the type argument from the fwdownload() subcommand.

        Add a new function, build_ata_cmd(), that will take one set
        of common arguments and build either a SCSI or ATA I/O CCB,
        depending on the device type passed in.

  sbin/camcontrol/camcontrol.h:
        Add a prototype for scsigetopcodes().

        Add a new enumeration, camcontrol_devtype.

        Add prototypes for dev_has_vpd_page(), get_device_type()
        and build_ata_cmd().

        Remove the type argument from the fwdownload() subcommand.

  sbin/camcontrol/camcontrol.8
        Explain that the fwdownload subcommand will use the drive
        recommended timeout if available, and that the user can
        override the timeout.

        Document the new opcodes subcommand.

        Explain that we will attempt to download firmware to any
        SATA device.

        Document supported SCSI vendors, and models tested if known.

        Explain the commands used to download firmware for the
        three different drive and controller combinations.

        Document that the -v flag in simulation mode for the fwdownload
        subcommand will print out the SCSI CDBs or ATA registers that would
        be used.

  sys/cam/scsi/scsi_all.h:
        Add new bit definitions for the one opcode descriptor for
        the REPORT SUPPORTED OPCODES command.

        Add a function prototype for scsi_report_supported_opcodes().

  sys/cam/scsi/scsi_all.c:
        Add a new CDB building function, scsi_report_supported_opcodes().

Sponsored by:   Spectra Logic
13:08:45 - r287202
(4 days 4 hours ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
Allow us to select the transfer count. This allows us to work with hardware
that seems to only work with a single block at a time.

Sponsored by:   ABT Systems Ltd
11:21:34 - r287201
(4 days 6 hours ago)
by glebius
Affects: 
(1211 files)
/projects/ifnet/*
Merge head r257698 through r287199.
10:43:35 - r287200
(4 days 7 hours ago)
by jch
Affects:  /head/sys/kern/kern_timeout.c
Silent a compilation warning on callout_stop()
09:06:14 - r287199
(4 days 8 hours ago)
by kib
Affects: 
(3 files)
/stable/10/lib/libc/sys/procctl.2
/stable/10/sys/kern/kern_procctl.c
MFC r286975:
Remove the wrong asserts.
08:58:03 - r287198
(4 days 8 hours ago)
by jch
Affects:  /head/sys/kern/kern_timeout.c
In callout_stop(), do not forget to initialize not_running variable.
Thanks to hselasky for noticing that.

Differential Revision:  https://reviews.freebsd.org/D3078 (Updated)
Submitted by:           hselasky
Pointy hat to:          jch
08:56:39 - r287197
(4 days 8 hours ago)
by glebius
Affects: 
(87 files)
/head/etc/*
/head/sys/*
/head/tools/tools/iwn/iwnstats/main.c
Replay r286410. Change KPI of how device drivers that provide wireless
connectivity interact with the net80211 stack.

Historical background: originally wireless devices created an interface,
just like Ethernet devices do. Name of an interface matched the name of
the driver that created. Later, wlan(4) layer was introduced, and the
wlanX interfaces become the actual interface, leaving original ones as
"a parent interface" of wlanX. Kernelwise, the KPI between net80211 layer
and a driver became a mix of methods that pass a pointer to struct ifnet
as identifier and methods that pass pointer to struct ieee80211com. From
user point of view, the parent interface just hangs on in the ifconfig
list, and user can't do anything useful with it.

Now, the struct ifnet goes away. The struct ieee80211com is the only
KPI between a device driver and net80211. Details:

- The struct ieee80211com is embedded into drivers softc.
- Packets are sent via new ic_transmit method, which is very much like
  the previous if_transmit.
- Bringing parent up/down is done via new ic_parent method, which notifies
  driver about any changes: number of wlan(4) interfaces, number of them
  in promisc or allmulti state.
- Device specific ioctls (if any) are received on new ic_ioctl method.
- Packets/errors accounting are done by the stack. In certain cases, when
  driver experiences errors and can not attribute them to any specific
  interface, driver updates ic_oerrors or ic_ierrors counters.

Details on interface configuration with new world order:
- A sequence of commands needed to bring up wireless DOESN"T change.
- /etc/rc.conf parameters DON'T change.
- List of devices that can be used to create wlan(4) interfaces is
  now provided by net.wlan.devices sysctl.

Most drivers in this change were converted by me, except of wpi(4),
that was done by Andriy Voskoboinyk. Big thanks to Kevin Lo for testing
changes to at least 8 drivers. Thanks to pluknet@, Oliver Hartmann,
Olivier Cochard, gjb@, mmoll@, op@ and lev@, who also participated in
testing.

Reviewed by:    adrian
Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
08:15:32 - r287196
(4 days 9 hours ago)
by jch
Affects:  /head/sys/kern/kern_timeout.c
In callout_stop(), if a callout is both pending and currently
being serviced return 0 (fail) but it is applicable only
mpsafe callouts.  Thanks to hselasky for finding this.

Differential Revision:  https://reviews.freebsd.org/D3078 (Updated)
Submitted by:           hselasky
Reviewed by:            jch
07:53:58 - r287195
(4 days 9 hours ago)
by melifaro
Affects:  /head/sys/netpfil/ipfw/ip_fw_private.h
Fix packets/bytes accounting on i386.

Spotted by:     julian
07:43:29 - r287194
(4 days 10 hours ago)
by hselasky
Affects:  /projects/hps_head/share/man/man9/timeout.9
/projects/hps_head/sys/kern/kern_timeout.c
Update the callout subsystem to reflect the callout API changes in
r286880. Document the API changes in the timeout.9 manual page.
06:28:42 - r287193
(4 days 11 hours ago)
by delphij
Affects:  /head/usr.sbin/pkg/dns_utils.c
Plug a possible memory leak.

MFC after:      2 weeks
05:39:32 - r287192
(4 days 12 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/drmP.h
More fixes to the new macros
05:27:18 - r287191
(4 days 12 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/drmP.h
Fix typo in new macros
04:25:27 - r287190
(4 days 13 hours ago)
by marcel
Affects:  /head/sys/kern/vfs_mountroot.c
An error of -1 from parse_mount() indicates that the specification
was invalid. Don't trigger a mount failure (which by default means
a panic), but instead just move on to the next directive in the
configuration. This typically has us ask for the root mount.

PR:             163245
03:47:56 - r287189
(4 days 14 hours ago)
by jhibbits
Affects:  /head/sys/conf/files.powerpc
/head/sys/dev/mmc/mmc.c
/head/sys/powerpc/mpc85xx/fsl_sdhc.c
Fix freescale sdhc driver, and add it to the files list.

Also, add it to the mmc DRIVER_MODULE attachment list.
03:44:06 - r287188
(4 days 14 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/trap.c
Use the macro definition for EXC_PGM_TRAP, instead of the magic number.
02:59:48 - r287187
(4 days 14 hours ago)
by imp
Affects:  /head/share/mk/sys.mk
Make sys.mk more compatible with fmake by refraining from using :U
modifiers.

Differential Revision: https://reviews.freebsd.org/D3228
01:55:00 - r287186
(4 days 15 hours ago)
by imp
Affects:  /head/share/mk/bsd.subdir.mk
Automatically append SUBDIR.yes to the SUBDIR variable, and
remove duplicates. We cannot sort SUBDIR because many Makefiles
have .WAIT in the list which is strongly ordering. Rather than
try to second guess when to sort and when to not sort depending
on .WAIT being in the list, just remove duplicates.
01:52:45 - r287185
(4 days 15 hours ago)
by imp
Affects:  /head/share/mk/bsd.files.mk
For each FOO in FILESLISTS, append the value of FOO.yes, sort, and
remove duplicates.
01:02:01 - r287184
(4 days 16 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/ztest/ztest.c
MFC r286737:

Plug a memory leak.
2015 - 08 - 26   (5 days ago)
23:58:03 - r287183
(4 days 17 hours ago)
by imp
Affects:  /head/sys/kern/init_main.c
When the kernel is compiled with INVARIANTS, export that as
debug.invariants.

Differential Revision: https://reviews.freebsd.org/D3488
MFC after: 3 days
23:45:06 - r287182
(4 days 18 hours ago)
by tuexen
Affects:  /head/usr.bin/sockstat/sockstat.1
/head/usr.bin/sockstat/sockstat.c
Add SCTP support.

PR:             201585
MFC after:      3 weeks
23:28:10 - r287181
(4 days 18 hours ago)
by delphij
Affects:  /head/lib/libc/string/strndup.c
Replace strndup with OpenBSD's implementation.

MFC after:      2 weeks
22:59:58 - r287180
(4 days 18 hours ago)
by avatar
Affects: 
(2 files)
/stable/10/sys/dev/sound/midi/midi.c
MFC r286886: Fixing typo as well as improving readability of a few comments.
22:52:18 - r287179
(4 days 18 hours ago)
by tuexen
Affects:  /head/usr.bin/sockstat/sockstat.c
Remove a variable which is set but never used.

PR:             201585
MFC after:      3 weeks
22:50:53 - r287178
(4 days 18 hours ago)
by tuexen
Affects:  /head/usr.bin/sockstat/sockstat.c
Print the status on the first line of a socket description, not at
the last one. This doesn't matter for TCP, but it does for the upcoming
SCTP support.

PR:             201585
MFC after:      3 weeks
22:19:53 - r287177
(4 days 19 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/i915/i915_dma.c
/head/sys/dev/drm2/i915/i915_drv.h
/head/sys/dev/drm2/i915/i915_gem_execbuffer.c
Merge i915_emit_box_p and i915_emit_box as done in linux 3.8

Reviewed by:    dumbbell
Differential Revision:  https://reviews.freebsd.org/D3495
22:09:12 - r287176
(4 days 19 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/i915/i915_gem.c
Back out a change which should not have been committed yet
22:00:40 - r287175
(4 days 19 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/i915/i915_gem_context.c
backout a change that should not have crept in
21:35:16 - r287174
(4 days 20 hours ago)
by bapt
Affects: 
(5 files)
/head/sys/dev/drm2/i915/*
Reduce diff against linux 3.8

Reviewed by:    dumbbell
Differential Revision:  https://reviews.freebsd.org/D3492
21:33:43 - r287173
(4 days 20 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/i915/i915_drv.c
Reduce diff with linux 3.8.13 on i915_drv.c

While here update the list of devices id to match the one in linux 3.8.13

Reviewed by:    dumbbell
Differential Revision:  https://reviews.freebsd.org/D3489
21:31:04 - r287172
(4 days 20 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/drmP.h
Add more DRM_* debug macros from linux 3.8.13
21:17:48 - r287171
(4 days 20 hours ago)
by bapt
Affects: 
(4 files)
/head/sys/dev/drm2/i915/*
Synchronize i915_reg.h with linux 3.8.13 version

Keep a couple of old macros that will be removed lated when the rest of the code
will be updated to 3.8.13 equivalent.
Chase the renamed macros

Reviewed by:    dumbbell
Differential Revision:  https://reviews.freebsd.org/D3487
18:22:59 - r287170
(4 days 23 hours ago)
by jkim
Affects:  /head/ObsoleteFiles.inc
Belatedly add entries for libugidfw.so.4 to catch up with r284745.
18:09:17 - r287169
(4 days 23 hours ago)
by andrew
Affects:  /head/sys/arm64/conf/GENERIC
/head/sys/conf/options.arm64
Add the SOC_HISI_HI6220 option. This will be used to enable drivers for
the HiSilicon hi6220 SoC used in the HiKey 96boards board.

Sponsored by:   ABT Systems Ltd
17:13:47 - r287168
(5 days ago)
by jkim
Affects: 
(73 files)
/head/sys/*
/head/usr.sbin/acpi/acpidb/acpidb.c
Merge ACPICA 20150818.
17:10:43 - r287167
(5 days ago)
by imp
Affects:  /head/share/mk/bsd.cpu.mk
After consultations with the arm community, don't define softfp for
armv6. It's too ambiguous. We do use the softfp ABI for the moment on
armv6, but we allow floating point register use (and the compilers
will generate it). This is too ambiguous to use it as a decider for
which algorithms to use on the platform. Err on the side of caution
and not define it.

Submitted by: ian@
Reviewed by: andrew@
16:36:41 - r287166
(5 days 1 hour ago)
by gnn
Affects:  /head/sys/kern/sched_ule.c
Summary: Add the interactivity equations to the header comment for our
interactivity calculation routine.

Suggested by: rwatson
13:23:56 - r287165
(5 days 4 hours ago)
by bapt
Affects:  /head/sys/dev/drm2/i915/i915_dma.c
Reduce diff on i915_dma.c against linux 3.8.13

No functional changes

Discussed with: dumbbell
Reviewed by:    dumbbell
12:32:46 - r287164
(5 days 5 hours ago)
by zbb
Affects:  /head/sys/arm64/arm64/gic_v3_its.c
Fix race condition in its_cmd_send()

its_cmd_send() can be called by multiple CPUs simultaneously.
After the command is pushed to ITS command ring the completion
status is polled using global pointer to the next free ring slot.
Use copied pointer and provide correct locking to avoid spurious
pointer value when concurrent access occurs.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3436
11:54:40 - r287163
(5 days 5 hours ago)
by pluknet
Affects:  /head/usr.bin/script/script.1
Fix SEE ALSO.

The history mechanism applies to csh.

Sponsored by:   Nginx, Inc.
11:36:23 - r287162
(5 days 6 hours ago)
by andrew
Affects:  /head/sys/arm64/conf/GENERIC
/head/sys/conf/files.arm64
/head/sys/conf/options.arm64
Add an option to select which SoCs we are building for. It is intended to
be used with any SoC specific drivers, for example a ThunderX nic driver
would use something like the following in files.arm64:

arm64/cavium/thunder_nic.c optional soc_cavm_thunderx thndr_nic

Reviewed by:    imp
Sponsored by:   ABT Systems Ltd
Differential Revision:  https://reviews.freebsd.org/D3479
10:54:14 - r287161
(5 days 6 hours ago)
by andrew
Affects:  /head/sys/dev/mmc/host/dwmmc.c
Only access the Samsung registers when targeting Samsung hardware.

Sponsored by:   ABT Systems Ltd
10:32:23 - r287160
(5 days 7 hours ago)
by andrew
Affects:  /head/sys/arm64/conf/GENERIC
Add a above the virtio section.
09:27:44 - r287159
(5 days 8 hours ago)
by des
Affects:  /vendor-crypto/openssh/7.1p1
Tag OpenSSH 7.1p1.
09:27:05 - r287158
(5 days 8 hours ago)
by des
Affects: 
(24 files)
/vendor-crypto/openssh/dist/*
Vendor import of OpenSSH 7.1p1.
09:26:01 - r287157
(5 days 8 hours ago)
by des
Affects:  /vendor-crypto/openssh/7.0p1
Tag OpenSSH 7.0p1.
09:25:17 - r287156
(5 days 8 hours ago)
by des
Affects: 
(158 files)
/vendor-crypto/openssh/dist/*
Vendor import of OpenSSH 7.0p1
03:44:48 - r287155
(5 days 14 hours ago)
by bdrewery
Affects:  /head/sys/dev/filemon/filemon.c
/head/sys/dev/filemon/filemon_lock.c
Fix filemon locking races.

Convert filemon_lock and struct filemon* lock to sx(9), rather than a
self-rolled reader-writer lock, and hold it for the entire time needed.

At least filemon_lock_write() was not checking for active readers when
it would successfully return with the write lock "held".  This led to
a race with reading entries from filemon_inuse as they were removed.  This
could be seen with QUEUE_MACRO_DEBUG enabled, causing -1 to be read as an
entry rather than a valid struct filemon*.

Fixing filemon_lock_write() to check readers was insufficient to fix the
races.

sx(9) was used as the lock could be held while taking proctree_lock and sleeping
in fo_write.

Sponsored by:   EMC / Isilon Storage Division
MFC after:      2 weeks
03:37:33 - r287154
(5 days 14 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/mpc85xx/pci_mpc85xx.c
The Freescale qoriq PCIe controller is compatible with mpc85xx.

Add the compatible checks.

Obtained from:  Semihalf (partial)
Sponsored by:   Alex Perez/Inertial Computing
03:37:18 - r287153
(5 days 14 hours ago)
by bdrewery
Affects:  /head/sys/dev/filemon/filemon_wrapper.c
Avoid taking proctree_lock and searching parents in wrappers if not needed.

This should help the case where filemon is loaded but not in use.

Sponsored by:   EMC / Isilon Storage Division
MFC after:      2 weeks
03:33:34 - r287152
(5 days 14 hours ago)
by bdrewery
Affects:  /head/sys/dev/filemon/filemon_wrapper.c
Remove unneeded inuse list locking in filemon_comment().

Sponsored by:   EMC / Isilon Storage Division
MFC after:      2 weeks
03:32:47 - r287151
(5 days 14 hours ago)
by bdrewery
Affects:  /head/sys/dev/filemon/filemon_wrapper.c
Move common locking for filemon_inuse and struct filemon* to
filemon_pid_check().

This keeps the lock for the filemon_inuse list held only while reading
the list.

Sponsored by:   EMC / Isilon Storage Division
MFC after:      2 weeks
02:47:11 - r287150
(5 days 15 hours ago)
by imp
Affects:  /head/gnu/usr.bin/binutils/Makefile
Drop a .WAIT into the list. Items later in the list than this depend
on items earlier. Enable parallel builds.
01:41:55 - r287149
(5 days 16 hours ago)
by np
Affects: 
(3 files)
/stable/10/sys/dev/cxgbe/adapter.h
/stable/10/sys/dev/cxgbe/t4_main.c
MFC r286926:

cxgbe(4):  Save the flags for the last adapter-wide synchronized
operation that was initiated successfully.  (The caller and thread are
already recorded).
2015 - 08 - 25   (6 days ago)
21:55:15 - r287148
(5 days 19 hours ago)
by jilles
Affects:  /head/bin/sh/expand.c
/head/bin/sh/tests/builtins/Makefile
/head/bin/sh/tests/builtins/case20.0
sh: Fix out of bounds read when there is no ] after a [:class:].

The initial check for a matching ] was incorrect if a ] may be consumed by a
[:class:]. The subsequent loop assumed that there must be a ].

Remove the initial check and make the loop cope with a missing ].

Found with afl-fuzz.

MFC after:      1 week
20:49:05 - r287147
(5 days 20 hours ago)
by delphij
Affects: 
(9 files)
/releng/9.3/*
Fix local privilege escalation in IRET handler. [SA-15:21]

Fix OpenSSH multiple vulnerabilities. [SA-15:22]

Fix insufficient check of unsupported pkg(7) signature methods.
[EN-15:15]

Approved by:    so
20:48:58 - r287146
(5 days 20 hours ago)
by delphij
Affects: 
(11 files)
/releng/10.1/*
Fix local privilege escalation in IRET handler. [SA-15:21]

Fix OpenSSH multiple vulnerabilities. [SA-15:22]

Disabled ixgbe(4) flow-director support. [EN-15:14]

Fix insufficient check of unsupported pkg(7) signature methods.
[EN-15:15]

Approved by:    so
20:48:51 - r287145
(5 days 21 hours ago)
by delphij
Affects: 
(6 files)
/releng/10.2/*
Fix OpenSSH multiple vulnerabilities. [SA-15:22]

Fix insufficient check of unsupported pkg(7) signature methods.
[EN-15:15]

Approved by:    so
20:48:44 - r287144
(5 days 21 hours ago)
by delphij
Affects: 
(6 files)
/stable/10/crypto/openssh/*
/stable/9/crypto/openssh/*
MFC: Fix OpenSSH multiple vulnerabilities.

Security:       FreeBSD-SA-15:22.openssh
20:48:37 - r287143
(5 days 21 hours ago)
by delphij
Affects:  /head/crypto/openssh/monitor.c
/head/crypto/openssh/monitor_wrap.c
/head/crypto/openssh/mux.c
Fix OpenSSH multiple vulnerabilities by backporting three changes
from OpenSSH-portable master.

Git revisions:  45b0eb752c94954a6de046bfaaf129e518ad4b5b
                5e75f5198769056089fb06c4d738ab0e5abc66f7
                d4697fe9a28dab7255c60433e4dd23cf7fce8a8b
Reviewed by:    des
Security:       FreeBSD-SA-15:22.openssh
20:14:50 - r287142
(5 days 21 hours ago)
by bapt
Affects: 
(1067 files)
/projects/collation/*
Merge from HEAD
19:41:43 - r287141
(5 days 22 hours ago)
by jkim
Affects:  /vendor-sys/acpica/20150818
Tag ACPICA 20150818.
19:41:12 - r287140
(5 days 22 hours ago)
by jkim
Affects: 
(80 files)
/vendor-sys/acpica/dist/changes.txt
/vendor-sys/acpica/dist/generate/unix/*
/vendor-sys/acpica/dist/source/*
Import ACPICA 20150818.
19:18:38 - r287139
(5 days 22 hours ago)
by jkim
Affects: 
(4 files)
/stable/10/sys/x86/include/_types.h
/stable/9/sys/x86/include/_types.h
MFC:    r286265, r286293, r286328

Always define __va_list for amd64 and restore pre-r232261 behavior for i386.
17:39:03 - r287138
(6 days ago)
by cem
Affects:  /head/sys/dev/ioat/ioat.c
/head/tools/tools/ioat/Makefile
ioat(4): Minor style cleanups

Suggested by:   ngie
Reviewed by:    jimharris
Approved by:    markj (mentor)
Sponsored by:   EMC / Isilon Storage Division
Differential Revision:  https://reviews.freebsd.org/D3481
17:11:49 - r287137
(6 days ago)
by imp
Affects:  /head/share/mk/bsd.cpu.mk
Add softfp to MACHINE_CPU more often when we're compiling for soft
float targets. It is added for booke on powerpc and all arm with hf in
the string. Also add arm to all arm builds and armv6 to armv6 and
newer builds.

PR: 202641
17:02:28 - r287136
(6 days ago)
by andrew
Affects:  /head/sys/arm64/arm64/db_interface.c
Use kdb_jmpbuf and setjmp to handle accessing invalid addresses in the
debugger memory access functions. This allows us to correctly reenter into
the debugger on failure.

Sponsored by:   ABT Systems Ltd
16:50:25 - r287135
(6 days ago)
by andrew
Affects:  /head/sys/arm64/arm64/db_interface.c
Use nitems to count the number of items in a static array.

Sponsored by:   ABT Systems Ltd
16:49:10 - r287134
(6 days ago)
by andrew
Affects:  /head/sys/arm64/arm64/trap.c
Call into kdb on a data abort when it's enabled. This is needed to
correctly handle trying to access an invalid address in the debugger.

While here document that the breakpoint handler is supposed to fall
through to the following case.

Sponsored by:   ABT Systems Ltd
16:43:32 - r287133
(6 days 1 hour ago)
by andrew
Affects:  /head/sys/arm64/arm64/support.S
Correctly update the address to write to after storing the stack pointer
in the kernels setjmp function.

Sponsored by:   ABT Systems Ltd
15:34:28 - r287132
(6 days 2 hours ago)
by araujo
Affects:  /head/sys/dev/xen/blkback/blkback.c
/head/sys/dev/xen/netfront/netfront.c
/head/sys/dev/xen/xenstore/xenstore.c
Code cleanup unused-but-set-variable spotted by gcc.

Reviewed by:    royger
Approved by:    bapt (mentor)
Differential Revision:  D3476
15:33:09 - r287131
(6 days 2 hours ago)
by araujo
Affects:  /head/sbin/newfs/newfs.c
Code cleanup unused-but-set-variable spotted by gcc.

Approved by:    bapt (mentor)
Differential Revision:  D3475
15:32:08 - r287130
(6 days 2 hours ago)
by araujo
Affects:  /head/sbin/ipfw/ipfw2.c
/head/sbin/ipfw/nat.c
/head/sbin/ipfw/tables.c
Code cleanup unused-but-set-variable spotted by gcc.

Reviewed by:    melifaro
Approved by:    bapt (mentor)
Differential Revision:  D3473
15:27:32 - r287129
(6 days 2 hours ago)
by araujo
Affects: 
(6 files)
/head/usr.bin/ypwhich/*
/head/usr.sbin/ypserv/*
Sync ypwhich(1) code with the OpenBSD version that is more modern.
Update the BSD LICENSE and remove the 3rd clause.

Reviewed by:    rodrigc, kib, bapt
Approved by:    bapt (mentor)
Obtained from:  OpenBSD
Differential Revision:  D3249
15:14:50 - r287128
(6 days 2 hours ago)
by marcel
Affects: 
(6 files)
/stable/10/sys/amd64/amd64/pmap.c
/stable/10/sys/dev/vt/*
MFC r286808, r286809, r286867, r286868

-   Improve support for Macs that have a stride not equal to the
    horizonal resolution (width).
-   Support frame buffers that are larger than the default screen
    size.
-   Support large frame buffers: add 24 more page table pages we
    allocate on boot-up.

PR:             193745
14:49:11 - r287127
(6 days 2 hours ago)
by zbb
Affects:  /head/sys/arm/arm/locore-v6.S
Leave hypervisor mode upon startup on ARMv7

If ARMv7 boots in HYP mode, switch to SVC32.

Reviewed by:   ian
Submitted by:  Wojciech Macek <wma@semihalf.com>
               Jakub Palider  <jpa@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Annapurna Labs
Differential Revision: https://reviews.freebsd.org/D1810
14:39:40 - r287126
(6 days 3 hours ago)
by marcel
Affects: 
(12 files)
/stable/10/sys/*
MFC r286667 & r286723

Better support memory mapped console devices, such as VGA and EFI
frame buffers and memory mapped UARTs.

PR:             191564, 194952, 202276
09:16:09 - r287125
(6 days 8 hours ago)
by ed
Affects:  /head/lib/libc/locale/utf8.c
Make UTF-8 parsing and generation more strict.

- in mbrtowc() we need to disallow codepoints above 0x10ffff.
- In wcrtomb() we need to disallow codepoints between 0xd800 and 0xdfff.

Reviewed by:    bapt
Differential Revision:  https://reviews.freebsd.org/D3399
06:12:59 - r287124
(6 days 11 hours ago)
by adrian
Affects:  /head/sys/netinet6/udp6_usrreq.c
Call the new RSS hash calculation function to correctly calculate a hash
based on the configured requirements for the protocol.

Tested:

* UDP IPv6 TX/RX testing, w/ RSS enabled, 82599 ixgbe(4) hardware
05:31:00 - r287123
(6 days 12 hours ago)
by delphij
Affects:  /head/usr.bin/at/Makefile.inc
Finish r89633 and completely remove the remaining of VERSION.

PR:             bin/202308
Submitted by:   John Hein <z7dr6ut7gs snkmail com>
MFC after:      2 weeks
04:03:51 - r287122
(6 days 13 hours ago)
by marcel
Affects: 
(9 files)
/stable/10/usr.bin/mkimg/*
MFC r286660, r286419, r286417, r286395, r286215, r284883

-   Add the ntfs alias
-   Fix the dynamic VHD format to work with qemu
-   Update manpage

MFH:
Differential Revision:
01:01:25 - r287121
(6 days 16 hours ago)
by alc
Affects:  /head/sys/vm/vm_pageout.c
Testing whether a page is dirty does not require the page lock.  Moreover,
it may involve a pmap operation that iterates over the page's PV list, so
unnecessarily holding the page lock is undesirable.

MFC after:      1 week
Sponsored by:   EMC / Isilon Storage Division

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 26 ms, 206 revisions printed. Current time is 2015-08-31 17:48:53. All times are in UTC/GMT.