]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agolinuxkpi: Add mmu_notifier.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:56:04 +0000 (09:56 +0200)]
linuxkpi: Add mmu_notifier.h

Provide dummy structure needed for drm-kmod.

MFC after:      1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35567

(cherry picked from commit cfe72b9f09f36c38702bf56388fa3e1b49da218a)

2 years agolinuxkpi: Add mmu_context.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:53:55 +0000 (09:53 +0200)]
linuxkpi: Add mmu_context.h

Provide dummy functions needed for drm-kmod.

Reviewed by: bz
MFC after:      1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35566

(cherry picked from commit a95f28800a0169d7cfbfb9aabc5ae9410c20ecd1)

2 years agolinuxkpi: Add media-bus-format.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:52:37 +0000 (09:52 +0200)]
linuxkpi: Add media-bus-format.h

Provide macros needed for drm-kmod.

Obtain from: OpenBSD (via drm-kmod)
MFC after:      1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35565

(cherry picked from commit 7e4f9ebeaab420b16a8041194c687e624be5b3f9)

2 years agolinuxkpi: Add kmemleak.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:51:34 +0000 (09:51 +0200)]
linuxkpi: Add kmemleak.h

Provide macros needed for drm-kmod.

Obtain from: OpenBSD (via drm-kmod)
MFC after:      1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35564

(cherry picked from commit 8730ba418e050f622c32766562366729b4d775ad)

2 years agolinuxkpi: Add kfifo.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:50:29 +0000 (09:50 +0200)]
linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after:      1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35563

(cherry picked from commit 088b746cbda664602f9cee0d1415ae8d98389f38)

2 years agolinuxkpi: Add console.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:48:11 +0000 (09:48 +0200)]
linuxkpi: Add console.h

Provide dummy functions needed for drm-kmod.

Reviewed By: bz
MFC after:      1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35562

(cherry picked from commit 57c9ec539cbae4239390b8877e38b1e1f82710ae)

2 years agolinuxkpi: Add circ_buf.h
Emmanuel Vadot [Thu, 23 Jun 2022 07:46:03 +0000 (09:46 +0200)]
linuxkpi: Add circ_buf.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35561

(cherry picked from commit 7674baeb37870b05539a0214c99ce55d9f199fb0)

2 years agohyperv: Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:49:47 +0000 (13:49 +0200)]
hyperv: Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 26d6e38604494539ee96935e9fd6cfa1341bf6e2)

2 years agox86: Correct a typo in source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:36:53 +0000 (13:36 +0200)]
x86: Correct a typo in source code comment

- s/occured/occurred/

(cherry picked from commit 9755e244c9b87aa0ff993aa5cf777da65fa9f627)

2 years agousb: Remove a double words in a source code comments
Gordon Bergling [Sun, 4 Sep 2022 15:40:25 +0000 (17:40 +0200)]
usb: Remove a double words in a source code comments

- s/that that/that/

(cherry picked from commit 8ca67bf1273a5168f8a3787183159c477632e582)

2 years agoetherswitch(4): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:41:44 +0000 (13:41 +0200)]
etherswitch(4): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 8cf905e5faac9cc3be6cfc97f6009d31de42228c)

2 years agoi386: Correct a typo in source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:35:34 +0000 (13:35 +0200)]
i386: Correct a typo in source code comment

- s/occured/occurred/

(cherry picked from commit d653487430a705e2882a50a4cd6b980f61cd4807)

2 years agokern: Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 15:32:10 +0000 (17:32 +0200)]
kern: Remove a double word in a source code comment

- s/that that/that/

(cherry picked from commit d744e271eb22746957397674bdbc480e7377adda)

2 years agovmci(4): Correct some typos in source code comments
Gordon Bergling [Sun, 4 Sep 2022 11:28:47 +0000 (13:28 +0200)]
vmci(4): Correct some typos in source code comments

- s/occured/occurred/

(cherry picked from commit f2e13c27bbd1c2d385a572e97cc19ba122b74986)

2 years agoipf.4: Correct a typo in the manual page
Gordon Bergling [Sun, 4 Sep 2022 10:55:42 +0000 (12:55 +0200)]
ipf.4: Correct a typo in the manual page

- s/occured/occurred/

(cherry picked from commit b89592a9ef35f29cecb909b5ec4bc591a3df6aa2)

2 years agomps(4): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:48:21 +0000 (13:48 +0200)]
mps(4): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit d6f9a3c0a8b11fa0e26e364266e37805ca1dcca2)

2 years agompr(4): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:46:44 +0000 (13:46 +0200)]
mpr(4): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 2f9de90b22a6478752534eb5b772d2c1d134b309)

2 years agobpf(3): Grammar fix for a source code comment
Gordon Bergling [Sun, 4 Sep 2022 15:30:05 +0000 (17:30 +0200)]
bpf(3): Grammar fix for a source code comment

- s/that that/that the/

(cherry picked from commit 8a153724cd464e7fb156203dfb1304c90cfaec1c)

2 years agopkg(8): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 15:28:16 +0000 (17:28 +0200)]
pkg(8): Remove a double word in a source code comment

- s/that that/that/

(cherry picked from commit 990878b07f4a452d3e4c01e98001f94e3a868fb1)

2 years agolibifconfig: Correct some typos in source code comments
Gordon Bergling [Sun, 4 Sep 2022 10:53:58 +0000 (12:53 +0200)]
libifconfig: Correct some typos in source code comments

- s/occured/occurred/
- s/the the/the/

(cherry picked from commit 09703627879df49648e065c5e64db7ab807263d1)

2 years agonetmap(4): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:42:48 +0000 (13:42 +0200)]
netmap(4): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 591a9b5ea339feda45cd0dafaac4b581495a57d2)

2 years agobxe(4): Grammar fix for a source code comment
Gordon Bergling [Sun, 4 Sep 2022 15:43:15 +0000 (17:43 +0200)]
bxe(4): Grammar fix for a source code comment

- s/that that/that the/

(cherry picked from commit 6e9e7b0583593a8e45a3e97458c7a74fee4d43bf)

2 years agomsun: Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:57:38 +0000 (13:57 +0200)]
msun: Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 10889539eeb9cf223c8f2e7ebf51f2ba22f12ac6)

2 years agotmpfs(5): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:51:50 +0000 (13:51 +0200)]
tmpfs(5): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit d81e1b4429805a234ebf002e7aa583dc6c967b99)

2 years agobhnd(4): Correct some typos in source code comments
Gordon Bergling [Sun, 4 Sep 2022 10:49:42 +0000 (12:49 +0200)]
bhnd(4): Correct some typos in source code comments

- s/occured/occurred/

While here, fix some whitespace issues.

(cherry picked from commit 88cdf609e411a1ba398e9e3e93ad82345ad8b516)

2 years agoipfilter: Grammar fix for the ipfilter howto
Gordon Bergling [Sun, 4 Sep 2022 15:37:28 +0000 (17:37 +0200)]
ipfilter: Grammar fix for the ipfilter howto

- s/that that/that the/

(cherry picked from commit 1e289a12553d405899896c7b5ba820b35eee0e95)

2 years agoip6.4: Correct a typo in the manual page
Gordon Bergling [Sun, 4 Sep 2022 11:03:44 +0000 (13:03 +0200)]
ip6.4: Correct a typo in the manual page

- s/the the/the/

(cherry picked from commit 8eadfdd99eee6418f46076b313738bb1b15514d0)

2 years agonetdump(4): Correct a typo in source code comment
Gordon Bergling [Sun, 4 Sep 2022 10:59:29 +0000 (12:59 +0200)]
netdump(4): Correct a typo in source code comment

- s/occured/occurred/

(cherry picked from commit 347b1991b09983a03a4916c0d6b3e6097f852c89)

2 years agonetinet: Correct a typo in source code comment
Gordon Bergling [Sun, 4 Sep 2022 10:57:12 +0000 (12:57 +0200)]
netinet: Correct a typo in source code comment

- s/occured/occurred/

(cherry picked from commit 893f36b7f18012f1849c96e12ec4241b3d7bd337)

2 years agomsdosfs(5): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 15:34:52 +0000 (17:34 +0200)]
msdosfs(5): Remove a double word in a source code comment

- s/that that/that/

(cherry picked from commit 0721306c2b31db8ec37b6caf9864f993d8568b13)

2 years agosound(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 09:23:34 +0000 (11:23 +0200)]
sound(4): Fix a typo in a source code comment

- s/availavle/available/

(cherry picked from commit 4e50737fa8d65a35c844b587d5cd98172830ec68)

2 years agoarm64: Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:40:15 +0000 (13:40 +0200)]
arm64: Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 160d76986ec5925410809450323e13e3a3fdec28)

2 years agonet80211(4): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:53:17 +0000 (13:53 +0200)]
net80211(4): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 8f538e27663a86c26f39c34ebf9fd59e180800dd)

2 years agohyperv: Fix a typo in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 15:19:40 +0000 (17:19 +0200)]
hyperv: Fix a typo in a source code comment

- s/Unsupport/Unsupported/

(cherry picked from commit 630c51774523274cb3f616aefd0be7b747dca991)

2 years agostand: Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:39:35 +0000 (13:39 +0200)]
stand: Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit e30a08016ba6f140bd16e15fd564ab0c2c9f4b84)

2 years agocd9660(5): Correct a typo in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 16:20:09 +0000 (18:20 +0200)]
cd9660(5): Correct a typo in a source code comment

- s/byes/bytes/

(cherry picked from commit 5f285d5537219932c12ce4e6149d1a4f26aa3457)

2 years agopowerpc: Correct some typos in source code comments
Gordon Bergling [Sun, 4 Sep 2022 11:32:13 +0000 (13:32 +0200)]
powerpc: Correct some typos in source code comments

- s/occured/occurred/

(cherry picked from commit 01e7018587ea33f46527ffdbb7c258bb592f1062)

2 years agoping(8): Correct a typo in source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:26:34 +0000 (13:26 +0200)]
ping(8): Correct a typo in source code comment

- s/occured/occurred/

(cherry picked from commit eec35f1fb3aad710e2d064b77052c115779b4172)

2 years agobhyve(4): Remove a double word in a source code comment
Gordon Bergling [Sun, 4 Sep 2022 11:57:00 +0000 (13:57 +0200)]
bhyve(4): Remove a double word in a source code comment

- s/the the/the/

(cherry picked from commit 886ce99deab628ad05e86f2be19f06b66cc67cf8)

2 years agontpd(8): Correct a typo in comment of the rc script
Gordon Bergling [Sun, 4 Sep 2022 11:02:21 +0000 (13:02 +0200)]
ntpd(8): Correct a typo in comment of the rc script

- s/the the/the/

(cherry picked from commit 7ed279f58f83499cc62d253487462c1743da6aec)

2 years agopmc(3): Correct some typos in event descriptions
Gordon Bergling [Sun, 4 Sep 2022 10:52:38 +0000 (12:52 +0200)]
pmc(3): Correct some typos in event descriptions

- s/occured/occurred/
- s/the the/the/

(cherry picked from commit f0d4c2afd65f821b8983152848f4005239ff975a)

2 years agotcp_hpts: Correct some typos in source code comments
Gordon Bergling [Sun, 4 Sep 2022 10:47:49 +0000 (12:47 +0200)]
tcp_hpts: Correct some typos in source code comments

- s/occured/occurred/
- s/the the/the/

(cherry picked from commit d07a5018766e11d7f9d7f0c1aa5e0a9baa5ca6d6)

2 years agonetpfil: Correct some typos in source code comments
Gordon Bergling [Sun, 4 Sep 2022 10:46:05 +0000 (12:46 +0200)]
netpfil: Correct some typos in source code comments

- s/occured/occurred/
- s/the the/the/

(cherry picked from commit 4d89e2018cbc7b70abdc1a78ea01a7c423a96347)

2 years agopkt-gen: flip IPv4 address in ping-pong mode
Vincenzo Maffione [Wed, 24 Aug 2022 08:20:57 +0000 (08:20 +0000)]
pkt-gen: flip IPv4 address in ping-pong mode

(cherry picked from commit 9a7abd932727dbf593cda85b18de87855b2e7e06)

2 years agoumodem(4): Clear stall at every open.
Hans Petter Selasky [Tue, 30 Aug 2022 14:01:43 +0000 (16:01 +0200)]
umodem(4): Clear stall at every open.

Some controllers like the XHCI(4) loose track of the data toggle value when
USB receive transfers are cancelled at close. This in turn can lead to to
data loss after the next open.

To avoid data loss, make sure both the receive and transmit data toggles
get reset, before trying to read or write any data.

Differential Revision: https://reviews.freebsd.org/D36391
Submitted by: Dave Baukus <daveb@spectralogic.com>
Sponsored by: NVIDIA Networking

(cherry picked from commit 40e43b056df9aa2392f673fcacc72725c2201658)

2 years agoucom(4): Make sure the open routine is executed synchronously.
Dave Baukus [Tue, 30 Aug 2022 14:19:40 +0000 (16:19 +0200)]
ucom(4): Make sure the open routine is executed synchronously.

To avoid issues starting any USB transfers before the open
function is complete.

Differential Revision: https://reviews.freebsd.org/D36391
Sponsored by: NVIDIA Networking

(cherry picked from commit cbc5350359b9be916cc0dc1986147013c6f90483)

2 years agortld(1): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 17:16:32 +0000 (19:16 +0200)]
rtld(1): Fix a typo in a source code comment

- s/interger/integer/

(cherry picked from commit 3576233cd355d31c58f78f3efed4fe577c9e3171)

2 years agomalo(4): Fix a typo in asource code comment
Gordon Bergling [Sat, 3 Sep 2022 13:34:27 +0000 (15:34 +0200)]
malo(4): Fix a typo in asource code comment

- s/overriden/overridden/

(cherry picked from commit b55a0762fc6336b309a8f9986b8af7512516a48c)

2 years agocron(8): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 13:00:29 +0000 (15:00 +0200)]
cron(8): Fix a typo in a source code comment

- s/overriden/overridden/

(cherry picked from commit b82cbe465173baa727f7a4860c74b78718662c14)

2 years agotip(1): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 12:59:03 +0000 (14:59 +0200)]
tip(1): Fix a typo in a source code comment

- s/overriden/overridden/

(cherry picked from commit fa4eca789ec90d0724b81ecf7cf30503c6cd567d)

2 years agorc.conf: Fix a typo in a comment
Gordon Bergling [Sat, 3 Sep 2022 12:57:39 +0000 (14:57 +0200)]
rc.conf: Fix a typo in a comment

- s/overriden/overridden/

(cherry picked from commit 0a81527da8e51e3dd77af2ef4950d6559684487f)

2 years agoltc430x(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 13:43:05 +0000 (15:43 +0200)]
ltc430x(4): Fix a typo in a source code comment

- s/overriden/overridden/

(cherry picked from commit b0e86eed27ec98204978685d4d3dd384267dd60f)

2 years agobge(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 13:38:26 +0000 (15:38 +0200)]
bge(4): Fix a typo in a source code comment

- s/overriden/overridden/

(cherry picked from commit de47bf0d52a0dd2cfcb19a8b49a55253945342ca)

2 years agoath(4): Fix two typos in source code comments
Gordon Bergling [Sat, 3 Sep 2022 13:24:48 +0000 (15:24 +0200)]
ath(4): Fix two typos in source code comments

- s/overriden/overridden/

(cherry picked from commit f9a9fe46dc3ed37c9b44cd2b6561b324819fa81e)

2 years agopci(4): Fix a typo in asource code comment
Gordon Bergling [Sat, 3 Sep 2022 13:28:05 +0000 (15:28 +0200)]
pci(4): Fix a typo in asource code comment

- s/overriden/overridden/

(cherry picked from commit 6b497700885b21106235a1ee7bfd31194e4ca42b)

2 years agoisp(4): Fix two typos in source code comments
Gordon Bergling [Sat, 3 Sep 2022 12:54:14 +0000 (14:54 +0200)]
isp(4): Fix two typos in source code comments

- s/overriden/overridden/

(cherry picked from commit 310d144a83411abedc17bfeec07f1f7ccee2434e)

2 years agonetisr(9): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 13:04:15 +0000 (15:04 +0200)]
netisr(9): Fix a typo in a source code comment

- s/overriden/overridden/

(cherry picked from commit 028ecc7aa1a06abdae96ba076189dc973d075042)

2 years agobce(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 13:39:51 +0000 (15:39 +0200)]
bce(4): Fix a typo in a source code comment

- s/overriden/overridden/

(cherry picked from commit ddf38e0204f8146709d3a278520873a68d1802a4)

2 years agonetpfil: Fix a typo in a source code comment
Gordon Bergling [Sat, 3 Sep 2022 17:18:54 +0000 (19:18 +0200)]
netpfil: Fix a typo in a source code comment

- s/intergers/integers/

While here, fix some whitespace issues.

2 years agoimpi(4): Fix two typos in source code comments
Gordon Bergling [Sat, 3 Sep 2022 12:52:44 +0000 (14:52 +0200)]
impi(4): Fix two typos in source code comments

- s/overriden/overridden/

(cherry picked from commit 05e1ac3cbfedf12e4b7a41729ad2ff6e748983a1)

2 years agobxe(4): Fix two typos in source code comments
Gordon Bergling [Sat, 3 Sep 2022 13:36:00 +0000 (15:36 +0200)]
bxe(4): Fix two typos in source code comments

- s/overriden/overridden/

(cherry picked from commit f93ef3ff068c96062fadd503979473fe1b1db139)

2 years agosound(4): Fix a typo in asource code comment
Gordon Bergling [Sat, 3 Sep 2022 13:30:39 +0000 (15:30 +0200)]
sound(4): Fix a typo in asource code comment

- s/overriden/overridden/

(cherry picked from commit ac34f366cc8186ec747248f31079838699b389a6)

2 years agokern: Fix a typo in asource code comment
Gordon Bergling [Sat, 3 Sep 2022 13:26:55 +0000 (15:26 +0200)]
kern: Fix a typo in asource code comment

- s/overriden/overridden/

(cherry picked from commit 2b7d656f173d7bf26a0c3f66226e797cbce98edb)

2 years agosdhci(4): Fix a typo in asource code comment
Gordon Bergling [Sat, 3 Sep 2022 13:31:59 +0000 (15:31 +0200)]
sdhci(4): Fix a typo in asource code comment

- s/overriden/overridden/

(cherry picked from commit cc280cac3478d39a5231aec06d50ebd27b2aa1bb)

2 years agousb: Fix two typos in source code comments
Gordon Bergling [Sat, 3 Sep 2022 13:22:42 +0000 (15:22 +0200)]
usb: Fix two typos in source code comments

- s/overriden/overridden/

(cherry picked from commit d0ddb5aacabab2cc5bbfbd18c3f07507b6acdb92)

2 years agotcp_rack: Fix two typos in source code comments
Gordon Bergling [Sat, 3 Sep 2022 13:05:42 +0000 (15:05 +0200)]
tcp_rack: Fix two typos in source code comments

- s/overriden/overridden/

(cherry picked from commit fa52f9dc9aa1e3726c37e5a87d3d71d529df9e30)

2 years agoifconfig(8): Fix a typo in source code comment
Gordon Bergling [Sat, 3 Sep 2022 12:55:54 +0000 (14:55 +0200)]
ifconfig(8): Fix a typo in source code comment

- s/overriden/overridden/

(cherry picked from commit 2f2cf766b2ae0d42c70ec7bff0fd87ac8449c3a3)

2 years agocp: Fix build without VM_AND_BUFFER_CACHE_SYNCHRONIZED.
Alexander Motin [Tue, 30 Aug 2022 14:51:21 +0000 (10:51 -0400)]
cp: Fix build without VM_AND_BUFFER_CACHE_SYNCHRONIZED.

It allows to not use mmap() for small files, which is not helpful
in case of ZFS.  Should be no functional change.

MFC after: 1 week

(cherry picked from commit 35b7759c05cbc65c06d87141da79f0f80af0f458)

2 years agovt.4: Provide a hint about Fn + K Scroll Lock combination
Ed Maste [Thu, 3 Mar 2022 14:59:14 +0000 (09:59 -0500)]
vt.4: Provide a hint about Fn + K Scroll Lock combination

Many laptops do not have Scroll Lock and use a function key sequence
to access it.

MFC after: 1 week

Sponsored by: The FreeBSD Foundation

(cherry picked from commit f39f827222f7d3a21ada5f8af11db4a8753b776a)

2 years agoClarify code comments on ASLR default settings
Ed Maste [Fri, 5 Aug 2022 14:01:07 +0000 (10:01 -0400)]
Clarify code comments on ASLR default settings

Sponsored by: The FreeBSD Foundation

(cherry picked from commit f0687f3e0e4d09edce906308f79b312abd574553)

2 years agoDisallow invalid PT_GNU_STACK
Ed Maste [Fri, 18 Mar 2022 17:56:32 +0000 (13:56 -0400)]
Disallow invalid PT_GNU_STACK

Stack must be at least readable and writable.

PR: 242570
Reviewed by: kib, markj
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35867

(cherry picked from commit fbafa98a94cc7f4f30d71003c230d1b5d4c5960b)

2 years agousb(4): Quirk for non-compliant USB devices.
Hans Petter Selasky [Sat, 27 Aug 2022 06:50:51 +0000 (08:50 +0200)]
usb(4): Quirk for non-compliant USB devices.

Some non-compliant USB devices do not implement the
clear endpoint halt feature. Silently ignore such
failures, when they at least responded correctly
passing up a valid STALL PID packet.

Tested by: Doug Ambrisko <ambrisko@ambrisko.com>
Sponsored by: NVIDIA Networking

(cherry picked from commit 4e2d8cd3e29bc885567f61ff358f8c9459d621ce)

2 years agoRemove TDF_DOING_SA
Konstantin Belousov [Fri, 12 Aug 2022 20:25:00 +0000 (23:25 +0300)]
Remove TDF_DOING_SA

(cherry picked from commit f829268bcc89bdede5e28044bfb6dc04fb0e9f8a)

2 years agoRemove struct proc p_singlethr member
Konstantin Belousov [Fri, 12 Aug 2022 19:59:56 +0000 (22:59 +0300)]
Remove struct proc p_singlethr member

(cherry picked from commit 5e5675cb4bfa80b6026b5c781d6fa2cc9254468f)

2 years agoREAP_KILL_PROC: kill processes in the threaded taskqueue context
Konstantin Belousov [Fri, 12 Aug 2022 19:37:08 +0000 (22:37 +0300)]
REAP_KILL_PROC: kill processes in the threaded taskqueue context

(cherry picked from commit 2842ec6d99ce3590eabb34d23eff5b0fed24eb98)

2 years agofork_norfproc(): unlock p1 before retrying
Konstantin Belousov [Wed, 10 Aug 2022 17:03:31 +0000 (20:03 +0300)]
fork_norfproc(): unlock p1 before retrying

(cherry picked from commit 5e9bba94bd7f6b61d6c9fcef239e963e55c1a87a)

2 years agokern_sig.c: style
Konstantin Belousov [Wed, 17 Aug 2022 17:01:13 +0000 (20:01 +0300)]
kern_sig.c: style

(cherry picked from commit 0a4f2ac3b78ae9adf92f47da786e1b84a03d63d9)

2 years agoksiginfo_tryfree(): change return type to bool
Konstantin Belousov [Wed, 17 Aug 2022 16:58:46 +0000 (19:58 +0300)]
ksiginfo_tryfree(): change return type to bool

(cherry picked from commit cdb58f9d04cfb99d00e757ee769f8c2c3efcff89)

2 years agoksiginfo_alloc(): change to directly take M_WAITOK/NOWAIT flags
Konstantin Belousov [Wed, 17 Aug 2022 16:57:20 +0000 (19:57 +0300)]
ksiginfo_alloc(): change to directly take M_WAITOK/NOWAIT flags

(cherry picked from commit cc29f221aaa218297ee4948b92da53f6126bc658)

2 years agoi386 doreti: Fix calculation of stack frame size
Tijl Coosemans [Fri, 2 Sep 2022 14:16:35 +0000 (16:16 +0200)]
i386 doreti: Fix calculation of stack frame size

Reviewed by: kib
Fixes: e8b2980e4a12 - i386 doreti: stop saving/restoring %ecx

(cherry picked from commit cfdc649e455bc0d37d42c46b59360462e93b4300)

2 years agou3g(4): Add more USB IDs.
Hans Petter Selasky [Fri, 26 Aug 2022 20:01:41 +0000 (22:01 +0200)]
u3g(4): Add more USB IDs.

Submitted by: malavon <benny.goemans@gmail.com>
PR: 263700
Sponsored by: NVIDIA Networking

(cherry picked from commit 0b01a13b8a6e926f6dc5ca8ec782f730b9fe8af5)

2 years agonfscl: Fix handling of a bad session slot (NFSv4.1/4.2)
Rick Macklem [Fri, 26 Aug 2022 03:33:31 +0000 (20:33 -0700)]
nfscl: Fix handling of a bad session slot (NFSv4.1/4.2)

When a session has been marked defunct by the server
sending a NFSERR_BADSESSION reply to the NFSv4.1/4.2
client, nfsv4_sequencelookup() returns NFSERR_BADSESSION
without actually assigning a session slot.
Without this patch, newnfs_request() would erroneously
free slot 0.

This could result in the slot being reused prematurely,
but most likely just generated a "freeing free slot!!"
console message.

This patch fixes the code to not do the erroneous
freeing of the slot for this case.

PR: 260011
(cherry picked from commit 2b612c9d3bb528551de9eaabbdbadae89a36ba8b)

2 years agonfscl: Fix handling of nd_slotid while handling NFSERR_BADSESSION
Rick Macklem [Sat, 27 Aug 2022 23:03:18 +0000 (16:03 -0700)]
nfscl: Fix handling of nd_slotid while handling NFSERR_BADSESSION

When the NFSv4.1/4.2 client is handling a server error
of NFSERR_BADSESSION, it retries RPCs with a new session.
Without this patch, the nd_slotid was not being updated
for the new session.

This would result in a bogus console message like
"Wrong session srvslot=X slot=Y" and then it would
free the incorrect slot, often generating a
"freeing free slot!!" console message as well.

This patch fixes the problem.

Note that FreeBSD NFSv4.1/4.2 servers only
generate a NFSERR_BADSESSION error after a reboot
or after a client does a DestroySession operation.

PR: 260011
(cherry picked from commit fb29f817586972444d65b1548287a51f27891639)

2 years agoneta: Fix MTU change sequence
Kornel Dulęba [Thu, 18 Aug 2022 16:53:14 +0000 (18:53 +0200)]
neta: Fix MTU change sequence

The IFF_DRV_RUNNING flag is used to see if the interface needs
to be temporarily brought down during MTU change sequence.
The problem here is that this flag is cleared in mvneta_stop_locked,
resulting in the reinitialization logic never being executed after
MTU has been changed.
Fix that by saving the flag value before the interface is brought down.

Reported by: Jérôme Tomczyk <jerome.tomczyk@stormshield.eu>
Approved by: mw(mentor)
Obtained from: Semihalf
Sponsored by: Stormshield
MFC after: 2 weeks

(cherry picked from commit 97ecdc00ac5ac506f4119be9570d13de2d3a003a)

2 years agoTPM: do not set device description if probe fails
Konrad Sewiłło-Jopek [Tue, 16 Aug 2022 07:27:36 +0000 (09:27 +0200)]
TPM: do not set device description if probe fails

device_set_desc should be called only if driver probes successfully.

Approved by: mw(mentor)
Reviewed by: mw, kd
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35998

(cherry picked from commit 31ee3a33aa612294db302828d4d1f6f0c83bef4c)

2 years agolibprocstat: forward declare struct kinfo_proc
Brooks Davis [Fri, 26 Aug 2022 22:20:32 +0000 (23:20 +0100)]
libprocstat: forward declare struct kinfo_proc

This allows libprocstat.h to be included without sys/user.h as
documented in the manpage.

PR: 266146

(cherry picked from commit a28f83353243e2298b5f89c0dd6705dfcbda77ea)

2 years agoNOTES: Update the comment for MCLSHIFT
Mark Johnston [Wed, 24 Aug 2022 23:59:32 +0000 (19:59 -0400)]
NOTES: Update the comment for MCLSHIFT

(cherry picked from commit 465988e9fa8abb222cfda07a82c8f0bfe0f36074)

2 years agoNOTES: Update the default MSIZE and MCLSHIFT values
Mark Johnston [Wed, 24 Aug 2022 23:55:20 +0000 (19:55 -0400)]
NOTES: Update the default MSIZE and MCLSHIFT values

After commit 840327e5ddf3 ("mbuf: Don't support PAGE_SIZE < 4K"), these
defaults were causing LINT kernel builds to fail.

Reported by: Jenkins

(cherry picked from commit b0b0e4ee00b16cdbe5400e05f63934fdda1b133a)

2 years agoi386/exception.s: fix mismerge
Konstantin Belousov [Wed, 31 Aug 2022 11:32:08 +0000 (14:32 +0300)]
i386/exception.s: fix mismerge

2 years agoFix compat10 semaphore interface race
firk [Fri, 26 Aug 2022 08:05:56 +0000 (11:05 +0300)]
Fix compat10 semaphore interface race

PR: 265997

(cherry picked from commit 768f6373eb3d60e346d3bfa495e04315aeed8ff9)

2 years agolibc: Add strverscmp(3) and versionsort(3)
Aymeric Wibo [Wed, 24 Aug 2022 23:20:13 +0000 (02:20 +0300)]
libc: Add strverscmp(3) and versionsort(3)

(cherry picked from commit 05c9a0158f6837bb3a3781e4ed75f66115f6415a)

2 years agoDocument scandirat(3)
Konstantin Belousov [Tue, 23 Aug 2022 03:40:06 +0000 (06:40 +0300)]
Document scandirat(3)

(cherry picked from commit a294e679738bb4d2254c0ff416d40f6d6329754a)

2 years agolibc: add scandirat(3)
Konstantin Belousov [Tue, 23 Aug 2022 03:30:06 +0000 (06:30 +0300)]
libc: add scandirat(3)

(cherry picked from commit 9fb8e8eede5b48eda7dc39f61d815595c14e5752)

2 years agolibc: split scandir() into scandir_dirp() and proper scandir()
Konstantin Belousov [Tue, 23 Aug 2022 04:30:40 +0000 (07:30 +0300)]
libc: split scandir() into scandir_dirp() and proper scandir()

(cherry picked from commit cb6e97f4dae6d0b631b65f23baf2d4c67120f672)

2 years agoLink scandir_b(3) to scandir(3)
Konstantin Belousov [Tue, 23 Aug 2022 03:42:33 +0000 (06:42 +0300)]
Link scandir_b(3) to scandir(3)

(cherry picked from commit ea448a0a43c501abdb6fa3acd93ae787b6eb8d9c)

2 years agoscandir.3: Use .Fo instead of .Fn for long args
Konstantin Belousov [Tue, 23 Aug 2022 03:33:39 +0000 (06:33 +0300)]
scandir.3: Use .Fo instead of .Fn for long args

(cherry picked from commit aa5e19a9b3f33bab7a04d749601706d8f4499b25)

2 years agofork_exit(): style comment
Konstantin Belousov [Sun, 21 Aug 2022 23:14:02 +0000 (02:14 +0300)]
fork_exit(): style comment

(cherry picked from commit fce3b1c327937085f0df4964ac15fc4b212913af)

2 years agox86: improve machdep.uprintf_signal
Konstantin Belousov [Sun, 21 Aug 2022 01:47:11 +0000 (04:47 +0300)]
x86: improve machdep.uprintf_signal

(cherry picked from commit ff32a055542f0bbe835205a261350d9c0b6c553a)

2 years agox86: print trap name in addition of trap number
Konstantin Belousov [Sun, 21 Aug 2022 01:46:13 +0000 (04:46 +0300)]
x86: print trap name in addition of trap number

(cherry picked from commit 01a33b2af534445ef4d417175dc77a27d7575a76)

2 years agoi386: print all GPRs, PSL, and CR3 on double fault
Konstantin Belousov [Thu, 18 Aug 2022 04:16:09 +0000 (07:16 +0300)]
i386: print all GPRs, PSL, and CR3 on double fault

(cherry picked from commit 0f906b30e6fa5bed3c8468a6cab3847cf6909936)