Page MenuHomeFreeBSD

olce (Olivier Certner)
User

Projects

User Details

User Since
Feb 26 2021, 3:47 PM (251 w, 1 d)

Recent Activity

Yesterday

olce added a comment to D53960: libjail: extend struct handlers to included MAC labels.

Only skimmed over it, but seems good except for one typo.

Sat, Dec 20, 8:47 PM
olce added a comment to D53959: libjail: start refactoring struct ioctl support.

Don't have time to review this in detail, but overall you have my blessing as well. :-)

Sat, Dec 20, 8:35 PM
olce added a comment to D53958: kern: add a mac.label jail parameter.

I'd put all new functions of sys/security/mac/mac_syscalls.c into sys/security/mac/mac_prison.c instead, as these are not really system calls, and export mac_label_copyin_string() from the former.

Sat, Dec 20, 8:31 PM
olce accepted D53955: jaildesc: add an accessor for the struct prison in a jaildesc.
Sat, Dec 20, 6:58 PM
olce accepted D53956: mac_set_fd(3): add support for jail descriptors.

There is an alloc/free mismatch, see inline comment. Else seems good.

Sat, Dec 20, 6:54 PM
olce accepted D53954: [RFC] kern: mac: add various jail MAC hooks.

Ok, thanks- to be clear, I'm still not against the idea of providing an abstraction layer to avoid some future headache for MAC modules when the core implementation changes. Did you have some sketch of what you're thinking in the area, by chance?

Sat, Dec 20, 6:42 PM
olce requested changes to D49587: hwpstate: add CPPC support for pstate driver on AMD.

There's a compile error (missing parenthesis, see inline comment).

Sat, Dec 20, 6:09 PM
olce accepted D49587: hwpstate: add CPPC support for pstate driver on AMD.

Feels much better like that. I have one more inline comment for a change in sysctl_epp_select_per_core(). With that, you can consider the changes reviewed!

Sat, Dec 20, 5:57 PM

Fri, Dec 19

olce committed rG12b613efb4c6: vm_domainset: Ensure round-robin works properly (authored by olce).
vm_domainset: Ensure round-robin works properly
Fri, Dec 19, 9:26 AM
olce committed rG2e3e62e4de9e: sys/rpc: UNIX auth: Use AUTH_SYS_MAX_{GROUPS,HOSTNAME} as limits (2/2) (authored by olce).
sys/rpc: UNIX auth: Use AUTH_SYS_MAX_{GROUPS,HOSTNAME} as limits (2/2)
Fri, Dec 19, 9:26 AM
olce committed rGf15270ef49f9: sys/rpc: Define AUTH_SYS_MAX_{GROUPS,HOSTNAME} (authored by olce).
sys/rpc: Define AUTH_SYS_MAX_{GROUPS,HOSTNAME}
Fri, Dec 19, 9:25 AM
olce committed rG1a5539989e04: exports.5: Typo: "auomatically" => "automatically" (authored by olce).
exports.5: Typo: "auomatically" => "automatically"
Fri, Dec 19, 9:20 AM
olce committed rGfd404e957dd9: racct: Fix accounting of CPU time for the system idle process (authored by markj).
racct: Fix accounting of CPU time for the system idle process
Fri, Dec 19, 9:20 AM
olce committed rGc4b315440f6e: mdo.1: Document group-related and fine-grained control functionalities (authored by olce).
mdo.1: Document group-related and fine-grained control functionalities
Fri, Dec 19, 9:20 AM
olce committed rGb7c5f19e0faf: mdo.1: Describe this command's history (authored by Tom Hukins <tom@FreeBSD.org>).
mdo.1: Describe this command's history
Fri, Dec 19, 9:20 AM
olce committed rG1dc4fa83bb8b: mdo(1): Avoid calling getgroups() in some unnecessary cases (authored by olce).
mdo(1): Avoid calling getgroups() in some unnecessary cases
Fri, Dec 19, 9:20 AM
olce committed rG2815d86103ae: setcred(): Fix 32-bit compatibility copy-in (authored by olce).
setcred(): Fix 32-bit compatibility copy-in
Fri, Dec 19, 9:20 AM
olce committed rGf9f1c9d73259: kern: RACCT: Keep process credentials alive via references (authored by olce).
kern: RACCT: Keep process credentials alive via references
Fri, Dec 19, 9:20 AM
olce committed rGef2392225825: setpgid(): Fix space before TAB in herald comment (authored by olce).
setpgid(): Fix space before TAB in herald comment
Fri, Dec 19, 9:20 AM
olce committed rG269e6a4bc065: proc_set_cred(): Allow 'newcred' to have multiple references (authored by olce).
proc_set_cred(): Allow 'newcred' to have multiple references
Fri, Dec 19, 9:20 AM
olce committed rG8185ac38a099: setcred(): Fix RACCT resource accounting on credentials change (authored by olce).
setcred(): Fix RACCT resource accounting on credentials change
Fri, Dec 19, 9:20 AM
olce committed rGbd26c99b688e: racct: Simplify skipping idle process in the throttling daemon (authored by olce).
racct: Simplify skipping idle process in the throttling daemon
Fri, Dec 19, 9:20 AM
olce committed rGcc16a07a8e8f: kern: Fix credentials leaks on RACCT but no RCTL (authored by olce).
kern: Fix credentials leaks on RACCT but no RCTL
Fri, Dec 19, 9:20 AM
olce committed rGed39e2b3cf42: kern: adopt the cr_gid macro for cr_groups[0] more widely (authored by kevans).
kern: adopt the cr_gid macro for cr_groups[0] more widely
Fri, Dec 19, 9:20 AM
olce committed rGd913e3fe23b5: tftpd: explicitly set egid after dropping supplemental groups (authored by kevans).
tftpd: explicitly set egid after dropping supplemental groups
Fri, Dec 19, 9:20 AM
olce committed rG8807380a7400: sys/rpc: UNIX auth: Fix OOB reads on too short message (authored by olce).
sys/rpc: UNIX auth: Fix OOB reads on too short message
Fri, Dec 19, 9:20 AM
olce committed rG1fa29df2cd37: sys/rpc: UNIX auth: Support XDR_FREE (authored by olce).
sys/rpc: UNIX auth: Support XDR_FREE
Fri, Dec 19, 9:20 AM
olce committed rG67a2afe25ab8: sys/rpc: UNIX auth: Do not log on bogus AUTH_SYS messages (authored by olce).
sys/rpc: UNIX auth: Do not log on bogus AUTH_SYS messages
Fri, Dec 19, 9:20 AM
olce committed rGc3f9ca7ab109: sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes (authored by olce).
sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes
Fri, Dec 19, 9:20 AM
olce committed rGdab039c0e980: sys/rpc: UNIX auth: Use AUTH_SYS_MAX_{GROUPS,HOSTNAME} as limits (1/2) (authored by olce).
sys/rpc: UNIX auth: Use AUTH_SYS_MAX_{GROUPS,HOSTNAME} as limits (1/2)
Fri, Dec 19, 9:19 AM
olce committed rG0574fca39fb3: sys/rpc: UNIX auth: Fix OOB accesses, notably writes on decode (authored by olce).
sys/rpc: UNIX auth: Fix OOB accesses, notably writes on decode
Fri, Dec 19, 9:19 AM
olce committed rGede3009e4569: sys/rpc: UNIX auth: Rename 'ngroups' => 'supp_ngroups' for clarity (authored by olce).
sys/rpc: UNIX auth: Rename 'ngroups' => 'supp_ngroups' for clarity
Fri, Dec 19, 9:19 AM
olce committed rGb987035c2af7: uma_core: Rely on domainset iterator to wait on M_WAITOK (authored by olce).
uma_core: Rely on domainset iterator to wait on M_WAITOK
Fri, Dec 19, 9:19 AM
olce committed rGfecb79a5a83e: libsa: smbios: Detect less-than-64-bit platforms via __SIZEOF_SIZE_T__ (authored by olce).
libsa: smbios: Detect less-than-64-bit platforms via __SIZEOF_SIZE_T__
Fri, Dec 19, 9:19 AM

Thu, Dec 18

olce committed rG55ce12672b94: kern: racct: Remove code unused since %cpu resource computation revamp (authored by olce).
kern: racct: Remove code unused since %cpu resource computation revamp
Thu, Dec 18, 9:31 PM
olce closed D54284: kern: racct: Remove code unused since %cpu resource computation revamp.
Thu, Dec 18, 9:31 PM
olce requested review of D54284: kern: racct: Remove code unused since %cpu resource computation revamp.
Thu, Dec 18, 2:16 PM
olce committed rGa8be81456cfe: jail: Don't define malloc type M_PRISON_RACCT on !RACCT (authored by olce).
jail: Don't define malloc type M_PRISON_RACCT on !RACCT
Thu, Dec 18, 2:07 PM
olce closed D54271: jail: Don't define malloc type M_PRISON_RACCT on !RACCT.
Thu, Dec 18, 2:07 PM

Wed, Dec 17

olce requested review of D54271: jail: Don't define malloc type M_PRISON_RACCT on !RACCT.
Wed, Dec 17, 4:49 PM

Tue, Dec 16

olce added a comment to D53954: [RFC] kern: mac: add various jail MAC hooks.

I'm not sure I understand this last bit

Tue, Dec 16, 3:57 PM
olce added a comment to D53954: [RFC] kern: mac: add various jail MAC hooks.

I'm not too worried about that, though it does occur to me that it probably makes sense to stop setting an error in the opts for any of those checks. The MAC policy should probably have free reign over both errno and error probably in case it's some kind of custom vendor integration.

Tue, Dec 16, 2:41 PM
olce attached a referenced file: F139814828: D53954-fixes.patch.
Tue, Dec 16, 2:32 PM
olce requested changes to D53954: [RFC] kern: mac: add various jail MAC hooks.

Compile errors because of leftovers of some prison_copy_label() operation.

Tue, Dec 16, 2:32 PM
olce added a comment to D54227: Add a tac utility.

While I'm generally supportive of adding a more discoverable alternative to the standard tail -r (as expressed elsewhere), and applaud your constant efforts on test cases, I find the proposed implementation problematic:

  • It's an entirely separate program whereas it's basically a combination of functionality that exists in tail and in cat (more details below). It's only ~100 C lines, but it may be 90 lines too many (see again below).
  • It sucks a file entirely in memory before outputting anything, so is not friendly to big files, and even less to pipes.
  • It uses fread() where it could use mmap() (doesn't matter for regular files now, but will once the previous point is fixed).
  • It's not CAPSICUMized.
Tue, Dec 16, 2:24 PM
olce added a comment to D53954: [RFC] kern: mac: add various jail MAC hooks.

Coming back to highlights, there's indeed still the problem that enumeration returns an error if the last jail is denied via mac_prison_check_get(), so doing what you suggest is probably mandatory: Put back the MAC check in the loop, and once a jail is returned, jump to a prison_found_nomac label, even a _nomac_noalive variant as to eliminate also the (harmless) redundant test.

Tue, Dec 16, 1:29 PM
olce accepted D53953: kern: mac: add a MAC label to struct prison.

Highlights:
(snip)

Tue, Dec 16, 10:33 AM

Mon, Dec 15

olce accepted D54229: unionfs: Support renaming symbolic links.

Modulo code duplication, that's fine. And thanks for adding a test.

Mon, Dec 15, 8:38 PM
olce accepted D54234: proc_dtor(): style improvements.
Mon, Dec 15, 5:07 PM
olce added a comment to D54229: unionfs: Support renaming symbolic links.

Code looks correct (more precisely, not worse than the existing), but some effort to factor out at least part of the preambles of both the new unionfs_copylink() and the existing unionfs_copyfile(), and both of the new unionfs_vn_symlink_on_upper() and the existing unionfs_vn_create_on_upper(), respectively, would be appreciated.

Mon, Dec 15, 5:04 PM
olce added a comment to D49587: hwpstate: add CPPC support for pstate driver on AMD.

Thanks for the comments! Hope it looks better now.

Mon, Dec 15, 1:41 PM
olce added a comment to D53954: [RFC] kern: mac: add various jail MAC hooks.

Ping

Mon, Dec 15, 1:35 PM

Thu, Dec 11

olce added a comment to D49587: hwpstate: add CPPC support for pstate driver on AMD.

A small clarification: Above, I've been talking both to possibly remove struct hwpstate_cppc_setting (=> struct hwpstate_cppc_state) and to move the req field to it, which is not apparently consistent. I was considering both separately. The consistent view is that req should be moved to struct hwpstate_cppc_state and keep the latter unconditionally but possible removing from it the high, guaranteed, efficient and low fields (depending on some choices described above). req has to be kept in all cases as it is needed in sysctl_epp_select() to return the current value (which here is probably the proper thing to do; in the debug knob it's debatable whether we actually want to re-read from the MSR).

Thu, Dec 11, 3:19 PM
olce accepted D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
In D53988#1237096, @jah wrote:

I made exactly this change in my original heavyweight attempt at unionfs_getlowvnode (which did do the copy-up and thus required the vnode lock). But as a practical concern, I think the nullfs issue you mentioned above could be just as easily dealt with by changing null_getlowvnode() to take the interlock instead of the full vnode lock. We might still want to change this contract anyway, but I think that should be done as a separate change, no?

Thu, Dec 11, 3:08 PM

Tue, Dec 9

olce added inline comments to D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Tue, Dec 9, 11:56 AM
olce requested changes to D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Tue, Dec 9, 11:33 AM
olce added a comment to D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.

I don't think just having unionfs_getlowvnode() return EACCESS alone is enough, it has problems, see inline comment.

Tue, Dec 9, 11:33 AM

Mon, Dec 8

olce attached a referenced file: F139169190: D49587_additional_patch_proposal.diff.
Mon, Dec 8, 9:14 PM
olce added a comment to D49587: hwpstate: add CPPC support for pstate driver on AMD.

So, the main question now is whether we keep struct hwpstate_cppc_setting (=> struct hwpstate_cppc_state) at all, see inline comments.

Mon, Dec 8, 9:14 PM

Fri, Dec 5

olce added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Fri, Dec 5, 9:30 PM
olce added a comment to D49587: hwpstate: add CPPC support for pstate driver on AMD.

Is it what you mean? Use the provided sysctl to control the package level or logical cpu level control for cppc but Implement package level control in software? If that is the case, it is just like the intel one now.

Fri, Dec 5, 7:23 PM
olce added a comment to D49587: hwpstate: add CPPC support for pstate driver on AMD.

@olce I think exposing the epp setting interface only in only cpu0 makes sence and therefore I make some changes.

Fri, Dec 5, 5:25 PM
olce added inline comments to D48387: acpi_spmc: Add SPMC (system power management controller) driver.
Fri, Dec 5, 5:14 PM
olce added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Fri, Dec 5, 5:14 PM
olce accepted D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Fri, Dec 5, 4:39 PM

Thu, Dec 4

olce added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Thu, Dec 4, 9:34 PM
olce added a comment to D48387: acpi_spmc: Add SPMC (system power management controller) driver.

Haven't reviewed the constraints code yet, and some of the device plumbing.

Thu, Dec 4, 9:14 PM

Wed, Dec 3

olce added inline comments to D48734: acpi: Suspend-to-idle support (s2idle).
Wed, Dec 3, 5:28 PM
olce accepted D54052: MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0.

Thanks.

Wed, Dec 3, 4:59 PM
olce accepted D54051: sys: Remove/update references to the swapper process in various comments.

There is an occurrence of "swapper" in sys/vm/vnode_pager.c that seems to also point to the swapper process.

Wed, Dec 3, 4:58 PM
olce accepted D54039: thread0: Stop calling thread0 "swapper".
Wed, Dec 3, 4:50 PM
olce accepted D54050: proc0_post: Clear relevant thread stats directly.
Wed, Dec 3, 4:48 PM
olce accepted D54040: thread0: Clear td_rux stats in proc0_post.
Wed, Dec 3, 4:47 PM
olce added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Wed, Dec 3, 4:47 PM
olce added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Wed, Dec 3, 4:46 PM
olce added inline comments to D54040: thread0: Clear td_rux stats in proc0_post.
Wed, Dec 3, 4:13 PM
olce requested changes to D48734: acpi: Suspend-to-idle support (s2idle).
Wed, Dec 3, 2:03 PM
olce added inline comments to D48734: acpi: Suspend-to-idle support (s2idle).
Wed, Dec 3, 12:34 PM
olce added inline comments to D48734: acpi: Suspend-to-idle support (s2idle).
Wed, Dec 3, 12:31 PM
olce added inline comments to D54040: thread0: Clear td_rux stats in proc0_post.
Wed, Dec 3, 9:18 AM

Tue, Dec 2

olce added a comment to D48734: acpi: Suspend-to-idle support (s2idle).

(Unfinished.)

Tue, Dec 2, 8:37 PM
olce requested changes to D53954: [RFC] kern: mac: add various jail MAC hooks.

For the missing unlocks.

Tue, Dec 2, 4:41 PM
olce added a comment to D53954: [RFC] kern: mac: add various jail MAC hooks.

If the MAC policies must be able to hide jails, then this case should be completely indistinguishable from the "the jail doesn't exist" one, which means returning EINVAL and the exact same error message, which varies depending on the code point.

Tue, Dec 2, 4:41 PM
olce accepted D53957: kern: mac: pull mac_label_copyin_string out.
Tue, Dec 2, 1:44 PM
olce added a comment to D53953: kern: mac: add a MAC label to struct prison.

I guess that what protects the prison's label is the jail's mutex. That explains why you use the MAC_POLICY_CHECK_NOSLEEP() variant almost exclusively. This needs at least some documentation, perhaps just in the form of assertions that the prison is locked in the different entry points.

Tue, Dec 2, 11:18 AM
olce accepted D53728: kern: Introduce RLIMIT_VMM.
Tue, Dec 2, 8:56 AM
olce committed R9:cc70dfe908fe: 15.0R/relnotes: Small typo/formatting fixes, move "General Storage" (authored by olce).
15.0R/relnotes: Small typo/formatting fixes, move "General Storage"
Tue, Dec 2, 8:46 AM

Mon, Dec 1

olce committed R9:de2a319eeaf2: 15.0R/relnotes: Add notes for commits mentioning relnotes, batch 5 (authored by olce).
15.0R/relnotes: Add notes for commits mentioning relnotes, batch 5
Mon, Dec 1, 9:08 PM
olce committed R9:784c454ff726: 15.0R/relnotes: Move some pkgbase config under configuration changes (authored by olce).
15.0R/relnotes: Move some pkgbase config under configuration changes
Mon, Dec 1, 9:08 PM
olce committed R9:d6c21d638ae1: 15.0R/relnotes: A few slight reformulations/reformatting (authored by olce).
15.0R/relnotes: A few slight reformulations/reformatting
Mon, Dec 1, 9:08 PM
olce committed R9:2ab18e20fc16: releases/15.0R/relnotes: Add notes for commits mentioning relnotes, batch 4 (authored by olce).
releases/15.0R/relnotes: Add notes for commits mentioning relnotes, batch 4
Mon, Dec 1, 6:19 PM
olce committed R9:b78abf1e8124: releases/15.0R/relnotes: Add notes for commits mentioning relnotes, batch 4 (authored by olce).
releases/15.0R/relnotes: Add notes for commits mentioning relnotes, batch 4
Mon, Dec 1, 6:04 PM
olce committed R9:9481c40a8045: releases/15.0R/relnotes: Trim description of GPU slowness and VM domainset fixes (authored by olce).
releases/15.0R/relnotes: Trim description of GPU slowness and VM domainset fixes
Mon, Dec 1, 4:58 PM
olce accepted D54014: 15.0/relnotes: Improve bmake, bc, spleen listings.
Mon, Dec 1, 3:50 PM
olce accepted D54013: 15.0/relnotes: Mention mandoc update.

As said in the previous comment, sorting commits by chronological order could be better.

Mon, Dec 1, 3:49 PM
olce committed R9:fbd5991dc97e: releases/15.0R/relnotes: '*.bind_all_fibs': Fix typo, improve description (authored by olce).
releases/15.0R/relnotes: '*.bind_all_fibs': Fix typo, improve description
Mon, Dec 1, 3:47 PM
olce added a comment to D54013: 15.0/relnotes: Mention mandoc update.

+ use commas to separate gitrefs. I can do the rest of page if good?

Mon, Dec 1, 3:40 PM
olce committed R9:0a292511795f: releases/15.0R/relnotes: More explicit titles for security and errata (authored by olce).
releases/15.0R/relnotes: More explicit titles for security and errata
Mon, Dec 1, 2:22 PM
olce committed R9:0b6a69a91913: releases/15.0R/relnotes: Move "General Network" first in "Networking" (authored by olce).
releases/15.0R/relnotes: Move "General Network" first in "Networking"
Mon, Dec 1, 2:22 PM
olce committed R9:7f167fc87f07: releases/15.0R/relnotes: Add notes for commits mentioning relnotes, batch 3 (authored by olce).
releases/15.0R/relnotes: Add notes for commits mentioning relnotes, batch 3
Mon, Dec 1, 2:22 PM