Page MenuHomeFreeBSD

glebius (Gleb Smirnoff)
User

Projects (6)

User Details

User Since
May 28 2014, 2:27 PM (614 w, 5 d)

Recent Activity

Yesterday

glebius added a comment to D51866: if_gif: Use the MTU on the gif interface for the outgoing packets.

Hi! Writing this with my core@ (and srcmgr@) lurker hat on.

Mon, Mar 9, 8:03 PM

Sat, Mar 7

glebius added a comment to D55661: inpcb: apply smr_advance(9)/smr_wait(9) trick only to reusable sockets.

I don't see a point in clearing the addresses either. Speculatively (didn't check!) it should even fix getsockname(2) on a disconnected TCP connection.

Sat, Mar 7, 4:05 PM

Thu, Mar 5

glebius added inline comments to D55449: ndp: Add support for route information (RFC 4191).
Thu, Mar 5, 8:29 PM
glebius committed rG6feb16b77e7d: witness: report a thread that can't sleep in WITNESS_WARN (authored by glebius).
witness: report a thread that can't sleep in WITNESS_WARN
Thu, Mar 5, 6:44 PM
glebius closed D55316: witness: report a thread that can't sleep in WITNESS_WARN.
Thu, Mar 5, 6:44 PM
glebius updated the diff for D55316: witness: report a thread that can't sleep in WITNESS_WARN.
  • Apply Kostik's & Mark's suggestions
Thu, Mar 5, 6:42 PM
glebius abandoned D54820: sendfile(2): document that EINTR never happens on non-blocking socket.
Thu, Mar 5, 6:28 PM
glebius added inline comments to D55449: ndp: Add support for route information (RFC 4191).
Thu, Mar 5, 6:18 PM
glebius accepted D55267: ndp: Simplify and breakdown nd6_ra_input().
Thu, Mar 5, 4:48 PM
glebius committed rG1abb62867f2a: tests/net/bpf: skip the bpf:inject test when RSS is present (authored by glebius).
tests/net/bpf: skip the bpf:inject test when RSS is present
Thu, Mar 5, 4:16 AM
glebius committed rG78843218b0cc: rss: manifest RSS option in kernel with kern.features sysctl (authored by glebius).
rss: manifest RSS option in kernel with kern.features sysctl
Thu, Mar 5, 4:16 AM
glebius committed rGd4083fb836cf: tests/net/bpf: hexdump(3) the packets if compare fails (authored by glebius).
tests/net/bpf: hexdump(3) the packets if compare fails
Thu, Mar 5, 4:16 AM
glebius committed rG776604651ea6: hpts: remove call into TCP HPTS from userret() (authored by glebius).
hpts: remove call into TCP HPTS from userret()
Thu, Mar 5, 3:18 AM
glebius closed D55640: hpts: remove call into TCP HPTS from userret().
Thu, Mar 5, 3:18 AM
glebius added inline comments to D55663: netinet6: Add ip6_hdr_pseudo{} to ip6.h; diff reduce and apply..
Thu, Mar 5, 2:46 AM
glebius abandoned D55660: inpcb: remove extraneous check in inp_next().

Today was my turn to be stupid :) See 430df2abee9049c2e4773704190a9f0d1779ff10

Thu, Mar 5, 2:17 AM
glebius added a comment to D55663: netinet6: Add ip6_hdr_pseudo{} to ip6.h; diff reduce and apply..

Alternatively the entire function can be rewritten in declarative manner:

	const struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
	struct ip6_hdr_pseudo ip6ph = {
		.ip6ph_src = ip6->ip6_src,
		.ip6ph_dst = ip6->ip6_dst,
		.ip6ph_len = htonl(m->m_pkthdr.len - (ip6->ip6_nxt == IPPROTO_UDP ? sizeof(struct ip6) + sizeof(struct udphdr) : sizeof(struct ip6)),
		.ip6ph_nxt = htonl(IPPROTO_TCP),
	};
Thu, Mar 5, 2:12 AM

Wed, Mar 4

glebius requested review of D55660: inpcb: remove extraneous check in inp_next().
Wed, Mar 4, 9:39 PM
glebius requested review of D55661: inpcb: apply smr_advance(9)/smr_wait(9) trick only to reusable sockets.
Wed, Mar 4, 9:39 PM
glebius committed rGc5c54f7d21e5: hpts: remove no longer relevant comment (authored by glebius).
hpts: remove no longer relevant comment
Wed, Mar 4, 9:36 PM
glebius committed rGdf97a58afdea: inpcb: use correct label name in a comment (authored by glebius).
inpcb: use correct label name in a comment
Wed, Mar 4, 9:36 PM
glebius added inline comments to D55640: hpts: remove call into TCP HPTS from userret().
Wed, Mar 4, 8:36 PM
glebius updated the diff for D55640: hpts: remove call into TCP HPTS from userret().
  • Remove unneeded extern.
  • Remove all comments that talk about userret().
  • Remove atomics from module unload, they don't make it safe, just pretend.
Wed, Mar 4, 3:34 AM
glebius added inline comments to D55640: hpts: remove call into TCP HPTS from userret().
Wed, Mar 4, 3:31 AM

Tue, Mar 3

glebius requested review of D55640: hpts: remove call into TCP HPTS from userret().
Tue, Mar 3, 9:42 PM

Mon, Mar 2

glebius added a comment to D53484: Remove RIP and RIPng.

@ivy any ideas how to keep tests/sys/netinet/carp.sh working without routed?

Mon, Mar 2, 5:24 PM
glebius added a comment to D55599: netinet6: Tear down IPv6 source address selection policies with rest of IPv6..

Bruce, to be more specific: this particular change needs to add only destroy_policy_queue() and don't do anything wrt the locks. Then a separate change that moves lock initialization to ip6_init() is possible.

Mon, Mar 2, 4:46 PM
glebius added a comment to D55599: netinet6: Tear down IPv6 source address selection policies with rest of IPv6..

A general rule of thumb: you ever want to use IS_DEFAULT_VNET(curvnet) in some stub network module - you are doing something wrong :)

Noted. Thanks for explaining.

Mon, Mar 2, 4:44 PM
glebius requested changes to D55613: rtnetlink: call rt_get_rnd when required in getroute.

This can't be correct cause now rt_get_rnd() may receive a NULL argument and inside it definitely dereferences it.

Mon, Mar 2, 4:43 PM
glebius requested changes to D55599: netinet6: Tear down IPv6 source address selection policies with rest of IPv6..

This is not correct VNET-wise. A general rule of thumb: you ever want to use IS_DEFAULT_VNET(curvnet) in some stub network module - you are doing something wrong :)

Mon, Mar 2, 4:38 PM

Thu, Feb 26

glebius resigned from D55545: libpcap: Update to 1.10.6.

I don't feel myself expert enough to neither endorse or veto the update. In general I am of course in favor of being up to date with this library.

Thu, Feb 26, 10:28 PM
glebius committed rG73d9153fc57b: tests/kern: put ssl_sendfile under MK_OPENSSL != no (authored by glebius).
tests/kern: put ssl_sendfile under MK_OPENSSL != no
Thu, Feb 26, 8:32 PM
glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Thu, Feb 26, 8:20 PM
glebius accepted D55537: divert: Use a better source identifier for netisr_queue_src() calls.
Thu, Feb 26, 8:19 PM
glebius added a comment to D55031: netinet6: Pass IPv4-mapped ASM multicast joins/leaves to netinet..

Do you plan to rebase that over removal of IFP_TO_IA() in preference to in_ifprimaryaddr()?

Thu, Feb 26, 3:46 AM
glebius accepted D55345: netinet: Use in_ifprimaryaddr() in place of IFP_TO_IA()..
Thu, Feb 26, 3:40 AM
glebius added a comment to D55344: netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr()..

P.S. I would suggest to retitle to netinet: introduce in_ifprimaryaddr() to lookup first IPv4 address of an ifnet. IMHO, there is not reason to reference a macro that is about to go away.

Thu, Feb 26, 3:40 AM
glebius accepted D55344: netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr()..
Thu, Feb 26, 3:38 AM
glebius added a comment to D55382: netinet6: Document IPv4-mapped extension to IPV6_JOIN_GROUP et al..

I added some suggestion, but they are IMHOs. I'd suggest to wait for approval from a doc committer. @ziaee maybe you?

Thu, Feb 26, 3:35 AM
glebius accepted D55387: ip6_input: remove unused IPv4-compatible IPv6 checking.
Thu, Feb 26, 3:27 AM
glebius accepted D55444: route: Fix -expire argument when using netlink.
Thu, Feb 26, 3:19 AM
glebius accepted D55440: netlink: Fix expire column in -r flag using netlink.
Thu, Feb 26, 3:18 AM
glebius accepted D55514: route(8): show expire time of each nexthop in monitor.
Thu, Feb 26, 3:14 AM
glebius accepted D55442: rtnetlink: Add support for nexthop expiration in new route.
Thu, Feb 26, 3:14 AM
glebius planned changes to D48709: sockets: refactor solisten() and pr_listen.

Are you still working on this? @glebius
if that's the case, Could you please set the planned change state for this revision?

Thu, Feb 26, 3:10 AM

Wed, Feb 25

glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Wed, Feb 25, 9:24 PM
glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Wed, Feb 25, 9:14 PM
glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Wed, Feb 25, 7:07 PM

Fri, Feb 20

glebius accepted D55410: tcp: improve validation of received TCP over UDP packets.
Fri, Feb 20, 9:06 PM
glebius added a comment to D55410: tcp: improve validation of received TCP over UDP packets.

I'd suggest to change to title to explictily say "TCP over UDP", cause "TCP/UDP" can be misinterpreted to a change to TCP and a similar change to UDP.

Fri, Feb 20, 9:05 PM

Thu, Feb 19

glebius committed rG38edf96b1787: tests/ipfw: fix log:bpf test flakyness (authored by glebius).
tests/ipfw: fix log:bpf test flakyness
Thu, Feb 19, 2:55 AM

Wed, Feb 18

glebius accepted D55345: netinet: Use in_ifprimaryaddr() in place of IFP_TO_IA()..

LGTM module suggestions made in D55344.

Wed, Feb 18, 7:35 PM
glebius added inline comments to D55344: netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr()..
Wed, Feb 18, 7:33 PM

Tue, Feb 17

glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

I agree that not much left of ifcreate_nl() and it can be inlined into ifgeneve.c.

Tue, Feb 17, 9:13 PM

Mon, Feb 16

glebius committed rG11c1b69885be: netlink: force uninline of nl_receive_message() (authored by glebius).
netlink: force uninline of nl_receive_message()
Mon, Feb 16, 11:41 PM
glebius added a comment to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).

The ndq_refcount seems to be not really used. Could it be you wanted to use to to have the callout to refcount the ndq?

Mon, Feb 16, 11:07 PM
glebius updated subscribers of D55316: witness: report a thread that can't sleep in WITNESS_WARN.
Mon, Feb 16, 10:56 PM
glebius added a comment to D55316: witness: report a thread that can't sleep in WITNESS_WARN.

Immediately caught in bridge(4):

NET_EPOCH_ENTER(et);
Mon, Feb 16, 10:56 PM
glebius requested review of D55316: witness: report a thread that can't sleep in WITNESS_WARN.
Mon, Feb 16, 10:55 PM
glebius added inline comments to D55174: ifconfig: Add netlink helper to create interface.
Mon, Feb 16, 10:23 PM

Sun, Feb 15

glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Sun, Feb 15, 8:48 PM
glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

Sorry for making the Geneve check-in process longer, but I really want to understand all corner cases, instead of workarounding them.

Sun, Feb 15, 8:32 PM
glebius added a reviewer for D55174: ifconfig: Add netlink helper to create interface: melifaro.
Sun, Feb 15, 8:26 PM
glebius accepted D54382: MFC sys/netinet6: Implement RFC 7217 (private stable addresses).

No objection for MFC. Neither encouragement, though :)

Sun, Feb 15, 8:23 PM

Fri, Feb 13

glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Fri, Feb 13, 10:14 PM
glebius accepted D53516: Update ip_ecn to RFC 6040.

Not an expert in the area, but code wise LGTM.

Fri, Feb 13, 10:04 PM
glebius accepted D55260: ipfilter: Avoid negative array indicies.
Fri, Feb 13, 10:00 PM
glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

After running my tests for this change, I remembered that
the netlink can reply with an NLMSG_ERROR containing error = 0.

Fri, Feb 13, 9:59 PM
glebius accepted D55233: netinet6: Return EAFNOSUPPORT for non-IPv6 addresses in mcast sockopts..
Fri, Feb 13, 9:55 PM
glebius added a comment to D55267: ndp: Simplify and breakdown nd6_ra_input().

I'd suggest to commit all comments and whitespace changes that can be committed without breaking down nd6_ra_input() separately. That will make meaningful diff smaller. btw, it is great putting references to RFC before important actions and checks!

Fri, Feb 13, 9:50 PM
glebius accepted D55266: multicast(4): Fix disabling multicast forwarding.
Fri, Feb 13, 9:42 PM
glebius committed rG596bf3485fe5: bpf: don't call bpf_detachd() in bpf_setdlt() (authored by glebius).
bpf: don't call bpf_detachd() in bpf_setdlt()
Fri, Feb 13, 7:40 PM

Thu, Feb 12

glebius accepted D55236: ip_mroute: Make the routing socket private.
Thu, Feb 12, 12:37 AM
glebius accepted D55247: rpc: Improve socket locking in svc_vc_accept().
Thu, Feb 12, 12:33 AM
glebius added a comment to D55247: rpc: Improve socket locking in svc_vc_accept().

Sorry, missed the if (nbio == 0)

Thu, Feb 12, 12:32 AM
glebius added inline comments to D55247: rpc: Improve socket locking in svc_vc_accept().
Thu, Feb 12, 12:31 AM
glebius added a comment to D54382: MFC sys/netinet6: Implement RFC 7217 (private stable addresses).

Can you please rebase? There is no longer ND_IFINFO().

Thu, Feb 12, 12:11 AM
glebius accepted D55072: Remove -fms-extensions throughout the tree.
Thu, Feb 12, 12:08 AM
glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

Also (NETLINK) isn't a great error message at all. Please try grep errx sbin/ifconfig/*.c to check other error messages. Maybe just only contents of errmsg.error_str in the case it was provided and unknown error from netlink(4) in case it was not?

Thu, Feb 12, 12:04 AM
glebius accepted D55174: ifconfig: Add netlink helper to create interface.
Thu, Feb 12, 12:01 AM

Feb 6 2026

glebius committed rGf5923578eb67: sockets: repair sctp_peeloff(2) (authored by glebius).
sockets: repair sctp_peeloff(2)
Feb 6 2026, 6:54 PM
glebius resigned from D55138: Switch net.inet6.ip6.use_stableaddr to on by default.

No objections from me, I rather agree. But I am not enough expert in IPv6 to make a strong judgement on defaults change.

Feb 6 2026, 6:11 PM
glebius accepted D55136: Fix style issues in code I committed to support RFC 7217.
Feb 6 2026, 6:07 PM

Feb 5 2026

glebius accepted D54443: if_gre: Add netlink support with tests.
Feb 5 2026, 5:36 PM
glebius accepted D55124: lagg: Remove the member pr_num from struct lagg_proto.
Feb 5 2026, 5:35 PM
glebius accepted D55123: lagg: Makes the none protocol a first-class citizen.
Feb 5 2026, 5:34 PM

Feb 4 2026

glebius updated the summary of D55094: loader.efi: try all ZFS pools found by efi_zfs_probe().
Feb 4 2026, 10:28 PM
glebius updated the diff for D55094: loader.efi: try all ZFS pools found by efi_zfs_probe().

Merge this original diff + Warner's D55107 together.

Feb 4 2026, 10:28 PM
glebius closed D55064: bpf: don't clear pointer from descriptor to the tap on descriptor close.
Feb 4 2026, 10:08 PM
glebius committed rG5937e1cdc991: bpf: don't clear pointer from descriptor to the tap on descriptor close (authored by glebius).
bpf: don't clear pointer from descriptor to the tap on descriptor close
Feb 4 2026, 10:08 PM
glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Feb 4 2026, 8:26 PM
glebius added inline comments to D55107: stand/efi: Allow RELAXED or STRICT boot policies.
Feb 4 2026, 8:21 PM
glebius added inline comments to D55107: stand/efi: Allow RELAXED or STRICT boot policies.
Feb 4 2026, 8:13 PM
glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Feb 4 2026, 5:31 PM
glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Feb 4 2026, 5:30 PM
glebius added a comment to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).

Sorry, I didn't ask to de-virtualize the queue, only the lock. I actually asked why can't we hang off the queue from the in6_ifaddr instead of making it global? btw, how many queue entries per unique address could be there?

Feb 4 2026, 5:25 PM
glebius accepted D54443: if_gre: Add netlink support with tests.

Approved, but please address comment in the module event switch statement.

Feb 4 2026, 5:16 PM
glebius accepted D55099: ifconfig: fix gre(4) status.

Please consider all trivial MFCs approved.

Feb 4 2026, 5:11 PM
glebius added a comment to D55090: hdb_add_current_keys_to_history: pass correct `size` to calloc.

I can't understand the problem. If structure is known sizeof(*ext) results in the same value as sizeof(struct HDB_extension). If the structure is not known and has only forward declaration, compilation should fail with: invalid application of 'sizeof' to an incomplete type.

Feb 4 2026, 5:09 PM
glebius added a comment to D32914: Add net.inet.ip.source_address_validation.

For such a test you'd better move one of the interfaces into VIMAGE jail. This will isolate not only from this particular problem, but from other potential problems.

Feb 4 2026, 4:33 PM