Displaying 1 50 of 271,376 commits (0.192s)

FreeBSD — head/sys/dev/gpio gpioled.c

Fix the build of non-FDT systems by moving the gpiobusvar.h header outside
the FDT #ifdef.

While here remove a few unused headers.
Delta File
+3 -5 head/sys/dev/gpio/gpioled.c
+3 -5 1 file

FreeBSD — head/sys/netinet sctp_sysctl.c

Don't zero the stats before they are read out.

MFC after: 3 days
Delta File
+16 -11 head/sys/netinet/sctp_sysctl.c
+16 -11 1 file

FreeBSD — head/lib/libc/sys utrace.2

<sys/param.h> is a superset of <sys/types.h> and must always come
first.  Coincidentally, today is the 11th anniversary of this man
page's (and this bug's) first appearance in FreeBSD.

MFC after:        3 days
Delta File
+1 -2 head/lib/libc/sys/utrace.2
+1 -2 1 file

FreeBSD — stable/10/sys/dev/puc pucdata.c

MFC r273551:

  puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P
  card.

  Submitted by:        Alex Burlyga <alex.burlyga.ietf at gmail.com>
Delta File
+7 -0 stable/10/sys/dev/puc/pucdata.c
+7 -0 1 file

FreeBSD — head/usr.sbin/bsdinstall bsdinstall.8

Rewrite some of the disk setup documentation to be clearer and contain
less obsolete information. Also move the entropy command down the list --
the list is ordered by likelihood of use rather than alphabetically.

MFC after:        1 week
Delta File
+34 -32 head/usr.sbin/bsdinstall/bsdinstall.8
+34 -32 1 file

FreeBSD — stable/10/sys/dev/vt vt_core.c, stable/10/sys/sys consio.h

vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font

To restore the default font using vidcontrol(1), use the "-f" flag
without an argument:
    vidcontrol -f < /dev/ttyv0

PR:                193910
Differential Revision:        https://reviews.freebsd.org/D971
Submitted by:        Marcin Cieslak <saper at saper.info>
Reviewed by:        ray@, emaste@
Approved by:        ray@
MFC of:                r273544

FreeBSD — head/bin/sh expand.c, head/bin/sh/tests/expansion redir1.0 Makefile

sh: Fix corruption of CTL* bytes in positional parameters in redirection.

EXP_REDIR was not being checked for while expanding positional parameters in
redirection, so CTL* bytes were not being prefixed where they should be.

MFC after:        1 week

FreeBSD — head/etc/rc.d geli

rc.d/geli should not depend on random, as the attach functionality
do not require additional entropy to function.

It would create a circular dependency (not immediately obvious:
geli provides 'disks' and requires 'random' as of r273872,
'random' requires 'FILESYSTEMS', 'FILESYSTEMS' requires 'root',
'root' requires 'swap', and finally 'swap' requires 'disk').
Delta File
+0 -1 head/etc/rc.d/geli
+0 -1 1 file

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

Change the default log level for iSCSI target from 3 to 1.  It should
have been 1 from the beginning; not sure how it ended up at 3.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/dev/gpio gpiobus.c gpioled.c

Fix the gpiobus locking by using a more sane model where it isn't necessary
hold the gpiobus lock between the gpio calls.

gpiobus_acquire_lock() now accepts a third parameter which tells gpiobus
what to do when the bus is already busy.

When GPIOBUS_WAIT wait is used, the calling thread will be put to sleep
until the bus became free.

With GPIOBUS_DONTWAIT the calling thread will receive EWOULDBLOCK right
away and then it can act upon.

This fixes the gpioiic(4) locking issues that arises when doing multiple
concurrent access on the bus.

FreeBSD — stable/9/sys/dev/acpi_support acpi_ibm.c, stable/9/sys/dev/acpica acpi.c

MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Sponsored by:        Mellanox Technologies

FreeBSD — stable/9/sys/dev/asmc asmc.c asmcvar.h

MFC r271975:
Improvements to asmc(4):

1. changed the code so that 2**16 keys are supported
2. changed the number of possible fans in a system from 2 to 6
3. added write support for some fan sysctls
4. added a new sysctl which shows the ID of the fan
5. added four more apple models with their temperature keys
6. changed the maxnumber of temperature keys from 36 to 80
7. replaced several fixed buf sizes to sizeof buf

Obtained from:             Denis Ahrens denis at h3q.com

FreeBSD — head/sys/boot/fdt fdt_loader_cmd.c

The command name is a constant, use the correct type.

MFC after:        1 week

FreeBSD — head/sys/boot/fdt fdt_loader_cmd.c

Clean up the types of a few strings to make them const when they are never
written to.

FreeBSD — stable/9/sys/amd64/amd64 fpu.c, stable/9/sys/arm/arm busdma_machdep.c

MFC r228478, r263710, r273377, r273378, r273423, r273455 and r273899:
- Reimplement CTASSERT() using _Static_assert().
- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by:        Mellanox Technologies

FreeBSD — head/share/man/man9 fetch.9 store.9, head/sys/kern kern_umtx.c subr_uio.c

Add type qualifier volatile to the base (userspace) address argument
of fuword(9) and suword(9).  This makes the functions type-compatible
with volatile objects and does not require devolatile force, e.g. in
kern_umtx.c.

Requested by:        bde
Reviewed by:        jhb
Sponsored by:        The FreeBSD Foundation
MFC after:        3 weeks

FreeBSD — head/sys/netgraph ng_frame_relay.c

Use macro ERROUT() to make code more laconic and follow style of other
netgraph code.

Submitted by:        Dmitry Luhtionov <dmitryluhtionov gmail.com>
Delta File
+15 -24 head/sys/netgraph/ng_frame_relay.c
+15 -24 1 file

FreeBSD — head/sys/netinet in_gif.c

Remove the check for packets with broadcast source from if_gif's encapcheck.

The check was recommened in the draft-ietf-ngtrans-mech-05.txt. But it isn't
clear, should it compare the source with all direct broadcast addresses in the
system or not.
RFC 4213 says it is enough to verify that the source address is the address
of the encapsulator, as configured on the decapsulator. And this verification
can be extended by administrator with any other forms of IPv4 ingress filtering.

Discussed with:        glebius, melifaro
Sponsored by:        Yandex LLC
Delta File
+0 -14 head/sys/netinet/in_gif.c
+0 -14 1 file

FreeBSD — head/sys/arm/arm machdep.c

Fix usage of kern_getenv().
Delta File
+3 -1 head/sys/arm/arm/machdep.c
+3 -1 1 file

FreeBSD — head ObsoleteFiles.inc

Add /etc/rc.d/initrandom, which was removed in r273872.

Noticed by:        ache@
Delta File
+2 -0 head/ObsoleteFiles.inc
+2 -0 1 file

FreeBSD — head/sbin/route route.c

Print human-readable error for "route not found" case.

Submitted by:        vsevolod (initial version)
MFC after:        2 weeks
Sponsored by:        Yandex LLC
Delta File
+11 -2 head/sbin/route/route.c
+11 -2 1 file

FreeBSD — projects/random_number_generator ObsoleteFiles.inc Makefile.inc1

Retire the /dev/random development branch.

FreeBSD — head/sys/netipsec key.c

Use in_localip() instead of handmade implementation.

MFC after:        1 week
Sponsored by:        Yandex LLC
Delta File
+2 -21 head/sys/netipsec/key.c
+2 -21 1 file

FreeBSD — head/sys/netinet tcp_syncache.c

Fix typo.
Delta File
+1 -1 head/sys/netinet/tcp_syncache.c
+1 -1 1 file

FreeBSD — head/sys/modules/drm2/drm2 Makefile

Build ttm_agp_backend.c.

Reported by:        dumbbell
MFC after:        1 month

FreeBSD — head/sys/kern kern_descrip.c

filedesc: drop retval argument from do_dup

It was almost always td_retval anyway.

For the one case where it is not, preserve the old value across the call.
Delta File
+14 -17 head/sys/kern/kern_descrip.c
+14 -17 1 file

FreeBSD — projects/ifnet Makefile.inc1 ObsoleteFiles.inc, projects/ifnet/bin/pkill/tests pgrep-j_test.sh pkill-j_test.sh

Merge head r256150 through r273898.

FreeBSD — head/sys/sys sysctl.h

Only put one CTASSERT() inside each macro to avoid compile issues.
The problem is that the __LINE__ macro is constant inside a macro and
results in identical assert statements when the compiler does not
support the static builtin assert function.

MFC:                3 days
Sponsored by:        Mellanox Technologies
Delta File
+25 -25 head/sys/sys/sysctl.h
+25 -25 1 file

FreeBSD — stable/10/sys/dev/usb/wlan if_rsu.c

MFC 258028:
Unbreak build of RSU module.
Use the real product name for Edimax rsu(4) id.

FreeBSD — head/sys/kern kern_exec.c kern_descrip.c

filedesc: fix missed comments about fdsetugidsafety

While here just note that both fdsetugidsafety and fdcheckstd take sleepable
locks.

FreeBSD — head/sbin/mount_nfs mount_nfs.c Makefile

Build mount_nfs(8) with WARNS=6.

Reviewed by:        rmacklem@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/kern kern_descrip.c

filedesc: make fdinit return with source filedesc locked and new one sized
appropriately

Assert FILEDESC_XLOCK_ASSERT only for already used tables in fdgrowtable.
We don't have to call it with the lock held if we are just creating new
filedesc.

As a side note, strictly speaking processes can have fdtables with
fd_lastfile = -1, but then they cannot enter fdgrowtable. Very first file
descriptor they get will be 0 and the only syscall allowing to choose fd number
requires an active file descriptor. Should this ever change, we can add an 'init'
(or similar) parameter to fdgrowtable.
Delta File
+45 -32 head/sys/kern/kern_descrip.c
+45 -32 1 file

FreeBSD — head/sys/kern kern_descrip.c

filedesc: iterate over fd table only once in fdcopy

While here add 'fdused_init' which does not perform unnecessary work.

Drop FILEDESC_LOCK_ASSERT from fdisused and rely on callers to hold
it when appropriate. This function is only used with INVARIANTS.

No functional changes intended.
Delta File
+21 -21 head/sys/kern/kern_descrip.c
+21 -21 1 file

FreeBSD — head/sys/kern kern_descrip.c

filedesc: tidy up fdfree

Implement fdefree_last variant and get rid of 'last' parameter.

No functional changes.
Delta File
+14 -22 head/sys/kern/kern_descrip.c
+14 -22 1 file

FreeBSD — stable/9/sys/dev/usb usbdevs, stable/9/sys/dev/usb/serial u3g.c uftdi.c

MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.

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

MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR:                145319

FreeBSD — stable/9/sys/dev/usb usb_device.c usb_msctest.c

MFC r250986:
Fix some statical clang analyzer warnings.

FreeBSD — stable/9/sys/dev/usb usb_process.c usb_dynamic.c

MFC r246360:
Fix some nits.

FreeBSD — stable/9/sys/dev/usb/serial uftdi.c uftdi_reg.h

MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.

FreeBSD — stable/9/sys/dev/usb/controller ehci.c, stable/9/sys/dev/usb/serial u3g.c uftdi.c

MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR:                145319

FreeBSD — stable/10/sys/dev/usb usbdevs, stable/10/sys/dev/usb/serial u3g.c uftdi.c

MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.

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

MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR:                145319

FreeBSD — stable/10/sys/dev/usb/serial uftdi.c uftdi_reg.h

MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.

FreeBSD — stable/10/sys/dev/usb/controller ehci.c, stable/10/sys/dev/usb/serial u3g.c uftdi.c

MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR:                145319

FreeBSD — stable/10/share/man/man4 uled.4 Makefile, stable/10/sys/conf NOTES files

MFC r271159, r271168 and r271680:
Add USB LED driver for the Dream Cheeky WebMail Notifier.

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

MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by:        Mellanox Technologies

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

MFC r273867:
Fix compile warning by removing unused variable.

Sponsored by:        Mellanox Technologies

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

MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/kern kern_descrip.c

filedesc: tidy up fdcopy a little bit

Test for file availability by fde_file != NULL instead of fdisused, this is
consistent with similar checks later.

Drop badfileops check. badfileops don't have DFLAG_PASSABLE set, so it was never
reached in practice.

fdiused is now only used in some KASSERTS, so ifdef it under INVARIANTS.

No functional changes.
Delta File
+4 -3 head/sys/kern/kern_descrip.c
+4 -3 1 file

FreeBSD — stable/10/sys/fs/nfsserver nfs_nfsdsubs.c

MFC r273159:
Add two sysctl(8) to enable/disable NFSv4 server to check when setting
user nobody and/or setting group nogroup as owner of a file or directory.
Usually at the client side, if there is an username that is not in the
client's passwd database, some clients will send 'nobody@<your.dns.domain>'
in the wire and the NFSv4 server will treat it as an ERROR.
However, if you have a valid user nobody in your passwd database,
the NFSv4 server will treat it as a NFSERR_BADOWNER as its believes the
client doesn't has the username mapped.

Submitted by:        Loic Blot <loic.blot at unix-experience.fr>
Reviewed by:        rmacklem
Approved by:        rmacklem
Sponsored by:        QNAP Systems Inc.