Displaying 1 50 of 335,728 commits (0.021s)

FreeBSD — head/sbin/pfctl parse.y

pfctl: Fix line numbers when \ is used inside ""

PR:                201520
Obtained from:        OpenBSD
MFC after:        2 weeks
Delta File
+3 -1 head/sbin/pfctl/parse.y
+3 -1 1 file

FreeBSD — head/sys/dev/acpica acpi.c acpivar.h

acpi: Add an interface to obtain DSM information

The Device Specific Method (_DSM) is on optional object that defines
device specific controls. This will be useful for our power management
controller in upcoming patches. More information can be found in ACPI
spec 6.2 section 9.1.1

https://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf

This patch had a minor modification changing ENOMEM to AE_NO_MEMORY
after it got review and approval but before committing.

Test Plan: Tested in my s0ix branch

Reviewed by:        kib
Approved by:        emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D17121

FreeBSD — head/sys/dev aha aic, head/sys/gnu/dts/include/dt-bindings genpd

Remove newly empty directories, plus a few ohters that have crept into
tree over time (most my fault).
Delta File
+0 -0 head/sys/modules/usb/at91dci/
+0 -0 head/sys/dev/aha/
+0 -0 head/sys/dev/aic/
+0 -0 head/sys/dev/buslogic/
+0 -0 head/sys/dev/dpt/
+0 -0 head/sys/dev/joy/
+0 -0 19 files not shown
+0 -0 25 files

FreeBSD — head/sys/cam/scsi scsi_low.c scsi_low.h, head/sys/modules Makefile

Retire scsi_low

scsi_low was a common set of routines to do the SCSI bus sequencing
for the ncv, nsp and stg drivers. Those have been removed, so it's no
longer needed since nothing else in the tree uses it and nothing
likely ever will (it's for super-low-end 8-bit parallel SCSI cards).

FreeBSD — head/share/man/man4 stg.4 Makefile, head/sys/amd64/conf NOTES

Remove stg(4) driver

stg(4) is marked as gone in 12. Remove it. There are no sightings of
it in the nycbug dmesg database. It was for an obscure SCSI card that
sold mostly in Japan, and was especially popilar among pc98 hackers in
the 4.x time frame. It was also only enabled on i386.

Relnote: Yes

FreeBSD — head/share/man/man4 nsp.4 Makefile, head/sys/amd64/conf NOTES

Remove nsp(4) driver

nsp(4) is marked as gone in 12. Remove it. There are no sightings of
it in the nycbug dmesg database. It was for an obscure SCSI card that
sold mostly in Japan, and was especially popilar among pc98 hackers in
the 4.x time frame. It was also only enabled on i386.

Relnote: Yes

FreeBSD — head/share/man/man4 ncv.4 Makefile, head/sys/amd64/conf NOTES

Remove ncv(4) driver

ncv(4) is marked as gone in 12. Remove it. There are no sightings of
it in the nycbug dmesg database. It was for an obscure SCSI card that
sold mostly in Japan, and was especially popilar among pc98 hackers in
the 4.x time frame..

Relnote: Yes

FreeBSD — head/share/man/man4 dpt.4 Makefile, head/sys/amd64/conf GENERIC

Retire dpt(4)

Marked as gone in 12 and not relevant since the early 90s. No
sightings in nycbug's dmesg database.

Relnotes: yes
Delta File
+0 -2,411 head/sys/dev/dpt/dpt_scsi.c
+0 -1,298 head/sys/dev/dpt/dpt.h
+0 -189 head/sys/dev/dpt/dpt_pci.c
+0 -109 head/share/man/man4/dpt.4
+0 -21 head/sys/conf/NOTES
+0 -14 head/sys/modules/dpt/Makefile
+0 -13 7 files not shown
+0 -4,055 13 files

FreeBSD — head/share/man/man4 scsi.4, head/sys/conf NOTES files

Remove bt(4) driver

The buslogic scsi driver has been tagged as gone in 12 for some time
now. Remove it. The nycbug dmesg database shows only one sighting in 6
for this driver. It was very popular in the early days of the project,
but that popularity seems to have died by 2004 when the nycbug
database started up.

Relnotes: yes

FreeBSD — head/share/man/man4 adv.4 adw.4, head/sys/conf NOTES files

Remove adv(4) and adw(4)

Remove the advanssy drivers (both adv and adw). They were tagged as
gone in 12 a while qgo. The nycbug dmesg database shows this was last
seen in 6 and there were only a few adv sightings then (none for adw).

Relnotes: yes

FreeBSD — head/share/man/man4/man4.i386 aic.4 Makefile, head/sys/conf NOTES files

Remove aic(4) driver

aic was marked to be gone in 12 a while ago. Go ahead and remove it.
nycbug's dmesg database shows this was last seen in 6 and one more
time in 4.x. It never was popular, and what popularity it had was over
before the nycbug databse got going in 2004.

Relnotes: yes

FreeBSD — head/share/man/man4 aha.4 adv.4, head/share/man/man4/man4.i386 aic.4

Remove aha(4) from the tree.

We tagged aha as gone in 12 a while ago. Proceed with its removal.
Data from nycbug's database shows the last sighting of this driver in
6, with the prior one in 4.x show its popularity had died prior to
4.x.

Relnotes: yes

FreeBSD — head ObsoleteFiles.inc, head/share/man/man4 mouse.4 psm.4

Remove mse(4) from tree

Remove mse and all support for bus and inport devices from the tree.
Data from nycbug's dmesg database shows the last sighting of this
driver was in 4.10 on only one machine.

Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D17628

FreeBSD — head ObsoleteFiles.inc, head/share/man/man4 joy.4 Makefile

Remove joy(4) driver.

This driver was marked as gone in 12. We're at 13 now. Remove it.
Data from nycbug's dmesg cache shows only one potential user,
suggesting it never was used much.

RelNotes: yes
Differential Revision: https://reviews.freebsd.org/D17629

FreeBSD — head/sys/amd64/conf GENERIC, head/sys/i386/conf GENERIC

Remove the gone_in(12) devices.

We're planning on removing adv, adw, aha, aic, bt, ncv, nsp, and stg
soon. They have been tagged for removal in 12. At least get them out
of GENERIC.

MFC after: 3 days
Relnotes: yes

FreeBSD — head/sys/crypto/chacha20 _chacha.h

Add explicit copyright text to trivial header

Reported by:        rgrimes

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

powerpc: stash off srr0 in si_addr for signals

si_addr is the address of the instruction executing at the time the
signal was sent.  Populate this field with srr0, which, though not
always the case, is most often the instruction that triggered the fault.
Delta File
+1 -1 head/sys/powerpc/powerpc/trap.c
+1 -1 1 file

FreeBSD — head/sys/powerpc/booke pmap.c, head/sys/powerpc/include tlb.h

powerpc/booke: Turn tlb*_print_tlbentries() into 'show tlb*' DDB commands

debugf() is unnecessary for the TLB printing functions, as they're only
intended to be used from ddb.  Instead, make them full DDB 'show'
commands, so now it can be written as 'show tlb1' and 'show tlb0'
instead of calling the function, hoping DEBUG has been defined.

FreeBSD — head/sys/netinet ip_icmp.c

New sysctl: net.inet.icmp.error_keeptags

Currently, icmp_error() function copies FIB number from original packet
into generated ICMP response but not mbuf_tags(9) chain.
This prevents us from easily matching ICMP responses corresponding
to tagged original packets by means of packet filter such as ipfw(8).
For example, ICMP "time-exceeded in-transit" packets usually generated
in response to traceroute probes lose tags attached to original packets.

This change adds new sysctl net.inet.icmp.error_keeptags
that defaults to 0 to avoid extra overhead when this feature not needed.

Set net.inet.icmp.error_keeptags=1 to make icmp_error() copy mbuf_tags
from original packet to generated ICMP response.

PR:                215874
MFC after:        1 month
Delta File
+10 -0 head/sys/netinet/ip_icmp.c
+10 -0 1 file

FreeBSD — head/contrib/tcpdump print-pflog.c

tcpdump: Log uid on pflog interfaces

If pf logs the user id ('pass out log (user)') have tcpdump also print
this.

Example output:
 00:00:00.000000 rule 0/0(match) [uid 1001]: pass out on vtnet0: (tos 0x0, ttl 64, id 
57539, offset 0, flags [none], proto UDP (17), length 55)
    172.16.2.2.18337 > 172.16.2.1.53: [bad udp cksum 0x5c58 -> 0x16e4!] 40222+ A? 
google.be. (27)

PR:                122773
Differential Revision:        https://reviews.freebsd.org/D17625

FreeBSD — head/sys/netinet ip_encap.c

Include <sys/eventhandler.h> to fix the build.

MFC after:        1 month
Delta File
+1 -0 head/sys/netinet/ip_encap.c
+1 -0 1 file

FreeBSD — head/sys/net if_ipsec.c

Follow the fix in r339532 (by glebius):
  Fix exiting an epoch(9) we never entered. May happen only with MAC.

MFC after:        1 month
Delta File
+1 -1 head/sys/net/if_ipsec.c
+1 -1 1 file

FreeBSD — head/sys/net if_ipsec.c

Rework if_ipsec(4) to use epoch(9) instead of rmlock.

* use CK_LIST and FNV hash to keep chains of softc;
* read access to softc is protected by epoch();
* write access is protected by ipsec_ioctl_sx. Changing of softc fields
  is allowed only when softc is unlinked from CK_LIST chains.
* linking/unlinking of softc is allowed only when ipsec_ioctl_sx is
  exclusive locked.
* the plain LIST of all softc is replaced by hash table that uses ingress
  address of tunnels as a key.
* added support for appearing/disappearing of ingress address handling.
  Now it is allowed configure non-local ingress IP address, and thus the
  problem with if_ipsec(4) configuration that happens on boot, when
  ingress address is not yet configured, is solved.

MFC after:        1 month
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17190
Delta File
+204 -165 head/sys/net/if_ipsec.c
+204 -165 1 file

FreeBSD — head/sys/net if_me.c

Add handling for appearing/disappearing of ingress addresses to if_me(4).

* register handler for ingress address appearing/disappearing;
* add new srcaddr hash table for fast softc lookup by srcaddr;
* when srcaddr disappears, clear IFF_DRV_RUNNING flag from interface,
  and set it otherwise;

MFC after:        1 month
Sponsored by:        Yandex LLC
Delta File
+59 -4 head/sys/net/if_me.c
+59 -4 1 file

FreeBSD — head/sys/net if_gre.c if_gre.h, head/sys/netinet ip_gre.c

Add handling for appearing/disappearing of ingress addresses to if_gre(4).

* register handler for ingress address appearing/disappearing;
* add new srcaddr hash table for fast softc lookup by srcaddr;
* when srcaddr disappears, clear IFF_DRV_RUNNING flag from interface,
  and set it otherwise;

MFC after:        1 month
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17214

FreeBSD — head/share/man/man4 gif.4, head/sys/net if_gif.c if_gif.h

Add handling for appearing/disappearing of ingress addresses to if_gif(4).

* register handler for ingress address appearing/disappearing;
* add new srcaddr hash table for fast softc lookup by srcaddr;
* when srcaddr disappears, clear IFF_DRV_RUNNING flag from interface,
  and set it otherwise;
* remove the note about ingress address from BUGS section.

MFC after:        1 month
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17134

FreeBSD — head/sys/net if.c, head/sys/netinet ip_encap.c ip_encap.h

Add KPI that can be used by tunneling interfaces to handle IP addresses
appearing and disappearing on the host system.

Such handling is need, because tunneling interfaces must use addresses,
that are configured on the host as ingress addresses for tunnels.
Otherwise the system can send spoofed packets with source address, that
belongs to foreign host.

The KPI uses ifaddr_event_ext event to implement addresses tracking.
Tunneling interfaces register event handlers and then they are
notified by the kernel, when an address disappears or appears.

ifaddr_event_compat() handler from if.c replaced by srcaddr_change_event()
in the ip_encap.c

MFC after:        1 month
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17134

FreeBSD — stable/12/lib/clang llvm.build.mk

Uncomment -DNDEBUG in stable/12 after branching stable/12.
This edit was a mistake in head, and should have been applied
to stable/12 upon branching, not head.

This is a direct commit to stable/12.

Reported by:        jbeich, dim
Approved by:        re (kib)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 stable/12/lib/clang/llvm.build.mk
+1 -1 1 file

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

man: fix vale(4) port naming

The current documentation describing the syntax of a VALE port is wrong.
This patch fixes it to make it consistent.

Approved by:        bcr, gnn (mentor)
Differential Revision:        https://reviews.freebsd.org/D17411
Delta File
+12 -14 head/share/man/man4/vale.4
+12 -14 1 file

FreeBSD — head/sys/net if_vlan.c

vlan: Fix panic with lagg and vlan

vlan_lladdr_fn() is called from taskqueue, which means there's no vnet context
set. We can end up trying to send ARP messages (through the iflladdr_event
event), which requires a vnet context.

PR:                227654
MFC after:        3 days
Delta File
+5 -0 head/sys/net/if_vlan.c
+5 -0 1 file

FreeBSD — head/sys/kern Make.tags.inc

Remove stray refernce to pdq. Like the infamous twenty first of Johan
Sebastian Bach's twenty children, it hasn't been seen in many years.
Delta File
+0 -2 head/sys/kern/Make.tags.inc
+0 -2 1 file

FreeBSD — head/sys/netpfil/ipfw ip_fw_dynamic.c

Do not decrement RST life time if keep_alive is not turned on.

This allows use differen values configured by user for sysctl variable
net.inet.ip.fw.dyn_rst_lifetime.

Obtained from:        Yandex LLC
MFC after:        3 weeks
Sponsored by:        Yandex LLC

FreeBSD — head/sys/netpfil/ipfw/nat64 nat64lsn.c

Call inet_ntop() only when its result is needed.

Obtained from:        Yandex LLC
MFC after:        3 weeks
Sponsored by:        Yandex LLC

FreeBSD — head/sys/conf WITHOUT_SOURCELESS_UCODE

Remove stray fatm reference.

FreeBSD — head/sbin/ipfw ipfw.8, head/sys/conf options

Retire IPFIREWALL_NAT64_DIRECT_OUTPUT kernel option. And add ability
to switch the output method in run-time. Also document some sysctl
variables that can by changed for NAT64 module.

NAT64 had compile time option IPFIREWALL_NAT64_DIRECT_OUTPUT to use
if_output directly from nat64 module. By default is used netisr based
output method. Now both methods can be used, but they require different
handling by rules.

Obtained from:        Yandex LLC
MFC after:        3 weeks
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D16647

FreeBSD — head/lib/clang llvm.build.mk

Comment -DNDEBUG in head after r339436 when head was switched
from 12.0-ALPHA10 to 13.0-CURRENT.  This edit was a mistake,
and should have been applied to stable/12 upon branching, not
head.

Reported by:        jbeich, dim
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/lib/clang/llvm.build.mk
+1 -1 1 file

FreeBSD — head/sys/conf files, head/sys/dev/virtio/mmio virtio_mmio_fdt.c virtio_mmio.c

Split out the virtio mmio FDT attachment and add an ACPI attachment.

This allows the memory mapped I/O virtio driver to attach when we boot
with ACPI tables, for example in some cases with QEMU emulating arm64.

MFC after:        1 month

FreeBSD — head/sbin/ipfw ipfw2.c, head/sys/netinet ip_fw.h

Add IPFW_RULE_JUSTOPTS flag, that is used by ipfw(8) to mark rule,
that was added using "new rule format". And then, when the kernel
returns rule with this flag, ipfw(8) can correctly show it.

Reported by:        lev
MFC after:        3 weeks
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17373

FreeBSD — head/sys/dev/ncr ncr.c

Tag this obsolete driver. It was obsolete in 3.x when the sym driver
supported all the "old" chips it did, so we should have killed it in
4, but 12 will do. It's a bit outside of the normal deprecation
process, but given the extreme age, it's obsolete status for 8 major
releases and the fact that I couldn't find any users who posted dmesgs
with ncr0: in them after 2000 or 3.4. It may be too late for 12 (this
change will be merged, but maybe not the next one to remove it), but
it will be removed in 13 with the first round of other drivers tagged
to be gone in 12.

MFC after: 3 days
Delta File
+1 -0 head/sys/dev/ncr/ncr.c
+1 -0 1 file

FreeBSD — head/share/man/man9 EVENTHANDLER.9, head/sys/net if.c if_var.h

Add ifaddr_event_ext event. It is similar to ifaddr_event, but the
handler receives the type of event IFADDR_EVENT_ADD/IFADDR_EVENT_DEL,
and the pointer to ifaddr. Also ifaddr_event now is implemented using
ifaddr_event_ext handler.

MFC after:        3 weeks
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17100

FreeBSD — head/sbin/ifconfig ifconfig.c

Fix grammar.

Reported by:        yuripv
MFC after:        3 weeks
Delta File
+1 -1 head/sbin/ifconfig/ifconfig.c
+1 -1 1 file

FreeBSD — head/sbin/ifconfig ifconfig.c

Do not allow use `create` keyword as hostname when ifconfig(8) is invoked
for already existing interface.

It appeared, that ifconfig(8) assumes `create` keyword as hostname and
tries to resolve it, when `ifconfig ifname create` invoked for already
existing interface. This can produce some unexpected results, when hostname
resolving has successfully happened. This patch adds check for such case.
When an interface is already exists, and create is only one argument,
return error message. But when there are some other arguments, just remove
create keyword from the arguments list.

Obtained from:        Yandex LLC
MFC after:        3 weeks
Sponsored by:        Yandex LLC
Differential Revision:        https://reviews.freebsd.org/D17171
Delta File
+12 -0 head/sbin/ifconfig/ifconfig.c
+12 -0 1 file

FreeBSD — head/usr.sbin/pw pw_conf.c, head/usr.sbin/pw/tests pw_useradd_test.sh

pw: fix the checks in boolean_str() after r326738.  Add related test
cases for `pw useradd -D -w`.

PR:                231649
Reviewed by:        eugen
Approved by:        kib (mentor)
Differential Revision:        https://reviews.freebsd.org/D17299

FreeBSD — head/sys/netipsec key.c

Add sadb_x_sa2 extension to SADB_ACQUIRE requests.

SADB_ACQUIRE requests are send by kernel, when security policy doesn't
have corresponding security association for outbound packet. IKE daemon
usually registers its handler for such messages and when the kernel asks
for SA it can handle this request. Now such requests will contain
additional fields that can help IKE daemon to create SA. And IKE now
can create SAs using only information from SADB_ACQUIRE request, this
is useful when many if_ipsec(4) interfaces are in use and IKE doesn track
security policies that was installed by kernel.

Obtained from:        Yandex LLC
MFC after:        3 weeks
Sponsored by:        Yandex LLC
Delta File
+15 -1 head/sys/netipsec/key.c
+15 -1 1 file

FreeBSD — head/sys/net if_gif.c if_gre.c

Fix exiting an epoch(9) we never entered. May happen only with MAC.

FreeBSD — head/sys/amd64/amd64 support.S

amd64: tidy up memset to have rax set earlier for small sizes
Delta File
+17 -15 head/sys/amd64/amd64/support.S
+17 -15 1 file

FreeBSD — head/sys/dev/usb/net if_ure.c

Recognize LAN in Lenovo USB-C and TB3 docks
Delta File
+2 -0 head/sys/dev/usb/net/if_ure.c
+2 -0 1 file

FreeBSD — head/sys/teken teken_subr.h sequences

Implement ECMA-48 "REP", some Linuxen have started emitting them recently.

Approved by:        ed

FreeBSD — head/sys/mips/conf OCTEON1

Remove all the really old junk that never would be used with an OCTEON
CPU. Most of them were here just to test build mips versions of
things, even though many of them have never been tested on mips, let
alone the Octeon.
Delta File
+0 -76 head/sys/mips/conf/OCTEON1
+0 -76 1 file

FreeBSD — head/sys/dev/usb usbdevs

Add Lenovo USB-C and TB3 docks
Delta File
+2 -0 head/sys/dev/usb/usbdevs
+2 -0 1 file