Displaying 1 50 of 303,271 commits (0.026s)

FreeBSD — head/share/man/man4 psm.4

Document hw.psm.elantech_support in psm(4)

PR:             205690
Submitted by:   Vladimir Kondratyev <wulf at cicgroup.ru>
MFC after:      1 week
Delta File
+6 -4 head/share/man/man4/psm.4
+6 -4 1 file

FreeBSD — head/usr.sbin/moused moused.c

Add Elantech trackpad to the list of known models

PR:             205690
Submitted by:   Vladimir Kondratyev <wulf at cicgroup.ru>
MFC after:      1 week
Delta File
+1 -0 head/usr.sbin/moused/moused.c
+1 -0 1 file

FreeBSD — head/sys/dev/atkbdc psm.c, head/sys/sys mouse.h

Add Elantech trackpad support

Elantech trackpads are found in some laptops like the Asus UX31E. They
are "synaptics compatible" but use a slightly different protocol.

Elantech hardware support is not enabled by default and just like
Synaptic or TrackPoint devices it should be enabled by setting
tunable, in this case hw.psm.elantech_support, to non-zero value

PR:                205690
Submitted by:        Vladimir Kondratyev <wulf at cicgroup.ru>
MFC after:        1 week
Delta File
+1,644 -461 head/sys/dev/atkbdc/psm.c
+4 -0 head/sys/sys/mouse.h
+1,648 -461 2 files

FreeBSD — releng/11.0/crypto/openssl CHANGES NEWS, releng/11.0/crypto/openssl/crypto opensslv.h

Merge r306343 by jkim:

Merge OpenSSL 1.0.2j.

Approved by:        so
Approved by:        re (implicit)

FreeBSD — head/lib/libarchive/tests Makefile

Increase timeout from 300 (default) to 600 seconds.
It takes 6-7 minutes to proceed the test on MIPS64EB.

Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5

FreeBSD — user/cperciva/freebsd-update-build/patches/10.1-RELEASE 39-SA-16:26.openssl, user/cperciva/freebsd-update-build/patches/10.2-RELEASE 22-SA-16:26.openssl

Add SA-16:26 revised patches.

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

Handle TLB shootdown IPI during the EFI runtime calls, on SandyBridge
and IvyBridge machines, which support PCID but do not have INVPCID
instruction.

MFC after:        1 week
Delta File
+15 -1 head/sys/amd64/amd64/efirt.c
+15 -1 1 file

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

For machines which support PCID but not have INVPCID instruction,
i.e. SandyBridge and IvyBridge, correct a race between pmap_activate()
and invltlb_pcid_handler().

Reported by and tested by:        Slawa Olhovchenkov <slw at zxy.spb.ru>
MFC after:        1 week
Delta File
+29 -1 head/sys/amd64/amd64/pmap.c
+29 -1 1 file

FreeBSD — head/lib/libc/db/hash hash_page.c

hash(3): protect in-memory page when using cross-endianness.

When writing out pages in the "other endian" format, make a copy
instead of trashing the in-memory one.

Obtained from:        NetBSD (CVS rev. 1.29)
Delta File
+9 -4 head/lib/libc/db/hash/hash_page.c
+9 -4 1 file

FreeBSD — head/sys/kern uipc_syscalls.c

Revert r306337. dhw@ reproted a panic which seems related to this and bde@ has
raised some issues.
Delta File
+1 -3 head/sys/kern/uipc_syscalls.c
+1 -3 1 file

FreeBSD — head/lib/libc/tests Makefile

Don't build SSP tests on MIPS as we dont have stack-protector
supported on this platform.

Discussed with:        brooks
Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5
Delta File
+2 -1 head/lib/libc/tests/Makefile
+2 -1 1 file

FreeBSD — head/sys/kern kern_mutex.c

Make no assertions about mutex state when the scheduler is stopped.

This changes the assert path to match the lock and unlock paths.

MFC after:        1 week
Sponsored by:        Dell EMC
Delta File
+1 -1 head/sys/kern/kern_mutex.c
+1 -1 1 file

FreeBSD — stable/10/usr.bin/mkimg mkimg.1

MFC r306131

Update mkimg(1) author's contact info
Delta File
+1 -1 stable/10/usr.bin/mkimg/mkimg.1
+1 -1 1 file

FreeBSD — stable/11/usr.bin/mkimg mkimg.1

MFC r306131

Update mkimg(1) author's contact info
Delta File
+1 -1 stable/11/usr.bin/mkimg/mkimg.1
+1 -1 1 file

FreeBSD — stable/11/crypto/openssl CHANGES NEWS, stable/11/crypto/openssl/crypto opensslv.h

MFC:        r306342

Merge OpenSSL 1.0.2j.

FreeBSD — head/crypto/openssl CHANGES NEWS, head/crypto/openssl/crypto opensslv.h

Merge OpenSSL 1.0.2j.

FreeBSD — vendor-crypto/openssl 1.0.2j

Tag OpenSSL 1.0.2j.
Delta File
+0 -0 vendor-crypto/openssl/1.0.2j/
+0 -0 1 file

FreeBSD — vendor-crypto/openssl/dist CHANGES NEWS, vendor-crypto/openssl/dist/crypto opensslv.h

Import OpenSSL 1.0.2j.

FreeBSD — head/sbin/growfs/tests legacy_test.pl

Use bsdlabel as we don't have hardlink disklabel -> bsdlabel on MIPS.

Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5

FreeBSD — head/usr.bin/calendar/tests Makefile

Increase timeout for legacy_test from 300 (default) to 600 seconds.
It takes about 7 minutes to pass the test on MIPS64EB in QEMU.

Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5

FreeBSD — head/sys/kern uipc_syscalls.c

In sendit(), if mp->msg_control is present, then in sockargs() we are allocating
mbuf to store mp->msg_control. Later in kern_sendit(), call to getsock_cap(),
will check validity of file pointer passed, if this fails EBADF is returned but
mbuf allocated in sockargs() is not freed. Fix this possible leak.

Submitted by:        Lohith Bellad <lohith.bellad at me.com>
Reviewed by:        adrian
MFC after:        3 weeks
Differential Revision:        https://reviews.freebsd.org/D7910
Delta File
+3 -1 head/sys/kern/uipc_syscalls.c
+3 -1 1 file

FreeBSD — releng/10.1 UPDATING, releng/10.1/crypto/openssl/crypto/bn bn_print.c

Apply upstream revision 3612ff6fcec0e3d1f2a598135fe12177c0419582:

Fix overflow check in BN_bn2dec()
Fix an off by one error in the overflow check added by 07bed46
("Check for errors in BN_bn2dec()").

This fixes a regression introduced in SA-16:26.openssl.

Submitted by:        jkim
PR:                212921
Approved by:        so

FreeBSD — stable/9/crypto/openssl/crypto/bn bn_print.c

Apply upstream revision 3612ff6fcec0e3d1f2a598135fe12177c0419582:

Fix overflow check in BN_bn2dec()
Fix an off by one error in the overflow check added by 07bed46
("Check for errors in BN_bn2dec()").

This fixes a regression introduced in SA-16:26.openssl.

Submitted by:        jkim
PR:                212921

FreeBSD — head/lib/libc/sys thr_suspend.2 thr_wake.2

Document thr_suspend(2) and thr_wake(2).

Reviewed by:        bjk, jilles
Discussed with:        emaste, wblock
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Differential revision:        https://reviews.freebsd.org/D8016

FreeBSD — head/usr.bin/mkimg image.c

Portability changes:
1.  macOS nor Linux have MAP_NOCORE nor MAP_NOSYNC. Define as 0.
2.  macOS doesn't have SEEK_DATA nor SEEK_HOLE. Define as -1
    so that lseek will return -1 (with errno set to EINVAL).
3.  gcc correctly warns that error is assigned but not used in
    image_copyout_region().  Fix by returning on the first error.
Delta File
+21 -4 head/usr.bin/mkimg/image.c
+21 -4 1 file

FreeBSD — head/lib/libc/db/btree bt_close.c

btree(3): don't shortcut closing if the metadata is dirty.

Obtained from:        NetBSD (from krb5 tree)

MFC after:        3 weeks
Delta File
+2 -1 head/lib/libc/db/btree/bt_close.c
+2 -1 1 file

FreeBSD — head/sys/dev/ath/ath_hal ah.h

[ath_hal] add a new regdomain flag - I think this means "yes, you can use this
NIC in channel 144 if you're in FCC6."

I have to go figure out more details about this before I enable it..
Delta File
+2 -1 head/sys/dev/ath/ath_hal/ah.h
+2 -1 1 file

FreeBSD — head/usr.bin/mkimg endian.h bsd.c

Avoid depending on the <sys/endian.h> header for le*enc and be*enc.
Not only is the header unportable, the encoding/decoding functions
are as well.  Instead, duplicate the handful of small inlines we
need into a private header called endian.h.

Aside: an alternative approach is to move the encoding/decoding
functions to a separate system header.  While the header is still
nonportable, such an approach would make it possible to re-use the
definitions by playing games with include paths. This may be the
preferred approach if more (build) utilities need this.  This
change does not preclude that.  In fact, it makes it easier.

FreeBSD — head/usr.bin/mkimg qcow.c image.c

Eliminate the use of EDOOFUS.  The error code was used to signal
programming errors, but is really a poor substitute for assert.
And less portable as well.

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

Update PCI driver to match new dts tree

In new dts tree phy is a property of port, not the controller node, also
the name was changed from "pcie" to "pcie-0"
Delta File
+21 -13 head/sys/arm/nvidia/tegra_pcie.c
+21 -13 1 file

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

Update AHCI driver to match new dts tree

phy name parameter was changed from "sata-phy" to "sata-0" in new dts tree
introduced in r306197
Delta File
+1 -1 head/sys/arm/nvidia/tegra_ahci.c
+1 -1 1 file

FreeBSD — stable/9/lib/libc/stdtime strptime.c

MFC r272562,r272678,r272679

1) Fix the case we have less arguments for format string than we expected.
2) Return error on unsupported format specs.
(both according to POSIX)
3) For %Z format, understand "UTC" name too.

PR:     93197 (only r272679)

FreeBSD — head/usr.bin/mkimg format.c scheme.c

Replace the use of linker sets with constructors for both the
formats and schemes.  Formats and schemes are registered at
runtime now, rather than collected at link time.

FreeBSD — head/sys/dev/ath/ath_hal ah_regdomain.c

[ath_hal] add a comment for the channel 144 regdomain flag.

I'm .. still trying to figure out what's going on.

FreeBSD — head/sys/dev/ath/ath_hal ah_internal.h, head/sys/dev/ath/ath_hal/ah_regdomain ah_rd_freqbands.h ah_rd_domains.h

[ath_hal] Add FCC6_FCCA regulatory domain (0x0014).

Tested:

* TP-Link N900, AR9380, regdomain 0x0014 (FCC6_FCCA).

FreeBSD — stable/10/contrib/libarchive/libarchive archive_write_disk_posix.c archive_read_disk_entry_from_file.c, stable/10/contrib/libarchive/libarchive/test test_write_disk_secure746.c test_write_format_gnutar_filenames.c

MFC r305819:
Sync libarchive with vendor including important security fixes.

Issues fixed (FreeBSD):
PR #778: ACL error handling
Issue #745: Symlink check prefix optimization is too aggressive
Issue #746: Hard links with data can evade sandboxing restrictions

This update fixes the vulnerability #3 and vulnerability #4 as reported in
"non-cryptanalytic attacks against FreeBSD update components".
https://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f

Fix for vulnerability #2 has already been merged in r305192.

Security: http://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f

FreeBSD — stable/11/contrib/libarchive/libarchive archive_write_disk_posix.c archive_read_disk_entry_from_file.c, stable/11/contrib/libarchive/libarchive/test test_write_disk_secure746.c test_write_format_gnutar_filenames.c

MFC r305819:
Sync libarchive with vendor including important security fixes.

Issues fixed (FreeBSD):
PR #778: ACL error handling
Issue #745: Symlink check prefix optimization is too aggressive
Issue #746: Hard links with data can evade sandboxing restrictions

This update fixes the vulnerability #3 and vulnerability #4 as reported in
"non-cryptanalytic attacks against FreeBSD update components".
https://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f

Fix for vulnerability #2 has already been merged in r305188.

Security: http://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f

FreeBSD — head/sys/dev/usb/wlan if_rsu.c

rsu: do not restart calibration task when going out of RUN state.

Clear 'sc_calibrating' flag and stop calibration task when interface
is not associated; this fixes possible panic after detach.

Reported and tested by:        hselasky
Reviewed by:        adrian
MFC after:        6 days
Delta File
+6 -3 head/sys/dev/usb/wlan/if_rsu.c
+6 -3 1 file

FreeBSD — head/sys/i386/i386 db_disasm.c

Minor fixes for 160-bit disassembly:

(1) Print the default segment %ss before adresses relative to %bp.
    This is too cluttered for me, but so is printing some other default
    prefixes, and this is a reasonable reminder that %ss is quite
    likely to be different from %ds in 16-bit mode.

    db_disasm still handles prefixes poorly, by trying to discard
    redundant ones.  This loses information, and sometimes the result
    is wrong or misleading.

    Clean up nearby initializations and dead code.

(2) Fix decoding of operand and address size prefixes in 16-bit mode.
    They reverse the default in all modes.

Obtained from:            (1) is partly from r1.4 (2003/11/08) in DFlyBSD (?)
Delta File
+12 -6 head/sys/i386/i386/db_disasm.c
+12 -6 1 file

FreeBSD — head/sys/i386/i386 sys_machdep.c

MFamd64: r266901

Allocate a zeroed LDT.

Failing to do this might result in the LDT appearing to run out of free
descriptors because of random junk in the descriptor's 'sd_type' field.

http://lists.freebsd.org/pipermail/freebsd-amd64/2014-May/016088.html

PR:                212639
Submitted by:        wheelcomplex at gmail.com
MFC after:        2 weeks
Delta File
+1 -1 head/sys/i386/i386/sys_machdep.c
+1 -1 1 file

FreeBSD — stable/11/sys/boot/efi/loader/arch/amd64 elf64_freebsd.c

MFC r305943:
Utilize pmap.h names.

FreeBSD — stable/11/sbin/sysctl sysctl.c, stable/11/sys/amd64/amd64 machdep.c

MFC r305942:
Consolidate four efi_next_descriptor() definitions.

FreeBSD — stable/11/sys/boot/efi/include efilib.h

MFC r305941:
Add double-inclusion protection.

MFC r305947:
Add comment for the closing guard.

FreeBSD — stable/11/share/man/man9 fpu_kern.9, stable/11/sys/amd64/amd64 fpu.c

MFC r305692:
Add FPU_KERN_NOCTX flag to the fpu_kern_enter() function on amd64.

FreeBSD — head/share/mk bsd.README

Document the ".pico" extension for object files.

Suggested by: emaste@
Delta File
+1 -1 head/share/mk/bsd.README
+1 -1 1 file

FreeBSD — head UPDATING

Relocatable object files are renamed from *.So to *.pico

Reminder by:        imp@
Delta File
+6 -0 head/UPDATING
+6 -0 1 file

FreeBSD — head/share/man/man4 ddb.4, head/sys/ddb db_examine.c

Determine the operand/address size of %cs in a new function
db_segsize().

Use db_segsize() to set the default operand/address size for
disassembling.  Allow overriding this with the "alternate" display
format /I.  The API of db_disasm() should be debooleanized to pass a
more general request (amd64 needs overrides to sizes of 16, 32, and
64, but this commit doesn't implement anything for amd64 since much
larger changes are needed to restore the amd64 disassmbler's support
for non-default sizes).

Fix db_print_loc_and_inst() to ask for the normal format and not the
alternate in normal operation.

This is most useful for vm86 mode, but also works for 16-bit protected
mode.

Use db_segsize() to avoid trying to print a garbage stack trace if %cs
is 16 bits.  Print something like the stack trace termination message
for a trap boundary instead.

Document that the alternate format is now useful on i386.

FreeBSD — head/sys/amd64/amd64 machdep.c, head/sys/i386/i386 machdep.c

Fix vm86 initialization, part 3 of 2 and a half.  (Actually, just fix
early printfs and debugging of vm86 initialization and some other early
initialization in some cases.)  Add an option debug.late_console (with
default 1=off) to move console and kdb initialization back where it was.
Do the same for amd64 although there is no vm86 there.

On my test system, debug.late_console=0 works for the syscons, sio and
uart console drivers on amd64 and i386, and for vt on i386 but not on
amd64.

The early printfs fixed by debug.late_console=0 are:
- on i386, the message about lost memory above 4G
- with -v in otherwise normal use, about 20 printfs for SMAP
- other debugging messages for memory sizing.  Mostly under -v and
  not printed in normal use.

Document in a comment how much earlier the initialization and early
printf()s can be.  That is very early for the console.  Not much more
than curthread is needed.  kdb use obviously needs to be not so early,
since it needs IDT initialization and that is done relatively late
for convenience and historical reasons.

FreeBSD — stable/11/share/man/man4 re.4, stable/11/sys/dev/re if_re.c

MFC r306102:

Add support for the TP-Link TG-3468 v2.
This is an RTL8168 chip, which we already support so all we have to do is add
the vendor ID.

PR:        212876
Submitted by:        Tobias Kortkamp <t at tobik.me>

FreeBSD — stable/11/lib/libpam/modules/pam_ssh pam_ssh.8 pam_ssh.c

MFC: 304626,304635:
        r304626: Add support for Ed25519 keys.
        r304635: Remove support for SSH1, already disabled in our OpenSSH.

Submitted by:        mwlucas (r304626), vangyzen (r304635)