Displaying 1 50 of 301,796 commits (0.028s)

FreeBSD — head/sys/netinet/tcp_stacks fastpath.c

Adjust TCP module fastpath after r304803's cc_ack_received() changes.

Reported by:                hiren, bz, np
Reviewed by:                rrs
Sponsored by:                Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D7664

FreeBSD — head/sys/netinet tcp_fsm.h

Update TCPS_HAVERCVDFIN() macro to correctly include all states a connection
can be in after receiving a FIN.

FWIW, NetBSD has this change for quite some time.

This has been tested at Netflix and Limelight in production traffic.

Reported by:        Sam Kumar <samkumar99 at gmail.com> on transport@
Reviewed by:        rrs
MFC after:        4 weeks
Sponsored by:        Limelight Networks
Differential Revision:         https://reviews.freebsd.org/D7475
Delta File
+2 -1 head/sys/netinet/tcp_fsm.h
+2 -1 1 file

FreeBSD — head/contrib/ofed/libcxgb4/src qp.c, head/sys/dev/cxgbe/iw_cxgbe cm.c qp.c

cxgbe/iw_cxgbe: Various fixes to the iWARP driver.

- Return appropriate error code instead of ENOMEM when sosend() fails in
  send_mpa_req.
- Fix for problematic race during destroy_qp.
- Abortive close in the failure of send_mpa_reject() instead of normal close.
- Remove the unnecessary doorbell flowcontrol logic.

Submitted by:        Krishnamraju Eraparaju at Chelsio
MFC after:        1 month
Sponsored by:        Chelsio communications

FreeBSD — user/alc/PG_CACHED Makefile.inc1 UPDATING, user/alc/PG_CACHED/bin/dd dd.1

Merge from PQ_LAUNDRY at r304852

FreeBSD — user/alc/PQ_LAUNDRY/sys/vm vm_pageout.c

Clean up the background laundering tunables a bit.

Reviewed by:        alc
Delta File
+27 -16 user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
+27 -16 1 file

FreeBSD — head/lib/libstand dosfs.c

Unused variables and cstyle fix for loader dosfs

Reviewed by:        imp, allanjude
Approved by:        imp (mentor), allanjude (mentor)
Differential Revision:        https://reviews.freebsd.org/D7659
Delta File
+4 -4 head/lib/libstand/dosfs.c
+4 -4 1 file

FreeBSD — projects/mips64-clang/contrib/gcc/config/mips mips.h

Fixup build with llvm/clang:

https://reviews.llvm.org/D23497 and the attached FreeBSD patch work together
to fix this problem and should be sufficient so long as you don't have
-save-temps or -via-file-asm in your compiler flags. The LLVM patch makes the
.local directive work properly when assembling an ELF while the FreeBSD patch
ensures the assembler never sees a forward-declared local label by declaring
them in advance with .local. However, the LLVM patch currently breaks if you
use -save-temps or -via-file-asm since MCAsmStreamer's implementation of .local
doesn't do anything to the MCSymbol and only emits a .local directive. This
causes the assembler to interpret it as an external symbol and emit the wrong
jal expansion.

Submitted by:        Daniel Sanders <Daniel.Sanders at imgtec.com>

FreeBSD — projects/hps_head Makefile.inc1 UPDATING, projects/hps_head/bin/dd dd.1

Merge ^/head r304171 through r304847.

FreeBSD — stable/9/sys/ofed/drivers/infiniband/core ucma.c

MFC r304342:
Add support for setting blocking and non-blocking mode on /dev/rdma_cm
by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags
handling is done by the kern_ioctl() function.

Reported by:        Alex Bowden <alex.bowden at outlook.com>
Sponsored by:        Mellanox Technologies

FreeBSD — stable/10/sys/ofed/drivers/infiniband/core ucma.c

MFC r304342:
Add support for setting blocking and non-blocking mode on /dev/rdma_cm
by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags
handling is done by the kern_ioctl() function.

Reported by:        Alex Bowden <alex.bowden at outlook.com>
Sponsored by:        Mellanox Technologies

FreeBSD — stable/11/sys/ofed/drivers/infiniband/core ucma.c

MFC r304342:
Add support for setting blocking and non-blocking mode on /dev/rdma_cm
by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags
handling is done by the kern_ioctl() function.

Reported by:        Alex Bowden <alex.bowden at outlook.com>
Sponsored by:        Mellanox Technologies

FreeBSD — stable/11/sys/kern kern_time.c

MFC r303388:
Remove Giant from settime().
Delta File
+1 -7 stable/11/sys/kern/kern_time.c
+1 -7 1 file

FreeBSD — stable/11/sys/compat/linprocfs linprocfs.c, stable/11/sys/fs/devfs devfs_vnops.c

MFC r303382:
Provide the getboottime(9) and getboottimebin(9) KPI.

MFC r303387:
Prevent parallel tc_windup() calls.  Keep boottime in timehands,
and adjust it from tc_windup().

MFC notes:

The boottime and boottimebin globals are still exported from
the kernel dyn symbol table in stable/11, but their declarations are
removed from sys/time.h.  This preserves KBI but not KPI, while all
in-tree consumers are converted to getboottime().

The variables are updated after tc_setclock_mtx is dropped, which gives
approximately same unlocked bugs as before.

The boottime and boottimebin locals in several sys/kern_tc.c functions
were renamed by adding the '_x' suffix to avoid name conficts.

FreeBSD — stable/11/sys/kern kern_ntptime.c

MFC r303386:
Change ntpadj_lock to spinlock always.
Add missed lock to ntp_update_second().
Delta File
+21 -34 stable/11/sys/kern/kern_ntptime.c
+21 -34 1 file

FreeBSD — stable/11/sys/kern subr_rtc.c

MFC r303385:
Reduce the resettodr_lock scope to only CLOCK_SETTIME() call.
Delta File
+1 -1 stable/11/sys/kern/subr_rtc.c
+1 -1 1 file

FreeBSD — stable/11/sys/kern kern_tc.c

MFC r303384:
Style.
Delta File
+2 -2 stable/11/sys/kern/kern_tc.c
+2 -2 1 file

FreeBSD — stable/11/sys/kern kern_tc.c

MFC r303383:
Reduce number of timehands to just two.
Delta File
+8 -18 stable/11/sys/kern/kern_tc.c
+8 -18 1 file

FreeBSD — head/sys/ofed/drivers/infiniband/core iwcm.c

Do not free an uninitialized pointer on soaccept failure in the iWARP
connection manager.

Sponsored by:        Chelsio Communications

FreeBSD — head/sys/netinet sctp_input.c

Fix a bug, where no SACK is sent when receiving a FORWARD-TSN or
I-FORWARD-TSN chunk before any DATA or I-DATA chunk.

Thanks to Julian Cordes for finding this problem and prividing
packetdrill scripts to reporduce the issue.

MFC after: 3 days
Delta File
+5 -0 head/sys/netinet/sctp_input.c
+5 -0 1 file

FreeBSD — stable/10/sys/netinet tcp_lro.c

MFC 303766
    tcp/lro: If timestamps mismatch or it's a FIN, force flush.

    This keeps the segments/ACK/FIN delivery order.

    Before this patch, it was observed: if A sent FIN immediately after
    an ACK, B would deliver FIN first to the TCP stack, then the ACK.
    This out-of-order delivery causes one unnecessary ACK sent from B.

    Reviewed by:    gallatin, hps
    Obtained from:  rrs, gallatin
    Sponsored by:   Netflix (rrs, gallatin), Microsoft (sephe)
    Differential Revision:  https://reviews.freebsd.org/D7415
Delta File
+32 -4 stable/10/sys/netinet/tcp_lro.c
+32 -4 1 file

FreeBSD — stable/11/sys/netinet tcp_lro.c

MFC 303766
    tcp/lro: If timestamps mismatch or it's a FIN, force flush.

    This keeps the segments/ACK/FIN delivery order.

    Before this patch, it was observed: if A sent FIN immediately after
    an ACK, B would deliver FIN first to the TCP stack, then the ACK.
    This out-of-order delivery causes one unnecessary ACK sent from B.

    Reviewed by:    gallatin, hps
    Obtained from:  rrs, gallatin
    Sponsored by:   Netflix (rrs, gallatin), Microsoft (sephe)
    Differential Revision:  https://reviews.freebsd.org/D7415
Delta File
+32 -4 stable/11/sys/netinet/tcp_lro.c
+32 -4 1 file

FreeBSD — head/sys/dev/hyperv/netvsc ndis.h hv_rndis_filter.c, head/sys/net rndis.h

hyperv/hn: Use vmbus xact for RNDIS set.

And use new RNDIS set to configure NDIS offloading parameters.

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

FreeBSD — head/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c hv_net_vsc.c

hyperv/hn: Save the adopted NDIS version for RNDIS to use later.

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

FreeBSD — head/sys/dev/hyperv/netvsc hv_rndis_filter.c, head/sys/net rndis.h

hyperv/hn: Use vmbus xact for RNDIS query.

And switch MAC address query to use new RNDIS query function.

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

FreeBSD — projects/netbsd-tests-update-12/contrib/netbsd-tests/lib/libc/sys t_sigqueue.c

Add copious debugging to aid in determining why :sigqueue_rt is currently failing

For some odd reason SIGINT is only being delivered once, as opposed to multiple
times.

Disclaimer: this test was run on a kernel built on 08/14/2016. Need to build a
new kernel and rerun the test.

FreeBSD — projects/netbsd-tests-update-12/contrib/netbsd-tests/lib/libc/gen isqemu.h

Detect virtual machines on FreeBSD using the kern.vm_guest sysctl

kern.vm_guest == none -> not a virtual machine

It's a bit of a misnomer with the function being named `isQEMU`... but FreeBSD's
support seems to be a bit more all-encompassing than NetBSD's is today.

Sponsored by: EMC / Isilon Storage Division

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

Prevent BSS from being cleared twice on BookE

Summary:
First time BSS is cleared in booke_init(), Second time it's cleared in
powerpc_init().  Any variable initialized between two those guys gets wiped out
what is wrong. In particular it wipes tlb1_entries initialized by tlb1_init(),
which was fine when tlb1_init() was called a second time, but this was removed
in r304656.

Submitted by:        Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7638

FreeBSD — head/sys/ddb db_command.c

ddb: Add 'show active trace' command

'show active trace', or 'acttrace' for short, prints backtraces from running
threads only.

Reviewed by:        mjg
Differential Revision:        https://reviews.freebsd.org/D7646
Delta File
+42 -4 head/sys/ddb/db_command.c
+42 -4 1 file

FreeBSD — head/sys/dev/cxgbe/cxgbei icl_cxgbei.c cxgbei.c

cxgbe/cxgbei: There is no need for multiple modules in the KLD.

Sponsored by:        Chelsio Communications

FreeBSD — head/share/mk src.sys.env.mk

WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta mode.

MFC after:        2 weeks
Sponsored by:        EMC / Isilon Storage Division
Delta File
+1 -0 head/share/mk/src.sys.env.mk
+1 -0 1 file

FreeBSD — head/cddl/lib/libdtrace psinfo.d

Unlike Solaris, in FreeBSD p_args can be 0 so check for that
instead of walking down to ar_args blindly.

Reported by:        Amanda Strnad
Reviewed by:        markj, jhb
MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+1 -1 head/cddl/lib/libdtrace/psinfo.d
+1 -1 1 file

FreeBSD — head/sys/dev/cxgbe/cxgbei cxgbei.c cxgbei.h

cxgbe/cxgbei: Convert the driver-private PDU flags to enums and replace
pdu_ prefix with icp_ in struct icl_cxgbei_pdu.

Sponsored by:        Chelsio Communications

FreeBSD — head/libexec/rtld-elf/mips reloc.c

[mips] flip from =v to =r - let the compiler choose a temp register.

=v is some ye olde gcc "use this specific register as the temp register"
thing that they've deprecated and clang/llvm doesn't implement.

Poked again and again by: sbruno

FreeBSD — head/sys/dev/cxgbe/cxgbei icl_cxgbei.c cxgbei.c

cxgbe/cxgbei: Read the chip's configuration to determine the actual
hardware send and receive PDU limits.  Report these limits to ICL and
take them into account when setting the socket's send and receive buffer
sizes.  The driver used a single hardcoded limit everywhere prior to
this change.

Sponsored by:        Chelsio Communications

FreeBSD — head/usr.bin/bsdiff/bspatch bspatch.c

bspatch: remove output file in the case of error

Reviewed by:        oshogbo
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D7644

FreeBSD — projects/clang390-import/lib/clang/libclanganalysis Makefile, projects/clang390-import/lib/clang/libllvmsupport Makefile

Move some more files under MK_CLANG_FULL.

FreeBSD — head/lib/libc/stdio fgetln.c fgetwln.c

Original fgetln() from 44lite return sucess for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both OpenBSD and NetBSD return failure, i.e. no line and set error
indicators for such case, so make our fgetln() and fgetwln()
(as its wide version) compatible with the rest of *BSD.

PR:     212033
MFC after:      7 days

FreeBSD — stable/10/lib/libc/stdio fgetln.c fgetln.3

MFC r295632

getln: We cannot expand the buffer beyond INT_MAX (_size overflows).

In such cases return ENOMEM. This is a limitation of our
implementation, alternatively you may consider getline(3).

Differential Revision:  https://reviews.freebsd.org/D442 (Partial)
Obtained from:  Apple Inc. (Libc 997.90.3)

FreeBSD — head/lib Makefile libifc, head/lib/libifc libifc.c libifc.h

Add libifc, a library implementing core functionality that exists in ifconfig(8) today.

libifc (pronounced lib-ifconfig) aims to be a light abstraction layer between
programs and the kernel APIs for managing the network configuration.
This should hopefully make programs easier to maintain, and reduce code
duplication.

Work will begin on making ifconfig(8) use this library in the near future.

This code is still evolving. The interface should not be considered stable until
it is announced as such.

Submitted By: Marie Helene Kvello-Aune <marieheleneka at gmail.com>
Reviewed By: kp
Differential Revision: https://reviews.freebsd.org/D7529

FreeBSD — head/bin/dd dd.1, head/sbin/ggate/ggatec ggatec.8

Remove last remnants of acd(4), mcd(4), and scd(4) drivers.

Approved by:        jhb

FreeBSD — projects/netbsd-tests-update-12/contrib/netbsd-tests/lib/libc/stdlib t_posix_memalign.c

Don't test `size[i] % align[i] == 0` case on FreeBSD

Per jemalloc(3)/aligned_alloc(3), the behavior is undefined if the size
isn't an integral multiple of the alignment. Thus, this is a NetBSD-specific
test.

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/sys/kern kern_umtx.c

In both do_rw_wrlock() and do_rw_rdlock() after r304808, do not
obliterate possible error from sleep with errors from
umtxq_check_susp(), when looping to clear URWLOCK_{READ,WRITE}_WAITERS.

Noted and reviewed by:        vangyzen
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+12 -6 head/sys/kern/kern_umtx.c
+12 -6 1 file

FreeBSD — head/lib/libc/stdio fputwc.c

Remove "Fast path", it bypass __wcrtomb() and all its error checking.
One of affected encoding example: US-ASCII

MFC after:      7 days
Delta File
+3 -13 head/lib/libc/stdio/fputwc.c
+3 -13 1 file

FreeBSD — head/lib/libc/stdio vfprintf.c vfwprintf.c

Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing internally, only set it.
In vf(w)printf.c here it is more easy to save __SERR, clear and restore it.

FreeBSD — head/usr.bin/getconf pathconf.gperf

Add non-TRUSTEDBSD prefixed knobs for the _PC_ACL* and {CAP,INF,MAC}_PRESENT knobs

It's not necessarily intuitive that the variables to query contain TRUSTEDBSD
in the prefix. Add non-TRUSTEDBSD prefixed knobs for querying things like
"_PC_ACL_NFS4".

MFC after:        1 week
Relnotes:        yes
Reviewed by:        wollman
Sponsored by:        EMC / Isilon Storage Division
Differential Revision:        https://reviews.freebsd.org/D7618

FreeBSD — head/sys/kern kern_umtx.c

Prevent leak of URWLOCK_READ_WAITERS flag for urwlocks.

If there was some error, e.g. the sleep was interrupted, as in the
referenced PR, do_rw_rdlock() did not cleared URWLOCK_READ_WAITERS.
Since unlock only wakes up write waiters when there is no read
waiters, for URWLOCK_PREFER_READER kind of locks, the result was
missed wakeups for writers.

In particular, the most visible victims are ld-elf.so locks in
processes which loaded libthr, because rtld locks are urwlocks in
prefer-reader mode.  Normal rwlocks fall into prefer-reader mode only
if thread already owns rw lock in read mode, which is not typical and
correspondingly less visible.  In the PR, unowned rtld bind lock was
waited for in the process where only one thread was left alive.

Note that do_rw_wrlock() correctly clears URWLOCK_WRITE_WAITERS in
case of errors.

Reported and tested by:        longwitz at incore.de
PR:        211947
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+7 -2 head/sys/kern/kern_umtx.c
+7 -2 1 file