Page MenuHomeFreeBSD
Feed Advanced Search

May 20 2021

donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Add test for PKT_ALIAS_RESET_ON_ADDR_CHANGE
May 20 2021, 9:23 PM
donner updated the summary of D30335: test/libalias: Tests for outgoing NAT.
May 20 2021, 9:00 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Test case for PKG_ALIAS_SAME_PORTS
May 20 2021, 8:59 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Fix case 4_udp and various issues
May 20 2021, 7:57 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Fix stupid errors (reversed length check, existing nat state)
May 20 2021, 11:23 AM
donner committed rG1165cafa0bae: netgraph/ng_bridge: Handle send errors during loop handling (authored by donner).
netgraph/ng_bridge: Handle send errors during loop handling
May 20 2021, 6:00 AM
donner committed rGe240dd0d502e: netgraph/ng_bridge: Handle send errors during loop handling (authored by donner).
netgraph/ng_bridge: Handle send errors during loop handling
May 20 2021, 5:54 AM

May 19 2021

donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Factor out common utilities
  • Zeroize packet buffer
May 19 2021, 10:45 PM
donner added a comment to D30335: test/libalias: Tests for outgoing NAT.

I'm far from finished with this.
But thank you @kp for the intermediate, positive response.

May 19 2021, 4:50 PM
donner accepted D30348: pfctl tests: Test fairq configuration.
May 19 2021, 12:13 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Simplify structure
  • More simplification.
  • Add UDP and reverse translation
  • Fix packet header size calculation
May 19 2021, 11:32 AM
donner added a reviewer for D30335: test/libalias: Tests for outgoing NAT: network.
May 19 2021, 5:56 AM

May 18 2021

donner committed rG3d846e48227e: Do not forward datagrams originated by link-local addresses (authored by zlei).
Do not forward datagrams originated by link-local addresses
May 18 2021, 9:02 PM
donner closed D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
May 18 2021, 9:01 PM · network
donner closed D26489: IP address parsing in netgraph eating too many characters.
May 18 2021, 8:40 PM · network
donner committed rG63b6a08ce246: ng_parse: IP address parsing in netgraph eating too many characters (authored by markus_stoffdv.at).
ng_parse: IP address parsing in netgraph eating too many characters
May 18 2021, 8:40 PM
donner committed rG7fd8baee756e: test/libalias: Tests for instantiation (authored by donner).
test/libalias: Tests for instantiation
May 18 2021, 8:20 PM
donner closed D30307: test/libalias: Tests instantiation.
May 18 2021, 8:20 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Add UDP and reverse translation
May 18 2021, 8:00 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • More simplification.
May 18 2021, 7:03 PM
donner updated the diff for D30335: test/libalias: Tests for outgoing NAT.
  • Simplify structure
May 18 2021, 6:18 PM
donner retitled D30307: test/libalias: Tests instantiation from libalias: Initial test suite to test/libalias: Tests instantiation.
May 18 2021, 2:55 PM
donner requested review of D30335: test/libalias: Tests for outgoing NAT.
May 18 2021, 2:54 PM
donner accepted D30318: dummynet: Fix mbuf tag allocation failure handling.

dn_aqm_pie.c and dn_sched_fq_pie.c would considerably improve by replacing the t = DROP by goto drop.

May 18 2021, 6:33 AM
donner resigned from D26447: add deprecation notice to ftpd.
May 18 2021, 6:25 AM
donner committed rG8addaaa5fb86: sbin/ipfw: Fix parsing error in table based forward (authored by donner).
sbin/ipfw: Fix parsing error in table based forward
May 18 2021, 6:16 AM
donner committed rG7200fdb9da3a: sbin/ipfw: Fix parsing error in table based forward (authored by donner).
sbin/ipfw: Fix parsing error in table based forward
May 18 2021, 6:11 AM

May 17 2021

donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Fix spelling
May 17 2021, 9:09 PM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Fix build process
May 17 2021, 9:07 PM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Add to global build.
May 17 2021, 8:52 PM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Move location of test dir and update build procedure
May 17 2021, 8:47 PM
donner added a comment to D30307: test/libalias: Tests instantiation.
In D30307#680794, @kp wrote:

I think you're also missing a makefile hookup somewhere. These tests may want to live in /usr/src/tests/sys/netinet/libalias instead, but I don't hold strong views on that.

May 17 2021, 6:53 PM
donner retitled D30307: test/libalias: Tests instantiation from libalias: Create a test suite to libalias: Initial test suite.
May 17 2021, 6:46 PM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Renumber the test cases and rename the file according to scope
May 17 2021, 6:38 PM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Replace preprocessor constants by compiler generated values.
May 17 2021, 4:04 PM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Use OBJDIR
  • Make random reproducable.
  • Inspect kyua reports
May 17 2021, 3:47 PM
donner added a reviewer for D30307: test/libalias: Tests instantiation: network.
May 17 2021, 11:35 AM
donner added a reviewer for D30283: libalias: Restructure searching: lev.

Added @lev primary for testing of functionality.
There should be some performance improvements due to:

  • some early breaks in the loops with many active flows
  • separation of "complete" flows from configured "forwardings"
  • use of NO_ADDR when possible
May 17 2021, 11:31 AM
donner added a reviewer for D30277: libalias: tidy up housekeeping: lev.

Added @lev for his offer to do performance tests.

May 17 2021, 11:24 AM
donner accepted D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
May 17 2021, 10:43 AM · network
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Make the tests work directly on the intermediate builds.
May 17 2021, 9:54 AM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Add a test for a known API violation.
May 17 2021, 9:38 AM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Test to create many instances and remove them in random order.
May 17 2021, 8:36 AM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Add test to recreate an instance multiple time.
May 17 2021, 7:27 AM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Fix meta data. => Now it works.
May 17 2021, 6:56 AM
donner added a comment to D30307: test/libalias: Tests instantiation.

Ah, kyua report shows:

aliasdb_test:__test_cases_list__  ->  broken: Unknown test case metadata property 'desc'  [0.001s]
May 17 2021, 6:53 AM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Remove unnecessary static
May 17 2021, 6:51 AM
donner updated the diff for D30307: test/libalias: Tests instantiation.
  • Simplify the test
May 17 2021, 6:49 AM
donner committed rG370c8a1f784c: service/ipfw: Silence warning on restart (authored by donner).
service/ipfw: Silence warning on restart
May 17 2021, 6:17 AM
donner committed rG9ad87c22530d: service/ipfw: Silence warning on restart (authored by donner).
service/ipfw: Silence warning on restart
May 17 2021, 6:13 AM
donner committed rGe0f2b8aaf1ed: service/ipfw: Silence warning on restart (authored by donner).
service/ipfw: Silence warning on restart
May 17 2021, 6:10 AM

May 16 2021

donner added a comment to D30307: test/libalias: Tests instantiation.

Start as simple as possible and fail ...

[/usr/tests/sys/netinet/libalias]$ kyua list
aliasdb_test:__test_cases_list__
May 16 2021, 9:45 PM
donner requested review of D30307: test/libalias: Tests instantiation.
May 16 2021, 9:42 PM
donner updated the diff for D30283: libalias: Restructure searching.
  • Reclassify SCTP links when specifying missing parts.
May 16 2021, 6:10 PM
donner updated the diff for D30283: libalias: Restructure searching.
  • Further refactoring
May 16 2021, 5:58 PM
donner committed rG687e510e5ce3: netgraph/ng_checksum: Fix double free error (authored by donner).
netgraph/ng_checksum: Fix double free error
May 16 2021, 5:42 PM
donner closed D30273: netgraph/ng_checksum: Fix double free error.
May 16 2021, 5:42 PM
donner added a comment to D30284: pf: Set the pfik_group for userspace.
In D30284#680337, @kp wrote:

k -> 6, i -> 1, to -> 2 => (p)fkkif(to)kif => 0xf661f261f

I think I prefer 0xFEEDC0DE, because it's more obviously human-generated and not a valid pointer.

May 16 2021, 2:27 PM
donner updated the diff for D30283: libalias: Restructure searching.
  • NO_ADDR for fragments
  • Factor out common search pattens in in and out direction.
May 16 2021, 1:55 PM
donner accepted D30284: pf: Set the pfik_group for userspace.
May 16 2021, 1:10 PM
donner added a comment to D30284: pf: Set the pfik_group for userspace.
In D30284#680331, @kp wrote:

Although using a more-or-less unique combination would probably make it easier to figure out where it came from. On the third hand, pf_kkif_to_kif() is a pretty obvious place to look.

May 16 2021, 1:08 PM
donner added a comment to D30284: pf: Set the pfik_group for userspace.

0xdeadc0de is used to signal a use after free.
Please consider a different code, which does not cause confusion in the future.

May 16 2021, 11:03 AM
donner closed D30282: libalias: Ensure ASSERT behind varable declarations.
May 16 2021, 12:30 AM
donner committed rG2e6b07866f9e: libalias: Ensure ASSERT behind varable declarations (authored by donner).
libalias: Ensure ASSERT behind varable declarations
May 16 2021, 12:30 AM
donner updated the diff for D30283: libalias: Restructure searching.
  • Fix split point.
May 16 2021, 12:04 AM
donner updated the diff for D30283: libalias: Restructure searching.
  • NO_ADDR for fragments
May 16 2021, 12:03 AM

May 15 2021

donner added a reviewer for D30283: libalias: Restructure searching: network.
May 15 2021, 11:47 PM
donner requested review of D30283: libalias: Restructure searching.
May 15 2021, 11:46 PM
donner added a reviewer for D30282: libalias: Ensure ASSERT behind varable declarations: network.
May 15 2021, 10:52 PM
donner requested review of D30282: libalias: Ensure ASSERT behind varable declarations.
May 15 2021, 10:52 PM
donner added a comment to D30273: netgraph/ng_checksum: Fix double free error.

checksum_ipv4() and checksum_ipv6() may fail without freeing the mbuf. In that case, with the patch the mbuf is leaked.

Can you point to a code line, where this can happen?
I didn't see one.

In checksum_ipv4() we call PULLUP_CHECK() on line 316. PULLUP_CHECK() looks like this:

293 #define PULLUP_CHECK(mbuf, length) do {                                 \                                                                                                 
294         pullup_len += length;                                           \                                                                                                 
295         if (((mbuf)->m_pkthdr.len < pullup_len) ||                      \                                                                                                 
296             (pullup_len > MHLEN)) {                                     \                                                                                                 
297                 return (EINVAL);                                        \                                                                                                 
298         }                                                               \                                                                                                 
299         if ((mbuf)->m_len < pullup_len &&                               \                                                                                                 
300             (((mbuf) = m_pullup((mbuf), pullup_len)) == NULL)) {        \                                                                                                 
301                 return (ENOBUFS);                                       \                                                                                                 
302         }                                                               \                                                                                                 
303 } while (0)

On line 297, we return an error without having freed the mbuf. On line 301 we return an error having freed the mbuf, and the caller of checksum_ipv4() will free the mbuf again. So in the first case, we are now not freeing the mbuf at all.

May 15 2021, 6:57 PM
donner added a comment to D30273: netgraph/ng_checksum: Fix double free error.

checksum_ipv4() and checksum_ipv6() may fail without freeing the mbuf. In that case, with the patch the mbuf is leaked.

May 15 2021, 4:26 PM
donner added a comment to D30275: libalias: Remove unused function LibAliasCheckNewLink.
In D30275#680105, @kp wrote:

struct libalias is exposed to userspace, right?

May 15 2021, 4:15 PM
donner updated the diff for D30275: libalias: Remove unused function LibAliasCheckNewLink.
  • Reestablish ABI without providing any functionality.
  • Remove the last piece from the internal structure.
May 15 2021, 4:13 PM
donner added a reviewer for D30277: libalias: tidy up housekeeping: network.
May 15 2021, 3:41 PM
donner requested review of D30277: libalias: tidy up housekeeping.
May 15 2021, 3:40 PM
donner added a reviewer for D30275: libalias: Remove unused function LibAliasCheckNewLink: network.
May 15 2021, 1:33 PM
donner requested review of D30275: libalias: Remove unused function LibAliasCheckNewLink.
May 15 2021, 1:31 PM
donner added reviewers for D30273: netgraph/ng_checksum: Fix double free error: network, markj, afedorov.
May 15 2021, 9:45 AM
donner requested review of D30273: netgraph/ng_checksum: Fix double free error.
May 15 2021, 9:38 AM
donner closed D30253: libalias: replace placeholder with static constant.
May 15 2021, 7:09 AM
donner committed rG189f8eea138a: libalias: replace placeholder with static constant (authored by donner).
libalias: replace placeholder with static constant
May 15 2021, 7:09 AM
donner committed rGeffc8e57fbf0: libalias: Style cleanup (authored by donner).
libalias: Style cleanup
May 15 2021, 7:01 AM
donner closed D30259: libalias: Style cleanup.
May 15 2021, 7:01 AM

May 14 2021

donner added a comment to D30259: libalias: Style cleanup.

I do not take every hint from D30260.
Many of those compiler generated suggestions destroy the flow of reading.
Most of the others are a bit picky on the line length, but this is not reason to change existing code.

May 14 2021, 7:46 PM
donner added a comment to D30260: clang-format libalias with D30259 applied.

Thank you for the input.

May 14 2021, 7:42 PM
donner updated the diff for D30259: libalias: Style cleanup.
  • Incooperate style suggestions from D30260
  • Canonify #ifdef spacing.
May 14 2021, 7:42 PM
donner updated the diff for D30259: libalias: Style cleanup.
  • Replace spaces with tabs
May 14 2021, 5:05 PM
donner updated the diff for D30259: libalias: Style cleanup.
  • Remove spaces before tabs.
May 14 2021, 4:46 PM
donner updated the diff for D30259: libalias: Style cleanup.
  • Fix balanced braces around "else".
  • Fix some spacing.
May 14 2021, 4:09 PM
donner added inline comments to D30259: libalias: Style cleanup.
May 14 2021, 4:08 PM
donner added a comment to D30260: clang-format libalias with D30259 applied.

Thank you for the cool idea! There are some interesting ideas which are worth to be applied.

May 14 2021, 2:39 PM
donner added reviewers for D30259: libalias: Style cleanup: network, hselasky, eugen_grosbein.net, emaste.
May 14 2021, 1:27 PM
donner added a comment to D30253: libalias: replace placeholder with static constant.

Rebased to D30259

May 14 2021, 1:23 PM
donner updated the diff for D30253: libalias: replace placeholder with static constant.
  • Make it const.
May 14 2021, 1:22 PM
donner requested review of D30259: libalias: Style cleanup.
May 14 2021, 1:13 PM
donner added inline comments to D30253: libalias: replace placeholder with static constant.
May 14 2021, 9:16 AM
donner updated the diff for D30253: libalias: replace placeholder with static constant.
  • Silence warning about non-static declaration.
May 14 2021, 9:15 AM

May 13 2021

donner added reviewers for D30253: libalias: replace placeholder with static constant: network, hselasky, emaste, eugen_grosbein.net.
May 13 2021, 9:55 PM
donner requested review of D30253: libalias: replace placeholder with static constant.
May 13 2021, 9:50 PM