Page MenuHomeFreeBSD
Feed Advanced Search

Aug 6 2018

jtl committed rS337391: MFC r337390: Bump date after r337384..
MFC r337390: Bump date after r337384.
Aug 6 2018, 6:46 PM
jtl committed rS337390: Bump date after r337384..
Bump date after r337384.
Aug 6 2018, 6:42 PM
jtl committed rS337389: Address concerns about CPU usage while doing TCP reassembly..
Address concerns about CPU usage while doing TCP reassembly.
Aug 6 2018, 5:50 PM
jtl committed rS337388: Address concerns about CPU usage while doing TCP reassembly..
Address concerns about CPU usage while doing TCP reassembly.
Aug 6 2018, 5:48 PM
jtl committed rS337387: Address concerns about CPU usage while doing TCP reassembly..
Address concerns about CPU usage while doing TCP reassembly.
Aug 6 2018, 5:48 PM
jtl committed rS337386: MFC r337384:.
MFC r337384:
Aug 6 2018, 5:46 PM
jtl committed rS337385: MFC r337384:.
MFC r337384:
Aug 6 2018, 5:42 PM
jtl committed rS337384: Address concerns about CPU usage while doing TCP reassembly..
Address concerns about CPU usage while doing TCP reassembly.
Aug 6 2018, 5:37 PM

Jul 28 2018

jtl accepted D16485: Fix some TCP fast open issues.
Jul 28 2018, 11:28 PM

Jul 27 2018

jtl created D16471: Some TCP reassembly improvements.
Jul 27 2018, 5:36 PM

Jul 25 2018

jtl committed rD52056: Update PGP key for jtl..
Update PGP key for jtl.
Jul 25 2018, 2:55 AM

Jul 24 2018

jtl accepted D16420: Fastpath was a temp holder to give as an example and now needs to disappear.

Never mind. It looks like this is a display issue, and you really are deleting them.

Jul 24 2018, 2:18 PM
jtl requested changes to D16420: Fastpath was a temp holder to give as an example and now needs to disappear.

It looks like you're keeping the code by moving it to the modules directory? At this point, I think it just makes sense to delete it.

Jul 24 2018, 1:39 PM

Jun 18 2018

jtl added a comment to D15706: socket: introduction of destructor callback.
In D15706#334711, @jtl wrote:

Didn't quite catch this before it was committed. This isn't really a destructor, it's a close notification. Rather than confuse matters, as sockets have UMA destructors as well, this should probably be so_notify_close.

Yes, I caught that when I asked the submitter about the placement of the "destructor". But, once I figured out it was a close notification, I should have changed the name. Mea cupla.

Before changing this, let me see if I can confirm what the Linux implementation does.

Thanks, it is intended to be equivalent to sk_destruct() callback in struct sock in Linux.

Is the Linux sk_destruct called on socket close, or on socket destruction? If we want an actual socket destructor, we can add one of those [instead / as well], called from the socket destructor function.

It is literally destructor, which is called when the final reference count drops to zero. So probably we should define so_dtor() as destructor (so keep the name) and call it after SOCK_UNLOCK() in sofree(). (in Linux it is invoked without locking socket).

Jun 18 2018, 11:07 PM
jtl accepted D15686: convert inpcbhash rlock to epoch.
Jun 18 2018, 10:13 PM

Jun 15 2018

jtl added a comment to D15706: socket: introduction of destructor callback.

Didn't quite catch this before it was committed. This isn't really a destructor, it's a close notification. Rather than confuse matters, as sockets have UMA destructors as well, this should probably be so_notify_close.

Jun 15 2018, 6:19 PM
jtl updated subscribers of D15686: convert inpcbhash rlock to epoch.

I've spent some time thinking about this a bit, and I have the following comments. (Some may seem contradictory, but please bear with me. :-) )

Jun 15 2018, 3:32 PM
jtl added inline comments to D15815: Set page permissions for kernel modules.
Jun 15 2018, 1:59 AM

Jun 14 2018

jtl created D15815: Set page permissions for kernel modules.
Jun 14 2018, 11:27 PM

Jun 13 2018

jtl committed rS335068: Make UMA and malloc(9) return non-executable memory in most cases..
Make UMA and malloc(9) return non-executable memory in most cases.
Jun 13 2018, 5:05 PM
jtl closed D15691: Make kernel allocations be non-executable on some platforms.
Jun 13 2018, 5:04 PM
jtl updated the diff for D15691: Make kernel allocations be non-executable on some platforms.

Address @markj's feedback by always defining the vmd_kernel_rwx_arena member of the vm_domain struct.

Jun 13 2018, 4:47 PM
jtl added inline comments to D15691: Make kernel allocations be non-executable on some platforms.
Jun 13 2018, 4:41 PM

Jun 12 2018

jtl updated the diff for D15691: Make kernel allocations be non-executable on some platforms.

Update the zone(9) manpage.

Jun 12 2018, 12:42 PM

Jun 11 2018

jtl updated the diff for D15691: Make kernel allocations be non-executable on some platforms.

Okay, really without the cruft this time. (Hopefully...)

Jun 11 2018, 11:55 PM
jtl added a comment to D15686: convert inpcbhash rlock to epoch.

I'll try to look at this review this week.

Jun 11 2018, 11:54 PM
jtl added a reviewer for D15686: convert inpcbhash rlock to epoch: rwatson.
Jun 11 2018, 11:53 PM
jtl updated the diff for D15691: Make kernel allocations be non-executable on some platforms.

Get the correct version of sys/vm/vm_kern.c (with the troubleshooting stuff removed).

Jun 11 2018, 11:47 PM
jtl updated the diff for D15691: Make kernel allocations be non-executable on some platforms.

Numerous updates:

  • Address @alc's concerns by adding a new arena for allocations with non-standard permissions. Import a 2MB-aligned address block at a time into the arena. Release space back to the parent arena when able. But, only do this for architectures with superpages.
  • Plumb M_EXEC through malloc(9).
  • Fix BPF by reverting most of rS317072.
  • Add a note to the manpage that not all architectures will enforce execution permissions.
Jun 11 2018, 11:38 PM
jtl committed rS334983: Fix a memory leak for the BIOCSETWF ioctl on kernels with the BPF_JITTER.
Fix a memory leak for the BIOCSETWF ioctl on kernels with the BPF_JITTER
Jun 11 2018, 11:32 PM
jtl added a comment to D15758: Rack crash that Larry Rosenman found...

This passes my "sniff test", but it would be better to get @pkelsey to review it.

Jun 11 2018, 2:49 PM
jtl added reviewers for D15758: Rack crash that Larry Rosenman found..: transport, pkelsey.
Jun 11 2018, 2:45 PM
jtl requested changes to D15757: HPTS Is missing some support for Vnets.

I think there are more changes needed.

Jun 11 2018, 2:37 PM
jtl closed D15756: Change RACK dependency on TCPHPTS from build-time to load-time.
Jun 11 2018, 2:27 PM
jtl committed rS334949: Change RACK dependency on TCPHPTS from a build-time dependency to a load-.
Change RACK dependency on TCPHPTS from a build-time dependency to a load-
Jun 11 2018, 2:27 PM
jtl accepted D15634: Use updated TCP timestamps when retransmitting SYN-ACK using the syncache code path.
Jun 11 2018, 10:36 AM
jtl created D15756: Change RACK dependency on TCPHPTS from build-time to load-time.
Jun 11 2018, 10:31 AM

Jun 8 2018

jtl committed rS334854: Create a symlink for sodtor_set(9) to the socket(9) man page..
Create a symlink for sodtor_set(9) to the socket(9) man page.
Jun 8 2018, 7:47 PM
jtl closed D15706: socket: introduction of destructor callback.
Jun 8 2018, 7:35 PM
jtl committed rS334853: Add a socket destructor callback. This allows kernel providers to set.
Add a socket destructor callback. This allows kernel providers to set
Jun 8 2018, 7:35 PM
jtl accepted D15706: socket: introduction of destructor callback.

The submitter spoke to me in person at BSDCan and answered my questions.

Jun 8 2018, 6:38 PM
jtl added a comment to D15691: Make kernel allocations be non-executable on some platforms.
In D15691#331801, @alc wrote:

Overall, I think that this is a good idea, but the implementation has the following problem. The allocation of one executable page will block the promotion of the surrounding pages to a superpage mapping.

Jun 8 2018, 3:57 PM
jtl added inline comments to D15706: socket: introduction of destructor callback.
Jun 8 2018, 3:26 PM
jtl added a reviewer for D15706: socket: introduction of destructor callback: network.
Jun 8 2018, 3:26 PM

Jun 7 2018

jtl updated the diff for D15691: Make kernel allocations be non-executable on some platforms.

Incorporate review feedback from @jhb.

Jun 7 2018, 4:53 PM
jtl created D15691: Make kernel allocations be non-executable on some platforms.
Jun 7 2018, 4:04 PM
jtl committed rS334783: Fix a typo in vm_domain_set(). When a domain crosses into the severe range,.
Fix a typo in vm_domain_set(). When a domain crosses into the severe range,
Jun 7 2018, 1:32 PM
jtl added a comment to D15686: convert inpcbhash rlock to epoch.

I added a few basic comments while I ponder the rest...

Jun 7 2018, 2:46 AM
jtl added a reviewer for D15686: convert inpcbhash rlock to epoch: glebius.
Jun 7 2018, 2:28 AM

Jun 1 2018

jtl added a comment to D15646: Provide option to panic when the IPMI creates an NMI.

I don't know ISA well. I'm open to switching this to be an option to always panic on any NMI, instead of picking NMI_TIMER2 for special treatment.

Jun 1 2018, 5:33 PM
jtl created D15646: Provide option to panic when the IPMI creates an NMI.
Jun 1 2018, 5:05 PM
jtl created D15645: Update atomic man page to reflect reality.
Jun 1 2018, 4:52 PM
jtl committed rS334490: Update the sysctl(9) manpage to indicate that <sys/param.h> is required.
Update the sysctl(9) manpage to indicate that <sys/param.h> is required
Jun 1 2018, 4:47 PM

May 31 2018

jtl accepted D15222: Use UDP len when calculating UDP checksums.

I'm sorry it took me so long to review this.

May 31 2018, 3:08 PM
jtl added a comment to D15386: Improve portability of structs xinpcb and friends..

Anyone on transport care about this?

May 31 2018, 1:26 AM

May 24 2018

jtl added a comment to D11003: Load balance sockets with new SO_REUSEPORT_LB option.
In D11003#327485, @jtl wrote:

Is everyone on this review fine with me committing this? With the inheritance code removed, I believe there are no further objections or questions.

I've been meaning to review this, but have been delayed. I would appreciate a few extra days to look it over.

@jtl I'd like to commit this at some point this week, but I also want your feedback on it. Should we hold off until next week to drop this into head?

May 24 2018, 12:43 AM

May 21 2018

jtl added a comment to D11003: Load balance sockets with new SO_REUSEPORT_LB option.

Is everyone on this review fine with me committing this? With the inheritance code removed, I believe there are no further objections or questions.

May 21 2018, 9:09 PM
jtl accepted D15510: Defer inpcb deletion until after a grace period has elapsed.

Having stared at this a bit, I generally think its fine. In fact, in some aspects it is an improvement over what it replaces.

May 21 2018, 6:59 PM
jtl added a reviewer for D15510: Defer inpcb deletion until after a grace period has elapsed: rwatson.
May 21 2018, 6:21 PM
jtl added a comment to D15483: More bcmp "optimization".
In D15483#326763, @mjg wrote:

First a minor note is that I took the liberty of s/bzero/bcmp, which I presume was intended.

May 21 2018, 2:48 PM

May 18 2018

jtl added a comment to D15483: More bcmp "optimization".

By the way, measurements were taken on an Intel E5-2697A v4 (32-core Broadwell).

May 18 2018, 7:26 PM
jtl created D15483: More bcmp "optimization".
May 18 2018, 7:18 PM

May 16 2018

jtl added a comment to D7135: A problem with ASYNC drain.

Yes, see rS302894, rS302997, rS302998, rS303037, rS303096, and rS303098.

May 16 2018, 6:49 PM

May 13 2018

jtl added a comment to D15222: Use UDP len when calculating UDP checksums.

Sorry it took me a while to look at this. See comments in-line.

May 13 2018, 12:32 AM
jtl added a reviewer for D15222: Use UDP len when calculating UDP checksums: transport.
May 13 2018, 12:31 AM

May 12 2018

jtl closed D15021: Wakup applications with shutdown on listen sockets (stable/11 version).
May 12 2018, 1:55 AM
jtl committed rS333511: r285910 attempted to make shutdown() be POSIX compliant by returning.
r285910 attempted to make shutdown() be POSIX compliant by returning
May 12 2018, 1:55 AM

May 11 2018

jtl added a comment to D15021: Wakup applications with shutdown on listen sockets (stable/11 version).

Given the fact that users appear to depend on this (we have two PRs on it), this appears to have been an unintended change in stable/11, and it seems to violate POLA by making this change on a stable branch, I intend to commit this today unless someone objects.

May 11 2018, 1:19 PM

May 10 2018

jtl added a comment to D15019: Wakup applications with shutdown on listen sockets.

@glebius : Any progress on reviewing this? IIRC, you didn't like overloading the SS_ISDISCONNECTED flag to indicate listen sockets that were shutdown. Do you have an alternate proposal?

May 10 2018, 7:06 PM
jtl added a comment to D15021: Wakup applications with shutdown on listen sockets (stable/11 version).

Is everyone OK with this going in? Or, to ask it differently, is anyone not OK? The 11.2 release is underway, so it would be good to get this in soon, if we agree to fix it in stable/11.

May 10 2018, 7:04 PM

May 9 2018

jtl added a comment to D15358: Address memory leak in new reno cc module.

BTW, it looks like this was introduced in r331214. Since it is so new, my "not widely used" comment is probably both true and somewhat irrelevant.

May 9 2018, 12:09 AM
jtl added inline comments to D15358: Address memory leak in new reno cc module.
May 9 2018, 12:03 AM

May 8 2018

jtl added reviewers for D15358: Address memory leak in new reno cc module: transport, rrs.
May 8 2018, 10:32 PM

May 7 2018

jtl added a comment to D15337: Add support for higher resolution timestamps.
In D15337#323183, @jtl wrote:

How does this interact with the low-latency, high-precision timestamp option being discussed at the IETF?

See https://tools.ietf.org/html/draft-wang-tcpm-low-latency-opt-00 and https://www.ietf.org/proceedings/97/slides/slides-97-tcpm-tcp-options-for-low-latency-00.pdf .

@jtl I was under the impression that that discussion had stalled. The RFC you point at expired on December 10, 2017. Is there a mailing list where this is being discussed or do I need to mail them individually?

May 7 2018, 6:26 PM
jtl added inline comments to D11003: Load balance sockets with new SO_REUSEPORT_LB option.
May 7 2018, 3:30 PM
jtl added a comment to D15337: Add support for higher resolution timestamps.

How does this interact with the low-latency, high-precision timestamp option being discussed at the IETF?

May 7 2018, 2:17 PM

Apr 27 2018

jtl added a comment to D14993: Add a limit on how long TCP data can live at the head of the output queue.

I'm not sure it is a good idea to have a sysctl for the default value. I would prefer to have the default value always be 0 (not changeable by a sysctl) and required the application to set a non-default value via the socket option. Why is there a need to change the default from "off" on a system wide base?

Apr 27 2018, 12:26 PM

Apr 25 2018

jtl created D15203: Post-panic KASSERT enhancements.
Apr 25 2018, 8:27 PM

Apr 24 2018

jtl committed rS332958: Update r332860 by changing the default from suppressing post-panic.
Update r332860 by changing the default from suppressing post-panic
Apr 24 2018, 6:47 PM

Apr 23 2018

jtl committed rS332889: MFC r331745 (by np):.
MFC r331745 (by np):
Apr 23 2018, 2:22 PM

Apr 21 2018

jtl committed rS332860: When running with INVARIANTS, the kernel contains extra checks. However,.
When running with INVARIANTS, the kernel contains extra checks. However,
Apr 21 2018, 5:05 PM
jtl closed D12920: Avoid a double-panic caused by KASSERTs.
Apr 21 2018, 5:05 PM

Apr 20 2018

jtl committed rS332842: MFC r319216:.
MFC r319216:
Apr 20 2018, 8:18 PM
jtl committed rS332841: MFC r319215:.
MFC r319215:
Apr 20 2018, 8:17 PM
jtl committed rS332840: MFC r319214:.
MFC r319214:
Apr 20 2018, 8:10 PM
jtl added a comment to D15021: Wakup applications with shutdown on listen sockets (stable/11 version).

Presumably we need to agree on and commit D15019 first, and commit this as a MFC in spirit after the change in HEAD.

Apr 20 2018, 6:44 PM
jtl committed rS332834: MFC r314286:.
MFC r314286:
Apr 20 2018, 6:37 PM
jtl committed rS332831: MFC r314116:.
MFC r314116:
Apr 20 2018, 3:55 PM
jtl committed rS332830: MFC r313447:.
MFC r313447:
Apr 20 2018, 3:49 PM
jtl committed rS332829: MFC r307083:.
MFC r307083:
Apr 20 2018, 3:44 PM
jtl committed rS332828: MFC r306768:.
MFC r306768:
Apr 20 2018, 3:41 PM
jtl committed rS332827: MFC r330511:.
MFC r330511:
Apr 20 2018, 3:36 PM
jtl committed rS332826: MFC r330510:.
MFC r330510:
Apr 20 2018, 3:29 PM
jtl committed rS332823: MFC r329171:.
MFC r329171:
Apr 20 2018, 3:06 PM
jtl committed rS332822: MFC r329071:.
MFC r329071:
Apr 20 2018, 2:55 PM
jtl committed rS332821: MFC r331309:.
MFC r331309:
Apr 20 2018, 2:47 PM
jtl committed rS332820: MFC r331484:.
MFC r331484:
Apr 20 2018, 2:34 PM
jtl committed rS332819: MFC r331488:.
MFC r331488:
Apr 20 2018, 2:21 PM
jtl committed rS332818: MFC r331926:.
MFC r331926:
Apr 20 2018, 2:01 PM
jtl committed rS332817: MFC r332120:.
MFC r332120:
Apr 20 2018, 1:59 PM