Commit Graph

299245 Commits

Author SHA1 Message Date
chs fc887601fd mount_nfs: add missing "A" to getopt string 2022-12-21 19:00:52 +00:00
chs e54ca8497e ffs: fail mounts requesting ACLs for non-ea UFS2 file systems
For non-ea UFS2 file system, fail mounts that request ACLs rather than
letting the mount succeed only to reject all ACL operations later.

Also fix the messages about the on-disk fs flags conflicting with
the mount options for which type of ACLs to use, and about requesting
both types of ACLs.
2022-12-21 18:58:25 +00:00
pgoyette f316e56b41 Bump version to keep modules and kernelin sync following the
creation of compat_100 stuff.

Welcome to 10.99.2
2022-12-21 18:03:48 +00:00
wiz eb7b4f7765 Remove unneeded -D_OPENBSD_SOURCE 2022-12-21 17:44:15 +00:00
wiz 56697cef97 Remove unneeded -D_OPENBSD_SOURCE 2022-12-21 17:20:07 +00:00
skrll ea44ee84ea Rename pmap_md_pdetab_destroy to pmap_md_pdetab_fini to match
pmap_md_pdetab_init.

Call pmap_md_pdetab_fini from pmap_segtab_destroy.
2022-12-21 11:39:45 +00:00
wiz c1acb3b3a5 adapt mbstowcs_basic test for unicode table update
reformat so it's easier to find which result data belongs to which input
2022-12-21 09:33:34 +00:00
msaitoh 133b743cd1 Add note about "netstat -mssv". 2022-12-21 09:06:59 +00:00
wiz 4a1e84fe2f Update Unicode tables to 15.0.0.
This is based on the tables provided by perl 5.37.7.
2022-12-21 06:25:35 +00:00
blymn 0d33635b3c Add more debug so a call to waddbytes can be traced to the caller. 2022-12-21 06:18:01 +00:00
nonaka 37d5295239 Update the Rx descriptor based on the vendor driver for Linux.
This fixes a panic on RTL8125.
Patch from OpenBSD if_rge.c r1.20, if_rgereg.h r1.8.

Tested by msaitoh@n.o.
2022-12-21 05:19:15 +00:00
chs 1f3bc2830b swap: disallow user opens of swap block device
the swap/drum block device was never intended to allow user opens,
but when the internal VOP_OPEN() in uvm_swap_init() was added
back in rev 1.135, the d_open method was changed from always-fail
to always-succeed in order to allow the new initial internal open.
this had the side effect of incorrectly allowing user opens too.
fix this by replacing the swap_bdevsw d_open with one that succeeds
for the first call but fails for all subsequent calls.

Reported-by: syzbot+90a23d2f19e5a0a302b3@syzkaller.appspotmail.com
2022-12-21 02:28:06 +00:00
wiz d7bbc7f115 Update Unicode tables.
These tables are for Unicode 14.0.0 using the data provided with
perl 5.36.0.
2022-12-20 23:08:51 +00:00
wiz 9d24b22cba Add NetBSD RCS Id header instead of OpenBSD one. 2022-12-20 23:07:57 +00:00
wiz 17c3d9d43e Update unicode tables.
This version of the file, and the generator script, come from
OpenBSD. The script was written by Andrew Fresh.

The file covers the encodings from Unicode 13.0.0, based on the files
distributed with perl 5.32.1.
2022-12-20 23:06:08 +00:00
kre d1668f2837 More markup errors. \+ was intended to be \&+ and .EV .Ev of course.
As best I can tell, the rest of what mandoc -Wall complains about is
incorrect (it could probably be avoided by adding more markup, but
there doesn't seem to be any point).
2022-12-20 17:51:54 +00:00
kre d51e0a2e8a Using .Cm Cm makes no sense at all - no idea what I was thinking there
(perhaps just an editing error).
2022-12-20 16:48:57 +00:00
hannken 218437a441 When partitioning a mbuf chain with m_split() the last mbuf of the returned
tail chain is not necessarily the same as the last mbuf of the initial chain.

Always set "slp->ns_rawend" to the last mbuf of the tail chain to prevent
mbuf leaks and corruption.
2022-12-20 09:40:09 +00:00
blymn 9c6a0e327d Backout change to addnstr that broke other applications as n should be
the number of bytes to add - for multibyte characters n will be > 1.

Fix __slk_draw to pass in the actual length of the label instead of
the default label length because wide characters may make the
actual string length longer than the slk display length.
2022-12-20 04:57:01 +00:00
pgoyette 4999202e65 Missed the compat_netbsd32_100 stuff in previous commit 2022-12-20 04:10:11 +00:00
uwe c14a7046e4 sh(1): Fix markup. -compact must be last. 2022-12-20 01:18:42 +00:00
jakllsch 89823b19df add compat_100 module setlist entries 2022-12-20 00:31:55 +00:00
msaitoh f9a60bb8dc Remove sys/compat/common/Makefile.*.
These files are not used anymore. Files for compat code are listed in
sys/comapt/common/files.common and sys/modules/compat_xxx/Makefile.
OK'd by riastradh@ and pgoyette@.
2022-12-20 00:11:14 +00:00
pgoyette 189762b34e Create compat_100 module infrastructure now that we have branched
for NetBSD-10
2022-12-19 23:19:51 +00:00
chs 062d5b230d tunefs: clarify that "-a" refers to NFSv4 ACLs 2022-12-19 21:13:16 +00:00
chs 10f15f1bea dumpfs: remove confusing output for UFS2
remove the mention of "fslevel 5" because no such thing exists.
the whole "fs level" concept really only applies to UFS1, so don't print
the line with the level number and details for UFS2 file systems at all.
try to clarify this in the manpage as well.
prompted by PR 57082.
2022-12-19 18:51:42 +00:00
mrg 1d2e605e4b bump xorg-server version. 2022-12-19 01:51:29 +00:00
uwe e64f67a0f1 mutex(9): Minor formatting fixes
While here, move the reference to options(4) to the OPTIONS section.
2022-12-19 00:41:45 +00:00
gutteridge a1641d690a mutex.9: fix markup (.Em not .Fn) 2022-12-18 23:38:42 +00:00
reinoud ebb11b8783 Note the addition of trivial power management support for amdsmn(4) and
amdccp(4)
2022-12-18 15:56:27 +00:00
reinoud 22a97c463e Add amdsmn(4) and amdccp(4) power management stubs. 2022-12-18 15:50:32 +00:00
skrll f42c429c0f Appease KDASSERT / LOCKDEBUG.
Tested by mlelstv.
2022-12-18 12:02:46 +00:00
skrll afd9eb9651 Typo in comment 2022-12-18 07:53:30 +00:00
macallan 3d0a848e26 add comment to explain why we zero SPRG0 here
NFC
2022-12-18 01:16:05 +00:00
macallan 688f2445ea #ifdef DEBUG the previous change, it seems to cause trouble on qemu which
needs further investigation
2022-12-18 01:10:57 +00:00
kim ca8a79a330 Whitespace police: Line up the version numbers for doc-operating-system-* 2022-12-17 11:51:52 +00:00
mrg 535d9694a5 handle pixman revert. 2022-12-17 09:46:21 +00:00
martin f9bf21ec12 Switch back to FFSv2ea as default for new installations 2022-12-16 19:49:13 +00:00
ryo be4c756b99 tprof_lock is not a spin mutex. use mutex_{enter,exit}(). oops 2022-12-16 17:38:56 +00:00
martin 0498f53817 Welcome to 10.99.1! 2022-12-16 17:35:42 +00:00
martin 1b142bcf55 Add notes about FFS and extended attributes. 2022-12-16 16:58:14 +00:00
msaitoh d4ee246879 Add new "kern.mbuf.nmbclusters_limit" sysctl.
- Used to know the upper limit of nmbclusters.
 - It's read only.
2022-12-16 08:42:55 +00:00
ryo 63a85c5bd2 the "scale" option can be specified in the event name even in "tprof monitor" 2022-12-16 08:02:04 +00:00
ryo 923aefa047 - added 'c' command to tprof-top to show/hide event counter.
- column widths were not calculated correctly and sometimes displayed incorrectly.
- use putp() for terminfo str.
- fix build error with llvm.
2022-12-16 08:00:47 +00:00
ryo 2b54f35cc3 - Add support select(2)/poll(2) on /dev/tprof.
- Changed sampling buffer switching frequency (which is the frequency of tprof_worker()
  calls and also the maximum block time of read(2) of /dev/tprof) from 1sec to 125ms.
  This improve tprof top responsiveness.
- The maximum number of sampling buffers is now adjusted according to the number of CPUs.
  Previously it was fixed at 100 and was insufficient if ncpu was greater than this.

The maximum number of samples per second per CPU is calculated by
"TPROF_MAX_SAMPLES_PER_BUF * (HZ of tprof_worker)".
Therefore, currently, 10000 * (1000/125) = 80000 maximum samplings per CPU.
The actual value will vary slightly from this due to tprof_worker and read(2) timing.
This value may need to be adjusted more in the future.
2022-12-16 07:59:42 +00:00
msaitoh f8bb300ea3 doc: NCT6797D support 2022-12-16 00:05:01 +00:00
msaitoh 5e7dd0391c lm(4): Add Nuvoton NCT6797D support. 2022-12-16 00:02:28 +00:00
martin bd887569a6 PR 57100: in manual mode, we can not ignore existing partitions
completley, as that causes inconsistent internal state.
2022-12-15 20:34:46 +00:00
martin f36c93121c PR 57100: check if we can newfs the proper fstype when adding a new
partition and accepting the default FS type.
2022-12-15 20:21:16 +00:00
martin ec5e52a94f Add an (expert) option to manually edit partitions, inspired by PR 57100. 2022-12-15 15:32:04 +00:00