Commit Graph

20485 Commits

Author SHA1 Message Date
andvar 8c4df4824b s/unaccessible/inaccessible/ 2021-12-10 19:30:05 +00:00
msaitoh 98b4f01524 s/premissions/permissions/ 2021-12-10 11:08:45 +00:00
andvar 6012d766dc fix various typos in comments and log messages. 2021-12-08 20:50:01 +00:00
andvar 42412bc75c s/efficent/efficient/ in comments. 2021-12-08 20:11:54 +00:00
andvar 253f520862 s/listner/listener/ 2021-12-07 22:09:59 +00:00
gson 8774b772cf In unix_parse(), always allocate memory for the entire struct sockaddr_un
and not just the part used by the present pathname, because the entire
struct will be passed to bind() and an EFAULT can result if not all of
it is a valid allocation.  Fixes PR kern/56533.
2021-12-07 10:39:33 +00:00
christos 12df8a1ef8 PR/56538: coypu: For compat ctime and friends (when time_t was 32 bits)
we want to load the timezone data using the same structs they were saved as.
Introduce __time_t which is always 64 bits and make the minimal changes for
this to work. Yes, it is ugly.
2021-12-05 18:06:24 +00:00
rillig a1de340f77 jemalloc.3: fix malformed CVS Id 2021-12-05 14:25:04 +00:00
msaitoh 73b5f8505b s/supress/suppress/ 2021-12-05 08:09:30 +00:00
msaitoh e44b4c4dd0 s/succesful/successful/ in comment. 2021-12-05 08:03:06 +00:00
msaitoh 2b50e65cd3 s/numberic/numeric/ in comment. 2021-12-05 05:03:05 +00:00
msaitoh 1316021699 s/argumetn/argument/ in comment. 2021-12-05 04:22:50 +00:00
pho 1f6f9b8380 librefuse: Preparation of a proper API versioning; no more #ifdef woes in user code
The goal is to fully support FUSE API version 3.0 while maintaining
API/ABI compatibility with code written for 2.6 (or even older).

* <fuse.h> now emits a compiler warning if it's included without
  defining FUSE_USE_VERSION. It had been silently defaulted to the
  latest supported version prior to this change. This is permissive
  compared to the original FUSE, as it emits an error instead.

* <fuse.h> now emits a warning if FUSE_USE_VERSION is higher than what
  can be provided.

* Added a macro FUSE_MAKE_VERSION(maj, min). It was missing from
  librefuse <fuse.h>.

No actual API updates have been made (yet).
2021-12-04 06:42:39 +00:00
pho f347108ede Use size_t in place of voff_t in puffs_setrootinfo(3)
Chuck Silvers pointed out that voff_t was also supposed to be
kernel-only. The correct type to use in userland would be off_t, but
since changing vsize_t to either voff_t or off_t is an ABI change on
32-bit platforms, we use size_t knowing that it is technically
incorrect.
2021-12-03 17:12:17 +00:00
pho 52a1252312 Avoid using register_t or vsize_t in <puffs.h>
<puffs.h> is a user-space header, and should not use any of
kernel-only types. It's not reasonable to require user-land
filesystems to #define _KERNTYPES.
2021-12-03 14:00:59 +00:00
andvar d1c4e519a3 fix various typos in comments, log messages and documentation. 2021-12-03 13:27:37 +00:00
pho f970914ed4 Revert my previous change to struct fuse_opt
I should have thought twice before commiting it. Of course changing
the layout of a struct breaks ABI compatibility. Change the offset
back to fixed 32 bits.
2021-12-01 14:17:50 +00:00
pho a399eed30e Use correct types for the fields of struct fuse_opt
This change shouldn't make any behavioral differences in reality, but
compilers these days dislike converting -1U to int32_t implicitly,
which is indeed understandable.
2021-12-01 13:51:33 +00:00
pho 13646d1209 Move the call of fuse_operations::init() from fuse_new() to fuse_loop()
Prior to this change we were calling init() before daemonizing the
process. Some filesystems call chdir(2) in init() but fuse_daemonize()
call chdir("/"), which breaks assumptions about the state of the
process.
2021-11-30 12:13:12 +00:00
skrll 3f3a46002b Trailing whitespace 2021-11-27 10:00:01 +00:00
thorpej 5696be5584 Decorate the VAX signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.

N.B. This is currently disabled, as these .cfi directives cause
linker warnings about incompatible TEXTREL relocations in .eh_frame.
2021-11-24 15:05:15 +00:00
thorpej cb0c5a1873 Decorate the SuperH signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-24 02:01:15 +00:00
thorpej 389a070437 Decorate the ARM signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-23 18:45:53 +00:00
thorpej 445de9ccf9 Because the PC is not a general purpose register on aarch64, we need
to use DWARF pseudo-register for the signal trampoline return address.

Adjust the style to match other platforms.
2021-11-23 02:49:55 +00:00
blymn fc986dbc59 Don't waste time setting the dirty flag multiple times. 2021-11-22 21:25:25 +00:00
nia 1569bcc0b3 cgdconfig(8): Add an argon2id password-based key generation method
This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

	memory (integer, in kilobytes)
	parallelism (integer, usually the number of CPU cores)
	version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@
2021-11-22 14:34:35 +00:00
nia 5a3dc90041 crypt(3): document some of the memory units we're dealing with 2021-11-22 14:30:24 +00:00
thorpej 93b0ea009f Decorate the m68k signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-21 23:58:09 +00:00
thorpej f8ce691891 Decorate the powerpc signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-21 21:31:24 +00:00
thorpej a7d9970d1b Use the DWARF pseudo-register for the signal trampoline return address. 2021-11-20 19:26:20 +00:00
wiz 5ef525c783 Mention that fchmod conforms to XPG 4.2. Bump date. 2021-11-19 23:51:16 +00:00
thorpej 91fe750880 Decorate the MIPS signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.
2021-11-18 04:33:20 +00:00
kre 3ba1fc18cc Move 'i' into DEBUG only code (now there be three).
Hopefully unbreaks !DEBUG builds.
2021-11-16 23:23:02 +00:00
blymn 145a760e05 Fix handling of the tab special character. 2021-11-16 21:00:50 +00:00
kre 676e85297d More cleanups and typo corrections. 2021-11-15 16:00:25 +00:00
wiz 0c114f84f3 Clean up. 2021-11-15 14:07:30 +00:00
wiz 4769a7f2b1 Sort SEE ALSO. 2021-11-15 14:06:50 +00:00
christos 18b914f008 Add man pages for posix_spawn_file_actions_add{f,}chdir from piyush 2021-11-15 14:01:50 +00:00
blymn 84d376be86 Fix for PR lib/55433
Correct the behaviour for ins_wstr:
* Properly check the string will fit by processing any special
  characters present when preforming the check.
* Simplify the routine by removing code that duplicates the code in
  _cursesi_addwchar and just call _cursesi_addwchar.
2021-11-15 06:27:06 +00:00
andvar 369abe069b fix various typos, mainly s/prefered/preferred/ 2021-11-07 20:31:09 +00:00
christos 1c05296632 Commit the userland portion of the posix_spawn_chdir project by Piyush Sachdeva 2021-11-07 14:34:30 +00:00
nia cce5ae2abd usbhid(3): use reallocarr 2021-11-03 16:18:09 +00:00
thorpej cb352d50ab CFI: Saved RA needs to point to the PC slot in the ucontext_t. 2021-11-03 04:52:51 +00:00
thorpej c570a44480 Set up the CFI in a slightly more rational way. 2021-11-03 03:58:31 +00:00
nia 464e94c8b5 fts(3): Use reallocarr instead of realloc(x * y), eliminate a temporary
variable.
2021-11-02 08:39:20 +00:00
thorpej 7c30b7e17f Adjust for new __sigaction_siginfo symbol. 2021-11-02 06:54:10 +00:00
nia 122b5006ee Force at most partial RELRO for rump_server and related libraries
rump_server with -l uses lazy resolution by default and thus cannot be
used with full RELRO/BIND_NOW.
2021-11-01 21:37:32 +00:00
andvar 9a662625bc fix typos, mainly in words minimum and maximum, but also few others. 2021-11-01 21:28:01 +00:00
christos 04f561bb0b Remove workaround, @rillig fixed the issue. 2021-11-01 15:56:53 +00:00
christos 637f9844ca work around lint bug 2021-11-01 12:26:18 +00:00