Page MenuHomeFreeBSD

sigsys_gmail.com (Math Ieu)
User

Projects

User does not belong to any projects.

User Details

User Since
Sep 3 2018, 4:19 AM (324 w, 1 d)

Recent Activity

Aug 3 2022

sigsys_gmail.com added a comment to D36033: ast_sig(): add missed TDAI().

I don't understand much of it, but I can confirm that the last commits fixed the problem I noticed with signals sent in syscallret().

Aug 3 2022, 11:38 PM

May 27 2022

sigsys_gmail.com requested review of D35340: total memory info sysctls value cap under compat32.
May 27 2022, 9:48 PM

May 4 2022

sigsys_gmail.com added a comment to D35116: mac_curtain infrastructure: everything.

I realized I probably shouldn't update the diff just for small changes... it's disruptive. Especially for a large diffs. Sorry about that!

May 4 2022, 4:18 AM
sigsys_gmail.com updated the diff for D35116: mac_curtain infrastructure: everything.

Minor cleanups.

May 4 2022, 3:15 AM
sigsys_gmail.com added a comment to D35116: mac_curtain infrastructure: everything.

Overall this change seems generally well contained for something that touches most syscalls. There are a few things that seem stray that I've noted.

I'm a bit worried about adding an on-by-default (we enable MAC in GENERIC for mac_ntpd) branch and function call to many, if not most, syscalls. Should the SY_CAP bits be under MAC or under a separate define? Presumably your goal is to move toward something usable with GENERIC so that would argue for not adding a separate knob.

May 4 2022, 3:13 AM

May 3 2022

sigsys_gmail.com requested review of D35116: mac_curtain infrastructure: everything.
May 3 2022, 7:53 AM

Apr 14 2022

sigsys_gmail.com added a comment to D34903: Allow posix_fadvise in capability mode.

Huh now that it got mentioned, it's a little bit worrying that it can trigger reads internally (even if the application shouldn't be able to get the data). Could something bad happen from some read side-effects somehow?

Apr 14 2022, 7:49 PM

Apr 13 2022

sigsys_gmail.com added a comment to D34903: Allow posix_fadvise in capability mode.

Noted by Math Ieu in D34761. (Please let me know what name to use in the commit message.)

Apr 13 2022, 11:07 PM

Apr 8 2022

sigsys_gmail.com added a comment to D34761: mac_curtain infrastructure: syscall filters.

A few thoughts about integration with syscalls.master:

  • The if SYSFIL values aren't in syscalls.master they people won't remember to add them. This happened all the time with CAPENABLED annotations when it was in a separate file.
Apr 8 2022, 9:36 PM

Apr 6 2022

sigsys_gmail.com added a comment to D34761: mac_curtain infrastructure: syscall filters.

I just left some comments based on reading the code, I don't have a lot to say about the high-level design yet. It would be nice to see the new MAC handlers mentioned in your review description.

Some vague and not-very-actionable comments: we have a lot of new terminology here: curtain, sysfil, restricted mode, veiled. I wonder if it could be simpler. I'm also not sure how much benefit we get from making capability mode a special case of "restricted mode"; I also wonder a bit if MAC could be extended to handle more of what sysfil and restricted mode are doing.

Apr 6 2022, 9:20 PM

Apr 4 2022

sigsys_gmail.com requested review of D34761: mac_curtain infrastructure: syscall filters.
Apr 4 2022, 6:58 AM

Sep 23 2021

sigsys_gmail.com added a comment to D27215: fix `ps -aa`.

Hard to say. It would make sense and IIUC it's what Linux does (though there are other incompatibilities there already and it treats options with an without dashes differently (its -a excludes session leaders for some reason, but the "BSD style" option without dash does not)).

Sep 23 2021, 9:05 PM

May 31 2021

sigsys_gmail.com requested review of D30584: Wrong function name makes test fail when not run as root instead of being skipped.
May 31 2021, 6:44 PM

Jan 20 2021

sigsys_gmail.com requested review of D28258: if_awg: build error with DEVICE_POLLING.
Jan 20 2021, 5:28 PM

Nov 24 2020

sigsys_gmail.com requested review of D27347: Reformat sys/compat/freebsd32/syscalls.master with new style..
Nov 24 2020, 4:45 AM

Nov 22 2020

sigsys_gmail.com requested review of D27312: libsysdecode: PROT_MAX() decoding bug.
Nov 22 2020, 8:07 AM

Nov 14 2020

sigsys_gmail.com requested review of D27215: fix `ps -aa`.
Nov 14 2020, 6:00 AM

Sep 5 2020

sigsys_gmail.com requested review of D26341: fix formatting of options list for sx_init_flags() in sx(9).
Sep 5 2020, 7:52 PM

Aug 28 2020

sigsys_gmail.com requested review of D26217: missing "nocover" mount option on 12-STABLE makes rc.d/linux error out.
Aug 28 2020, 9:18 AM

Aug 26 2020

sigsys_gmail.com updated the diff for D26188: Encrypted kernel core dumps with compression: fix writing of final block.

Added a bzero() in kerneldumpcomp_write_cb(). Seemed a bit better to do it there. Not sure though.

Aug 26 2020, 6:02 PM
sigsys_gmail.com updated the diff for D26188: Encrypted kernel core dumps with compression: fix writing of final block.

Yeah that's better.

Aug 26 2020, 4:20 AM
sigsys_gmail.com requested review of D26188: Encrypted kernel core dumps with compression: fix writing of final block.
Aug 26 2020, 3:02 AM

Aug 13 2020

sigsys_gmail.com added inline comments to D25671: geli: use unmapped I/O.
Aug 13 2020, 12:18 AM

Apr 4 2020

sigsys_gmail.com added inline comments to D24291: fix users of cn_flags for 64 bits.
Apr 4 2020, 6:50 PM
sigsys_gmail.com updated the diff for D24291: fix users of cn_flags for 64 bits.

Change some more variables to bool in smbfs_vnops.

Apr 4 2020, 6:47 PM
sigsys_gmail.com updated the diff for D24291: fix users of cn_flags for 64 bits.

Change some ints to bools in fuse_vnops.c. No other changes.

Apr 4 2020, 6:25 PM
sigsys_gmail.com added inline comments to D24291: fix users of cn_flags for 64 bits.
Apr 4 2020, 6:23 PM
sigsys_gmail.com updated the diff for D24291: fix users of cn_flags for 64 bits.

Updated to use uint64_t instead of u_int64_t. No other changes.

Apr 4 2020, 5:06 AM
sigsys_gmail.com created D24291: fix users of cn_flags for 64 bits.
Apr 4 2020, 4:40 AM

Feb 13 2020

sigsys_gmail.com accepted D23597: Respect PATH from login.conf in cron..

I don't see any problems with the new version.

Feb 13 2020, 6:15 PM

Feb 12 2020

sigsys_gmail.com accepted D23390: efiloader: don't execute hooks when setting currdev/loaddev.

I've been using this and noticed no problems with both BIOS and UEFI boot. And now "currdev" matches "loaddev".

Feb 12 2020, 9:29 PM
sigsys_gmail.com updated the diff for D17105: Enhance install(1) -C's handling of hardlinked files.

Updated for 13-CURRENT.

Feb 12 2020, 6:15 PM

Feb 11 2020

sigsys_gmail.com accepted D23597: Respect PATH from login.conf in cron..

I don't notice any problems apart from that minor thing.

Feb 11 2020, 5:15 AM
sigsys_gmail.com added inline comments to D23597: Respect PATH from login.conf in cron..
Feb 11 2020, 5:06 AM

Feb 8 2020

sigsys_gmail.com updated the diff for D23575: Fix various issues with systat's -vmstat screen.

Restored the previous behavior of showing "***" when the number is too large instead of a truncated (and possibly misleading) humanize_number() output. It's not great but it's not worse than it was before.

Feb 8 2020, 5:05 AM

Feb 7 2020

sigsys_gmail.com updated the diff for D23575: Fix various issues with systat's -vmstat screen.

Noticed a bug. Some calculations were sometimes being done with 32 bits integers and overflowing.

Feb 7 2020, 9:30 PM
sigsys_gmail.com created D23575: Fix various issues with systat's -vmstat screen.
Feb 7 2020, 8:01 PM
sigsys_gmail.com added a comment to D23547: systat -vmstat incorrectly formatting rates between certain ranges.

There are other problems with systat -vmstat as we talked about on IRC. I'm going to create another diff and add you guys as reviewers if you don't mind. I'm sure that this patch is correct after spending more time with it and it's very small so I'll leave it as is to not lose it. The other changes might be more problematic.

Feb 7 2020, 7:58 PM

Feb 6 2020

sigsys_gmail.com created D23548: daily/200.backup-passwd periodic script not hiding the password field of certain users.
Feb 6 2020, 10:01 PM
sigsys_gmail.com added inline comments to D23547: systat -vmstat incorrectly formatting rates between certain ranges.
Feb 6 2020, 9:47 PM
sigsys_gmail.com created D23547: systat -vmstat incorrectly formatting rates between certain ranges.
Feb 6 2020, 9:46 PM
sigsys_gmail.com updated the diff for D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).

Still had this in my tree, updated for 13-CURRENT.

Feb 6 2020, 2:49 AM

Feb 5 2020

sigsys_gmail.com added inline comments to D21481: Make a start at supporting login.conf environment settings.
Feb 5 2020, 12:42 AM

Feb 4 2020

sigsys_gmail.com added a comment to D23493: Use a STAILQ instead of a TAILQ to shrink the bucket size by one pointer..

I think this just broke make world because libmemstat needs to be updated for this.

Feb 4 2020, 4:44 AM

Jan 30 2020

sigsys_gmail.com updated the diff for D22951: "help" loader command broken.

Forgot to add the new stand/efi/loader/help.efi file. There's no EFI-specific help yet but there could be.

Jan 30 2020, 7:20 AM
sigsys_gmail.com updated the diff for D22951: "help" loader command broken.

Alright I couldn't let this go. Here's my attempt to fix it correctly with as little changes as possible. This installs a different help file for the EFI and non-EFI loaders.

Jan 30 2020, 3:40 AM

Jan 13 2020

sigsys_gmail.com created D23154: pipe log destination process limits for syslogd.
Jan 13 2020, 7:05 PM

Dec 30 2019

sigsys_gmail.com added inline comments to D22951: "help" loader command broken.
Dec 30 2019, 4:26 AM
sigsys_gmail.com added inline comments to D22951: "help" loader command broken.
Dec 30 2019, 4:04 AM
sigsys_gmail.com added a comment to D22951: "help" loader command broken.

wrt to the help files being installed multiple times, kevans already figured it out, but just to make it clear, the loader has some architecture specific help files but they also don't work.

Dec 30 2019, 2:34 AM

Dec 29 2019

sigsys_gmail.com added a comment to D22951: "help" loader command broken.

Also, I just did a make world to test this patch (even though it's probably not fully correct) and there were no apparent problems apart from loader.help getting installed multiple times (once for all of the loader variants).

Dec 29 2019, 2:18 AM
sigsys_gmail.com added a comment to D22951: "help" loader command broken.

Just did a test booting in non-UEFI mode and then loaddev is set the same as currdev here. So the second problem seems to be specific to the EFI loader.

Dec 29 2019, 1:25 AM
sigsys_gmail.com created D22951: "help" loader command broken.
Dec 29 2019, 12:37 AM

Jul 20 2019

sigsys_gmail.com added a comment to D21006: swapon before closing trimming fd.

Call swapon(2) after trimming, but before closing the trimming fd.

Jul 20 2019, 7:27 AM
sigsys_gmail.com added a comment to D21006: swapon before closing trimming fd.

Probably not safe to start trimming the swap device *after* the kernel has been told to start using it for swapping (even if the window is probably small).

Jul 20 2019, 4:46 AM

Sep 26 2018

sigsys_gmail.com updated the diff for D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).

Don't mind me, just enjoying my very fast cmp (and wc -l).

Sep 26 2018, 12:30 AM
sigsys_gmail.com created D17325: apply same fix to cp(1) as mv(1) when copying to filesystems that do not support file flags.
Sep 26 2018, 12:26 AM

Sep 10 2018

sigsys_gmail.com updated the diff for D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).

Some cleanups, added a wc test case, fixed a cmp test case, fixed some wc logic that made it avoid its (already existing) fast path on STDIN.

Sep 10 2018, 4:48 PM
sigsys_gmail.com created D17105: Enhance install(1) -C's handling of hardlinked files.
Sep 10 2018, 4:45 PM

Sep 4 2018

sigsys_gmail.com added a comment to D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).

Ok. I just read the comment. Apart from the bit twiddling hack the code looks straightforward enough. Maybe it’s not fair to ask this, but it would be comforting if there were regression tests attached to this change.

Sep 4 2018, 2:25 AM
sigsys_gmail.com added a comment to D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).

> If you care about 32 bit performance perhaps have an ifdef LP64 around the type used.

Sep 4 2018, 1:56 AM

Sep 3 2018

sigsys_gmail.com updated the diff for D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).

After testing on an old Pentium 4, turns out the line counting algorithm was slower than the naive implementation because operations on 64 bits long longs were slow. Changing it to use 32 bits long makes it faster but only 1.5 times or so faster.

Sep 3 2018, 8:46 PM
sigsys_gmail.com created D16998: making cmp faster, especially on special files (and speed up wc -l too while at it).
Sep 3 2018, 4:42 AM