Page MenuHomeFreeBSD

glebius (Gleb Smirnoff)
User

Projects (6)

User Details

User Since
May 28 2014, 2:27 PM (598 w, 1 d)

Recent Activity

Today

glebius added inline comments to D53517: Add ecn(9) manual.
Thu, Nov 13, 3:54 PM
glebius added inline comments to D53516: Update ip_ecn to RFC 6040.
Thu, Nov 13, 3:44 PM

Tue, Nov 11

glebius added inline comments to D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.
Tue, Nov 11, 7:44 PM
glebius updated the diff for D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.
  • Keep the error case freeing loop under the lock.
  • Assert before subtracting.
Tue, Nov 11, 3:28 PM

Mon, Nov 10

glebius committed rGa3cd3a4fd68c: netlink: plug lock leak in genl_register_family() (authored by Bruno Silvestre <bruno.silvestre@gmail.com>).
netlink: plug lock leak in genl_register_family()
Mon, Nov 10, 5:37 PM

Sun, Nov 9

glebius updated the diff for D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.

Fix pointer for partial mbuf in peek case.

Sun, Nov 9, 9:36 PM

Sat, Nov 8

glebius updated the summary of D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.
Sat, Nov 8, 11:40 PM
glebius updated the diff for D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.

New version.

Sat, Nov 8, 11:38 PM
glebius committed rG335fc09ab8d2: netlink: plug lock leak in genl_register_family() (authored by Bruno Silvestre <bruno.silvestre@gmail.com>).
netlink: plug lock leak in genl_register_family()
Sat, Nov 8, 6:04 PM

Fri, Nov 7

glebius accepted D53311: random: Have RANDOM_PURE_START be a cross-platform source.
Fri, Nov 7, 10:19 PM
glebius added inline comments to D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.
Fri, Nov 7, 2:58 PM
glebius added inline comments to D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.
Fri, Nov 7, 2:50 PM
glebius requested review of D53632: unix/stream: fix a race with MSG_PEEK on SOCK_SEQPACKET with MSG_EOR.
Fri, Nov 7, 2:22 AM
glebius accepted D53564: tcp: minor cleanup of syncache code.
Fri, Nov 7, 12:30 AM

Wed, Nov 5

glebius added a comment to D53564: tcp: minor cleanup of syncache code.

Maybe we want separate counters for:

  • syncache_repsonse() failed
  • syncache entries are dropped.
Wed, Nov 5, 5:44 PM

Tue, Nov 4

glebius added a comment to D53564: tcp: minor cleanup of syncache code.

I see your logic, but then we need to reformat netstat, too. And that probably shouldn't get MFC-ed to stable/15.

Tue, Nov 4, 6:44 PM
glebius added a comment to D53564: tcp: minor cleanup of syncache code.

In the third case we also drop. In the first two cases we called syncache_drop() that would unlink and free the entry. In the third case we have already allocated an entry and we were about to link it in, but we resulted in freeing it.

Tue, Nov 4, 6:42 PM
glebius committed R11:55de010dc8c9: www/freenginx: fix config path in the rc script (authored by glebius).
www/freenginx: fix config path in the rc script
Tue, Nov 4, 6:19 PM
glebius requested changes to D53564: tcp: minor cleanup of syncache code.

tcp_var.h is not source of truth here! This file and also netstat(1) are. In this file the counter only is updated when we indeed drop. In netstat counter is reported to user as "dropped". This change should be a comment only change.

Tue, Nov 4, 4:54 PM
glebius added a comment to D53484: Remove RIP and RIPng.

Note that there are tests that use routed :(

Tue, Nov 4, 4:46 PM
glebius committed R9:5fcac7114ec1: 15.0: add note on unix(4) (authored by glebius).
15.0: add note on unix(4)
Tue, Nov 4, 4:39 PM
glebius accepted D53570: mlx5: Preallocate ktls tags asynchronously.
Tue, Nov 4, 4:27 PM

Tue, Oct 28

glebius requested changes to D53382: sys: Use gone_in for GIANT deprecation message.

If you have two Giant locked devices, gone_in() will report only the first one.

Tue, Oct 28, 4:26 AM

Mon, Oct 27

glebius committed rG3bcd7d4fa46a: gone_in(9): bring the manual page up to date (authored by glebius).
gone_in(9): bring the manual page up to date
Mon, Oct 27, 6:52 PM
glebius accepted D53380: tcp: improve credential handling in syncache.
Mon, Oct 27, 6:41 PM
glebius committed rG34dfccc64f47: acpi: in acpi_stype_sysctl() use same logic as in acpi_sleep_state_sysctl() (authored by glebius).
acpi: in acpi_stype_sysctl() use same logic as in acpi_sleep_state_sysctl()
Mon, Oct 27, 6:27 PM
glebius committed rGa93e1b731ae4: heimdal-kadmin: Add support for the -f dump option (authored by rmacklem).
heimdal-kadmin: Add support for the -f dump option
Mon, Oct 27, 5:27 PM
glebius added a comment to D53346: udp: honor IPV6_TCLASS socket option for UDP/IPv4 packets.

I did not mean that changing of size of ip6po_tclass in struct ip6_pktopts should be part of this change, of course. Just noticed this thing and suggested an improvement.

Mon, Oct 27, 5:13 PM

Sun, Oct 26

glebius added a comment to D53347: udp: honor IPV6_TCLASS cmsg for UDP/IPv4 packets.

Why don't embed this entire block into udp_v4mapped_pktinfo()?

Sun, Oct 26, 5:33 AM
glebius accepted D53346: udp: honor IPV6_TCLASS socket option for UDP/IPv4 packets.

P.S. This actually reminds me that many years ago, I tried to unionize IPv6 specific fields of inpcb with IPv4. This utterly failed for 4-in-6 connections, so I quickly reverted without due analysis. Maybe should be looked at again.

Sun, Oct 26, 5:27 AM
glebius added inline comments to D53344: net: Validate interface group names in ioctl handlers.
Sun, Oct 26, 5:14 AM
glebius added inline comments to D49459: Make temp option for ndp work.
Sun, Oct 26, 5:10 AM · network
glebius added a comment to D53299: Add some tests for sbin/ndp binary.

Thanks for the work, Boris! Do you have a public git repo where I would be able to pull commits from to push them to FreeBSD?

Sun, Oct 26, 5:02 AM
glebius accepted D53343: ipfw: Retire obsolete compat code.
Sun, Oct 26, 4:51 AM
glebius requested changes to D53350: nlsysevent: don't assume that we can sleep in sysevent_send().

Can you please point me to how reproduce the problem? IMHO, we should just provide a KPI to register new sysevent_groups and pre-register them before the events.

Sun, Oct 26, 4:48 AM

Fri, Oct 17

glebius added a comment to D52629: libc: Import OpenBSD's inet_net_{ntop,pton}.

Your run on entire IPv4 space suggested an extra test, that would be really nice:

Fri, Oct 17, 4:57 PM

Wed, Oct 15

glebius committed rG4548b9f3a816: unix/stream: plug a corner case when control externalization failed (authored by glebius).
unix/stream: plug a corner case when control externalization failed
Wed, Oct 15, 8:48 PM
glebius committed rGa091d6919c31: socket(2): refactor the manual page (authored by glebius).
socket(2): refactor the manual page
Wed, Oct 15, 6:59 PM
glebius committed rGbbfaff26bf36: unix/stream: repair SO_SNDTIMEO (authored by glebius).
unix/stream: repair SO_SNDTIMEO
Wed, Oct 15, 6:59 PM
glebius committed rG794299ac6876: netlink: in snl_init_writer() don't overwrite error in case of failure (authored by Bruno Silvestre <bruno.silvestre@gmail.com>).
netlink: in snl_init_writer() don't overwrite error in case of failure
Wed, Oct 15, 6:59 PM
glebius committed rG8596810d02a1: tests/carp: kill routed(8) before destroying interfaces (authored by glebius).
tests/carp: kill routed(8) before destroying interfaces
Wed, Oct 15, 6:56 PM
glebius committed rG47b273265025: linux: add translation for MCAST_JOIN_GROUP family of socket options (authored by glebius).
linux: add translation for MCAST_JOIN_GROUP family of socket options
Wed, Oct 15, 6:56 PM
glebius closed D52937: linux: add translation for MCAST_JOIN_GROUP family of socket options.
Wed, Oct 15, 6:56 PM
glebius committed rG479e29157259: linux: make linux_to_bsd_sockaddr() use memory supplied by caller (authored by glebius).
linux: make linux_to_bsd_sockaddr() use memory supplied by caller
Wed, Oct 15, 6:56 PM
glebius committed rGbe7bdb1cf0b0: netinet: do route lookup when asked to join multicast group on ifindex 0 (authored by glebius).
netinet: do route lookup when asked to join multicast group on ifindex 0
Wed, Oct 15, 6:56 PM
glebius closed D52918: netinet: do route lookup when asked to join multicast group on ifindex 0.
Wed, Oct 15, 6:56 PM
glebius closed D52936: linux: make linux_to_bsd_sockaddr() use memory supplied by caller.
Wed, Oct 15, 6:55 PM
glebius committed rGf8b76ec4cac7: tests/hpts: provide stub KTEST module compiled without TCP_HPTS_KTEST (authored by nickbanks_netflix.com).
tests/hpts: provide stub KTEST module compiled without TCP_HPTS_KTEST
Wed, Oct 15, 5:40 PM
glebius accepted D53114: socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check.
Wed, Oct 15, 4:14 PM
glebius updated the diff for D52918: netinet: do route lookup when asked to join multicast group on ifindex 0.
  • Rebase the test after the flakyness fix.
Wed, Oct 15, 12:50 AM
glebius closed D53081: unix/stream: repair SO_SNDTIMEO.
Wed, Oct 15, 12:30 AM
glebius committed rGead721935251: unix/stream: repair SO_SNDTIMEO (authored by glebius).
unix/stream: repair SO_SNDTIMEO
Wed, Oct 15, 12:30 AM

Tue, Oct 14

glebius committed rGc8359b327104: tests/multicast: fix test flakyness (authored by glebius).
tests/multicast: fix test flakyness
Tue, Oct 14, 11:45 PM
glebius accepted D53108: conf: enable TCP_HPTS_KTEST on debug builds.
Tue, Oct 14, 11:35 PM

Oct 14 2025

glebius committed rG86d17239233e: socket(2): refactor the manual page (authored by glebius).
socket(2): refactor the manual page
Oct 14 2025, 6:42 PM
glebius committed rG663a571514fb: sockets: add PF_HYPERV alias (authored by glebius).
sockets: add PF_HYPERV alias
Oct 14 2025, 6:41 PM
glebius closed D52771: socket(2): refactor the manual page.
Oct 14 2025, 6:41 PM
glebius added a comment to D53081: unix/stream: repair SO_SNDTIMEO.

Do we not block at all when sending on a dgram socket and the receiver has insufficient space?

Oct 14 2025, 4:29 PM
glebius updated the summary of D53081: unix/stream: repair SO_SNDTIMEO.
Oct 14 2025, 4:27 PM
glebius updated the diff for D53081: unix/stream: repair SO_SNDTIMEO.
  • Improve test per Alan's review.
Oct 14 2025, 4:26 PM
glebius added a comment to D53070: pf: remove unused variable allrulelist.
In D53070#1212661, @mjg wrote:

This *is* used by pf_rule_counter_u64_periodic. The goal is to sum up the 32 bit values frequently enough(tm) that they don't overflow.

Oct 14 2025, 4:09 PM
glebius requested review of D53081: unix/stream: repair SO_SNDTIMEO.
Oct 14 2025, 4:48 AM
glebius resigned from D53079: unionfs: fix NULL deref on closing an fd passed through SCM_RIGHTS.

I trust Alan's expertise here. IMHO, given that this patch is analog to fusefs one, should be fine. But not expert in the area.

Oct 14 2025, 4:44 AM
glebius added a comment to D53070: pf: remove unused variable allrulelist.

In pf_krule we got remaining:

Oct 14 2025, 4:41 AM

Oct 13 2025

glebius added a comment to D53045: openssl: add a simple smoke test for the legacy provider.

The test uses OPENSSL_CONF to specify the test config file.

Oct 13 2025, 2:56 AM

Oct 12 2025

glebius accepted D52991: login.conf: Remove never used ignoretime/ignoretime@.

If it ever existed it existed in lib/libutil/login_ok.c and lib/libutil/login_times.c. Even the original import to FreeBSD does mention ignoretime.

Oct 12 2025, 10:16 PM
glebius added a comment to D52991: login.conf: Remove never used ignoretime/ignoretime@.

This options plays together with times.allow and times.deny, that are still documented in the login.conf. I think deeper digging is required to see if this is indeed a cruft or actually a functional thing. If it is cruft, then documentation in login.conf on times.allow/times.deny is also cruft.

Oct 12 2025, 10:10 PM
glebius added a comment to D53045: openssl: add a simple smoke test for the legacy provider.

Does OpenSSL just picks up openssl.conf from current directory?

Oct 12 2025, 10:03 PM

Oct 10 2025

glebius added inline comments to D53021: inline most of the considered lost condensation..
Oct 10 2025, 4:17 PM

Oct 8 2025

glebius added inline comments to D52975: etc/mtree: Add package tags for Kerberos directories.
Oct 8 2025, 4:52 PM

Oct 7 2025

glebius committed rGe7e7bf757ace: krb5: create the KDC database directory (authored by glebius).
krb5: create the KDC database directory
Oct 7 2025, 9:50 PM
glebius closed D52970: krb5: create the KDC database directory.
Oct 7 2025, 9:50 PM
glebius requested review of D52970: krb5: create the KDC database directory.
Oct 7 2025, 9:08 PM
glebius committed rGd9c94e5eefc0: tests/netinet: fix so_reuseport_lb_test flakyness (authored by glebius).
tests/netinet: fix so_reuseport_lb_test flakyness
Oct 7 2025, 9:07 PM
glebius committed rG488718ff4234: netlink: in snl_init_writer() don't overwrite error in case of failure (authored by Bruno Silvestre <bruno.silvestre@gmail.com>).
netlink: in snl_init_writer() don't overwrite error in case of failure
Oct 7 2025, 5:49 AM
glebius accepted D52938: x86: Reduce amount of time the MCA lock is held while emitting records.
Oct 7 2025, 5:43 AM
glebius accepted D52942: x86: Add a way to inject artificial MCA events for testing.
Oct 7 2025, 5:43 AM
glebius accepted D52943: x86: print MCAs to the console before MCA initialization.
Oct 7 2025, 5:42 AM
glebius accepted D52946: x86: Allow MCA messages to be rate-limited.
Oct 7 2025, 5:42 AM

Oct 6 2025

glebius added a comment to D52942: x86: Add a way to inject artificial MCA events for testing.

Maybe put that under DIAGNOSTIC or similar hiding ifdef? Only one or two people in the world would ever need this. Those who do, definitely would be compiling kernels.

Oct 6 2025, 6:26 PM
glebius accepted D52934: tcp: improve SEG.ACK validation in SYN-RECEIVED.
Oct 6 2025, 6:24 PM
glebius requested review of D52937: linux: add translation for MCAST_JOIN_GROUP family of socket options.
Oct 6 2025, 3:12 PM
glebius requested review of D52936: linux: make linux_to_bsd_sockaddr() use memory supplied by caller.
Oct 6 2025, 3:12 PM

Oct 5 2025

glebius requested review of D52918: netinet: do route lookup when asked to join multicast group on ifindex 0.
Oct 5 2025, 9:52 PM

Oct 4 2025

glebius updated the diff for D52771: socket(2): refactor the manual page.
  • Add a paragraph on non-blocking mode
Oct 4 2025, 5:56 AM
glebius added a comment to D52873: sockets: bump socket buffer limit.
In D52873#1207907, @jtl wrote:

My main concern about these three revisions is that they are somewhat susceptible of remote manipulation, and that could make it easier to DoS a server. However, I view that as a tradeoff that the user needs to make, and think an appropriate release note should suffice to warn about these issues.

Oct 4 2025, 5:19 AM
glebius updated the diff for D52771: socket(2): refactor the manual page.
  • Added sentence on how to set record boundaries with SOCK_SEQPACKET.
Oct 4 2025, 5:06 AM

Oct 2 2025

glebius accepted D52872: tcp: bump max snd buffer size for autoscaling.
Oct 2 2025, 7:50 PM
glebius accepted D52731: sys/netinet6: Use atomic(9) for dad_failures counter.
Oct 2 2025, 4:56 PM
glebius committed rGa733ea831a00: tests/netinet: add a few missing atf_checks in multicast.sh (authored by glebius).
tests/netinet: add a few missing atf_checks in multicast.sh
Oct 2 2025, 1:23 PM
glebius added a comment to D52852: vxlan: support moving to a different vnet.

if_vmove bites again? I'm fine with adding more kludges around this problem as long as we all agree that eventually this thing needs to be removed and interfaces shall be fully destroyed and fully instantiated in a different jail.

Oct 2 2025, 12:41 PM
glebius committed rGb8975e052e80: ucode: use wrmsr_early_safe() for early CPU microcode update (authored by glebius).
ucode: use wrmsr_early_safe() for early CPU microcode update
Oct 2 2025, 12:01 AM

Oct 1 2025

glebius accepted D52840: tcp: keep SYN-cache entry when sending of challenge ACK fails.
Oct 1 2025, 11:14 PM
glebius committed rGd0c8a0b3e6fc: tests/netinet: extend IPv4 multicast testing framework (authored by glebius).
tests/netinet: extend IPv4 multicast testing framework
Oct 1 2025, 9:25 PM
glebius committed rG36f2eda25171: tests/netinet: rename and extend sendto-IP_MULTICAST_IF.c (authored by glebius).
tests/netinet: rename and extend sendto-IP_MULTICAST_IF.c
Oct 1 2025, 9:25 PM
glebius committed rGe91fc88bca02: ip(4): fix description of struct ip_mreqn (authored by glebius).
ip(4): fix description of struct ip_mreqn
Oct 1 2025, 9:25 PM
glebius added a comment to D52816: tcp: cleanup syncache_expand().

I agree with Nick that previous comments were better.
You may add assertions that match the checks in the syncookie_expand() case.

Oct 1 2025, 1:15 PM

Sep 30 2025

glebius added inline comments to D52731: sys/netinet6: Use atomic(9) for dad_failures counter.
Sep 30 2025, 4:49 PM

Sep 29 2025

glebius accepted D52731: sys/netinet6: Use atomic(9) for dad_failures counter.
Sep 29 2025, 7:35 AM

Sep 28 2025

glebius committed rGbbec2c9a6d9a: newsyslog: fix one hour rotation with frequent execution (authored by glebius).
newsyslog: fix one hour rotation with frequent execution
Sep 28 2025, 2:56 PM