| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MFC r368207:
Update libarchive to 3.5.0
Relevant vendor changes:
Issue #1258: add archive_read_support_filter_by_code()
PR #1347: mtree digest reader support
Issue #1381: skip hardlinks pointing to itself on extraction
PR #1387: fix writing of cpio archives with hardlinks without file type
PR #1388: fix rdev field in cpio format for device nodes
PR #1389: completed support for UTF-8 encoding conversion
PR #1405: more formats in archive_read_support_format_by_code()
PR #1408: fix uninitialized size in rar5_read_data
PR #1409: system extended attribute support
PR #1435: support for decompression of symbolic links in zipx archives
Issue #1456: memory leak after unsuccessful archive_write_open_filename
MFC r368607:
Sync libarchive with vendor.
Vendor changes:
Issue #1461: Unbreak build without lzma
Issue #1462: warc reader: Fix build with gcc11
Issue #1463: Fix code compatibility in test_archive_read_support.c
Issue #1464: Use built-in strnlen on platforms where not available
Issue #1465: warc reader: fix undefined behaviour in deconst() function
Notes:
svn path=/stable/10/; revision=368708
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Detection of VLAN interface type must happen before detection of
interface type by prefix. Else the following sequence of commands will
try to create a LAGG interface instead of a VLAN interface, which
accidentially works, because the data pointed to by the ifr_data
pointer is not parsed by the VLAN create ioctl(2).
How to reproduce:
# ifconfig lagg0 create
# ifconfig lagg0.256 create
This is a direct commit.
Differential Revision: https://reviews.freebsd.org/D27521
Tested by: raul.munoz@custos.es
Sponsored by: Mellanox Technologies // NVIDIA Networking
Notes:
svn path=/stable/10/; revision=368505
|
|
|
|
|
|
|
|
|
|
|
| |
Remove a random equal sign from the example. It should not be there.
It's a syntax error.
PR: 210303
Reported by: leventelist at gmail.com
Notes:
svn path=/stable/10/; revision=367155
|
|
|
|
|
|
|
|
|
| |
which significantly predated the USA.
Reference: http://www.famousdaily.com/history/boston-shoemakers-form-first-us-labor-organization.html
Notes:
svn path=/stable/10/; revision=366804
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix clang 11 -Wformat warnings in yp_mkdb:
usr.sbin/yp_mkdb/yp_mkdb.c:91:40: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
printf("%.*s %.*s\n", (int)key.size, key.data, (int)data.size,
~~~~ ^~~~~~~~
usr.sbin/yp_mkdb/yp_mkdb.c:92:7: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
data.data);
^~~~~~~~~
Notes:
svn path=/stable/10/; revision=364084
|
|
|
|
|
|
|
|
|
|
| |
Document the IPFILTER_PREDEFINED environment variable.
PR: 248088
Reported by: joeb1@a1poweruser.com
Notes:
svn path=/stable/10/; revision=363685
|
|
|
|
|
|
|
|
|
|
|
| |
Fix copy/paste mistake in kvm_getswapinfo(3)
It seems this manpage was copied from kvm_getloadavg(3), but the
DIAGNOSTICS section was not updated completely. Update the section with
correct information about a return value of -1.
Notes:
svn path=/stable/10/; revision=362800
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Decode the "LACP Fast Timeout" LAGG option flag
r286700 added the "lacp_fast_timeout" option to `ifconfig', but we forgot to
include the new option in the string used to decode the option bits. Add
"LACP_FAST_TIMO" to LAGG_OPT_BITS.
Also, s/LAGG_OPT_LACP_TIMEOUT/LAGG_OPT_LACP_FAST_TIMO/g , to be clearer that
the flag indicates "Fast Timeout" mode.
Notes:
svn path=/stable/10/; revision=362368
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make sure packets generated by raw IP code is let through by mlx5en(4).
Allow the TCP header to reside in the mbuf following the IP header.
Else such packets will get dropped.
Backtrace:
mlx5e_sq_xmit()
mlx5e_xmit()
ether_output_frame()
ether_output()
ip_output_send()
ip_output()
rip_output()
sosend_generic()
sosend()
kern_sendit()
sendit()
sys_sendto()
amd64_syscall()
fast_syscall_common()
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362313
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extend use of unlikely() in the fast path, in mlx5en(4).
Typically the TCP/IP headers fit within the first mbuf and should not
trigger any of the error cases. Use unlikely() for these cases.
No functional change.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362310
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use const keyword when parsing the TCP/IP header in the fast path in mlx5en(4).
When parsing the TCP/IP header in the fast path, make it clear by using
the const keyword, no fields are to be modified inside the transmitted
packet.
No functional change.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362307
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API.
Descriptions and functionality for these derived from the
documentation at [0]. The current set of capabilities are all supported by
libusb.
These were detected as missing after updating net/freerdp to 2.1.1, which
attempted to use both.
[0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html
Notes:
svn path=/stable/10/; revision=362224
|
|
|
|
|
|
|
|
|
|
| |
Add missing range checks when receiving USB ethernet packets.
Found by: Ilja Van Sprundel, IOActive
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362168
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update libarchive to 3.4.3
Relevant vendor changes:
PR #1352: support negative zstd compression levels
PR #1359: improve zstd version checking
PR #1348: support RHT.security.selinux from GNU tar
PR #1357: support for archives compressed with pzstd
PR #1367: fix issues in acl tests
PR #1372: child handling cleanup
PR #1378: fix memory leak from passphrase callback
Notes:
svn path=/stable/10/; revision=362134
|
|
|
|
|
|
|
|
| |
Per-rule hit counts (-h) can be used with either -i (input) or -o (output)
filter rule lists.
Notes:
svn path=/stable/10/; revision=361928
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
USB HID descriptors may push/pop the current state to allow
description of items residing in a so-called union. FreeBSD currently
only supports 4 such push levels.
If the push level is not restored within the processing of the same
HID item, an invalid memory location may be used for subsequent HID
item processing.
Verify that the push level is always valid when processing HID items.
Reported by: Andy Nguyen (Google)
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361921
|
|
|
|
|
|
|
|
|
|
| |
Fix check for wMaxPacketSize in USB bluetooth driver,
in case device is not FULL speed.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361916
|
|
|
|
|
|
|
|
|
|
| |
Implement helper function, usbd_get_max_frame_length(), which allows kernel
device drivers to correctly predict the default USB transfer frame length.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361912
|
|
|
|
|
|
|
|
|
|
| |
Don't allow USB device drivers to parent own interface.
It will prevent proper USB device detach.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361908
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Assign process group of the TTY under the "proctree_lock".
This fixes a race where concurrent calls to doenterpgrp() and
leavepgrp() while TIOCSCTTY is executing may result in tp->t_pgrp
changing value so that tty_rel_pgrp() misses clearing it to NULL. For
more details refer to the use of pgdelete() in the kernel.
No functional change intended.
Panic backtrace:
__mtx_lock_sleep() # page fault due to using destroyed mutex
tty_signal_pgrp()
tty_ioctl()
ptsdev_ioctl()
kern_ioctl()
sys_ioctl()
amd64_syscall()
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361358
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bring HCI error messages up-to-date.
See Bluetooth v5.6 core specification Vol.1 Part F: Controller error codes.
Submitted by: Marc Veldman <marc@bumblingdork.com>
PR: 245737
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361157
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add missing feature descriptions to hci_features2str().
The list of possible features in hccontrol/features2str() is incomplete.
Refer to "Bluetooth Core Specification 5.2 Vol. 2 Part C. 3.3 Feature Mask Definition".
Submitted by: Marc Veldman <marc@bumblingdork.com>
PR: 245354
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361154
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix race between prebuilding libsbuf and libgeom
The latter needs the former, but with a multi-job build on a fast
machine, the race is sometimes lost. This leads to "ld: error: unable to
find library -lsbuf", when linking libgeom.so.
Submitted by: kevans
Notes:
svn path=/stable/10/; revision=360542
|
|
|
|
|
|
|
| |
my knowledge or consent. I did not intend to commit this.
Notes:
svn path=/stable/10/; revision=360340
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
such as:
usr.sbin/timed/timed/networkdelta.c:160:13: error: implicit conversion from 'long' to 'float' changes value from 9223372036854775807 to 9223372036854775808
[-Werror,-Wimplicit-int-float-conversion]
float ap = LONG_MAX; /* bounds on the median */
~~ ^~~~~~~~
Direct commit to stable/{10,11,12}, since timed has been removed from
FreeBSD 13.
Notes:
svn path=/stable/10/; revision=360338
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set the maximum exit latency to 0 for XHCI USB 3.0 devices, because we
don't implement link power management, LPM.
This fixes error code XHCI_TRB_ERROR_BANDWIDTH for isochronous USB 3.0
transactions.
Submitted by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=360335
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cast all ioctl command arguments through uint32_t internally.
Hide debug print showing use of sign extended ioctl command argument
under INVARIANTS. The print is available to all and can easily fill
up the logs.
No functional change intended.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=360332
|
|
|
|
|
|
|
|
|
| |
Remove an uneeded indentation introduced in r286196 to silence gcc warnging
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/stable/10/; revision=360326
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the missing braces to fix the code not guarded by the if clause and has
misleading indentation. This is found by gcc -Wmisleading-indentation
Approved by: erj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20428
Notes:
svn path=/stable/10/; revision=360304
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes the following warning from recent versions of clang and gcc:
sys/dev/drm2/radeon/evergreen.c:554:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
Direct commit to stable/{10,11,12}, since this driver has been removed
from FreeBSD 13.
Notes:
svn path=/stable/10/; revision=360303
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bsnmp: Fix operator precedence in error check in table_check_response
Summary:
The ?: operator has a lower precedence than == and &&, so the result will always
be recorded as true. Found by gcc8.
Reviewed by: ngie, ae
Differential Revision: https://reviews.freebsd.org/D22427
Notes:
svn path=/stable/10/; revision=360301
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for multiple playback and recording devices per physical USB audio
device. This requires some structural refactoring inside the driver, mostly
about converting existing audio channel structures into arrays.
The main audio mixer is provided by the first PCM instance.
The non-first audio instances may only have a software mixer for PCM playback.
Tested by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359890
|
|
|
|
|
|
|
|
|
| |
Implement new mixer API to return the device pointer based on the mixer pointer.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359887
|
|
|
|
|
|
|
|
|
|
| |
Change default microphone level from 0 to 25.
Discussed with: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359884
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Improve USB audio mixer support for USB audio class 1 and 2.
- make sure volume controls are correctly mapped to "pcm" and "rec" depending
on how they deliver audio to the USB host.
- make sure there are no duplicate record selections.
- remove internal only mixer class type.
- don't add software volume controls for recording only.
- some minor mixer code cleanup.
Tested by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359881
|
|
|
|
|
|
|
|
|
|
| |
Be more intelligent when classifying USB audio terminal types, so that we
don't end up using SOUND_MIXER_VOLUME for all undefined types.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359878
|
|
|
|
|
|
|
|
|
|
| |
Make mute controls available for USB audio mixers.
Submitted by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359875
|
|
|
|
|
|
|
|
|
| |
Factor out USB audio mixer value range check.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359872
|
|
|
|
|
|
|
|
|
| |
Avoid scaling USB audio mixer values twice.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359869
|
|
|
|
|
|
|
|
|
|
| |
Count number of times transmit ring is out of buffers in mlx5en(4).
Differential Revision: https://reviews.freebsd.org/D24273
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359855
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ensure a minimum inline size of 16 bytes in mlx5en(4).
This includes 14 bytes of ethernet header and 2 bytes of VLAN header.
This allows for making assumptions about the inline size limit
in the fast transmit path later on.
Use a signed integer variable to catch underflow.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359847
|
|
|
|
|
|
|
|
|
|
| |
Correctly implement support for remote wakeup for USB 3.0 device.
Submitted by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359318
|
|
|
|
|
|
|
|
|
|
|
|
| |
With this patch, users can play the MIDI files through /dev/sequencer
device with tools like playmidi. The audio output will go through
the external MIDI device such like wavetable synthesis card.
Reviewed by: matk (a long time ago), kib
Tested with: Terratec SiXPack 5.1+ + Yamaha DB50XG
Notes:
svn path=/stable/10/; revision=359161
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for double unlock in ipoib.
The ipoib_unicast_send() function is not supposed to unlock the priv lock.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359123
|
|
|
|
|
|
|
|
|
| |
Fix for building libusb under Linux.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358949
|
|
|
|
|
|
|
|
|
|
| |
Add support for the device statistics IOCTL, needed by the coming
linux_libusb upgrade.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358941
|
|
|
|
|
|
|
|
|
|
| |
Define more subsystem orders.
Intended for use with module_init_order() in the LinuxKPI.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358937
|
|
|
|
|
|
|
|
|
| |
Fix some whitespace issues in ipoib.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358933
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sync libarchive with vendor.
Relevant vendor changes:
Issue #1257: Add testcase for ZIPX files with LZMA_STREAM_END marker
PR #1331: cpio.5: fix hard link description
Issue #1335: archive_read.c: fix UBSan warning about undefined behavior
Issue #1338: XAR reader: fix UBSan warning about undefined behavior
Issue #1339: bsdcpio_test: fix datatype in from_hex()
Issue #1341: Safe writes: delete temporary file if rename fails.
Issue #1341: Safe writes: improve error handling
Notes:
svn path=/stable/10/; revision=358927
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement a detaching flag for the sound(4) subsystem to take
appropriate actions when we are trying to detach an audio device,
but cannot because someone is using it.
This avoids applications having to wait for the DSP read data
timeout before they receive any error indication.
Tested with virtual_oss(8).
Remove some unused definitions while at it.
PR: 194727
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358879
|