Page MenuHomeFreeBSD
Feed Advanced Search

Aug 29 2019

D21469: Remove some unused VM locking macros from fusefs. is now accepted and ready to land.

Good catch. Looks like those have been dead code ever since r292373.

Aug 29 2019, 9:08 PM
asomers added inline comments to D21434: ping6: separate command line tokens parsing from processing of the option arguments.
Aug 29 2019, 7:11 PM
asomers created D21466: Coverity fixes in fusefs(5).
Aug 29 2019, 5:06 PM
asomers added inline comments to D21434: ping6: separate command line tokens parsing from processing of the option arguments.
Aug 29 2019, 3:49 PM
asomers added inline comments to D21434: ping6: separate command line tokens parsing from processing of the option arguments.
Aug 29 2019, 2:44 PM

Aug 28 2019

asomers created D21457: fusefs: coverity cleanup in the tests.
Aug 28 2019, 5:24 PM
asomers added inline comments to D21442: Fix qmath(3) with new GCC.
Aug 28 2019, 2:54 PM
asomers committed rS351560: fusefs: Fix some bugs regarding the size of the LISTXATTR list.
fusefs: Fix some bugs regarding the size of the LISTXATTR list
Aug 28 2019, 4:19 AM
asomers closed D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.
Aug 28 2019, 4:19 AM
asomers added a comment to D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.
In D21287#466723, @cem wrote:

This approach looks technically correct to me, and it simplifies the logic, but there is definitely some microbenchmark cost to exiting to userspace every retry instead of doing so "a few times" in the kernel (with some algorithm). But this is maybe just premature optimization on my part.

Aug 28 2019, 4:11 AM

Aug 27 2019

asomers added inline comments to D21434: ping6: separate command line tokens parsing from processing of the option arguments.
Aug 27 2019, 9:12 PM
asomers added a comment to D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.

Accomodate buggy or malicious fuse servers that always return ERANGE for
FUSE_LISTXATTR. Instead of restarting within the VOP; return ERESTART.
That way the blocked process will be killable.

Aug 27 2019, 9:02 PM
asomers added inline comments to D21434: ping6: separate command line tokens parsing from processing of the option arguments.
Aug 27 2019, 3:50 PM
asomers added a comment to D21434: ping6: separate command line tokens parsing from processing of the option arguments.
In D21434#466423, @sucanjan_gmail.com wrote:

I would also like to ask for help with copyright. What should I use if some code is not mine (mainly the #define directives) and some is?

Aug 27 2019, 3:40 PM
asomers closed D21405: ping: raise WARNS level to 6.
Aug 27 2019, 3:35 PM
asomers committed rS351548: ping: raise WARNS level to 6.
ping: raise WARNS level to 6
Aug 27 2019, 3:34 PM
D21405: ping: raise WARNS level to 6 is now accepted and ready to land.
Aug 27 2019, 3:33 PM

Aug 26 2019

asomers added inline comments to D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.
Aug 26 2019, 9:16 PM

Aug 24 2019

asomers closed D21406: ping: use CMSG_FIRSTHDR() for accessing ancillary data.
Aug 24 2019, 6:00 PM
asomers committed rS351461: ping: fix unaligned access to ancillary data.
ping: fix unaligned access to ancillary data
Aug 24 2019, 6:00 PM
D21406: ping: use CMSG_FIRSTHDR() for accessing ancillary data is now accepted and ready to land.
Aug 24 2019, 5:57 PM
asomers added a comment to D21406: ping: use CMSG_FIRSTHDR() for accessing ancillary data.

Well, it fixes the build. But now the program segfaults.

Aug 24 2019, 5:13 PM
asomers added a comment to D21405: ping: raise WARNS level to 6.

The build fails on sparc64 and powerpcspe with this error. Weirdly, it passed on powerpc and powerpc64; I don't know why:

/home/asomers/freebsd/base/head/sbin/ping/ping.c: In function 'main':
/home/asomers/freebsd/base/head/sbin/ping/ping.c:923: warning: cast increases required alignment of target type
Aug 24 2019, 3:16 PM
D21377: ping: merge ping6 to ping now requires changes to proceed.

You still need to add entries to UPDATING and ObsoleteFiles.inc. Other than that, it looks good.

Aug 24 2019, 3:13 PM

Aug 23 2019

asomers committed rS351440: ping: Fix alignment errors.
ping: Fix alignment errors
Aug 23 2019, 10:04 PM
asomers closed D21327: ping: fix alignment errors.
Aug 23 2019, 10:04 PM
D21327: ping: fix alignment errors is now accepted and ready to land.
Aug 23 2019, 10:02 PM
asomers added inline comments to D21377: ping: merge ping6 to ping.
Aug 23 2019, 8:42 PM
asomers added a comment to D21327: ping: fix alignment errors.

This revision needs to be rebased since the changes to -n and -H.

Aug 23 2019, 8:28 PM
asomers added a comment to D21377: ping: merge ping6 to ping.
In D21377#465322, @sucanjan_gmail.com wrote:

It will take me some time to find out why. On my system it builds. Could you please send me your main.c? It's interesting that there are double definitions of the functions.

Aug 23 2019, 7:44 PM
asomers added a comment to D21377: ping: merge ping6 to ping.

Now it doesn't even build:

/usr/home/somers/freebsd/base/head/sbin/ping/main.c:249:1: error: redefinition
      of 'main'
main(int argc, char *argv[])
^
/usr/home/somers/freebsd/base/head/sbin/ping/main.c:59:1: note: previous
      definition is here
main(int argc, char *argv[])
^
/usr/home/somers/freebsd/base/head/sbin/ping/main.c:331:1: error: redefinition
      of 'usage'
usage(void)
^
/usr/home/somers/freebsd/base/head/sbin/ping/main.c:141:1: note: previous
      definition is here
usage(void)
^
2 errors generated.
Aug 23 2019, 7:11 PM
asomers added inline comments to D21377: ping: merge ping6 to ping.
Aug 23 2019, 5:46 PM
asomers added a comment to D21377: ping: merge ping6 to ping.

Oh, and you need to update rescue/rescue/Makefile, too.

Aug 23 2019, 4:35 PM
D21327: ping: fix alignment errors now requires changes to proceed.
Aug 23 2019, 4:27 PM
D21377: ping: merge ping6 to ping now requires changes to proceed.

Don't forget to add an entry to UPDATING and to ObsoleteFiles.inc

Aug 23 2019, 4:25 PM
asomers committed rS351424: ping: fix include guard symbol name to reflect the header file name.
ping: fix include guard symbol name to reflect the header file name
Aug 23 2019, 3:24 PM
asomers closed D21374: ping: fix include guard symbol name to reflect the header file name.
Aug 23 2019, 3:24 PM
D21374: ping: fix include guard symbol name to reflect the header file name is now accepted and ready to land.
Aug 23 2019, 3:23 PM
asomers committed rS351423: ping6: Rename options for better consistency with ping.
ping6: Rename options for better consistency with ping
Aug 23 2019, 3:22 PM
Herald added a reviewer for D21345: ping6: Rename options for unifying option parsing with ping: manpages.
Aug 23 2019, 3:22 PM
asomers added a comment to D21345: ping6: Rename options for unifying option parsing with ping.

One more thing: you should normally add an entry in UPDATING letting people know that the options have changed so they can update their scripts. I'll go ahead and write it this time.

Aug 23 2019, 3:20 PM
D21345: ping6: Rename options for unifying option parsing with ping is now accepted and ready to land.
Aug 23 2019, 3:16 PM

Aug 22 2019

D21367: Fix the build with WITHOUT_GOOGLETEST is now accepted and ready to land.
Aug 22 2019, 7:02 PM
Herald added a reviewer for D21364: ping: do numeric-only output by default: manpages.
Aug 22 2019, 6:57 PM
asomers committed rS351398: ping: By default, don't reverse lookup IP addresses.
ping: By default, don't reverse lookup IP addresses
Aug 22 2019, 6:57 PM
D21364: ping: do numeric-only output by default is now accepted and ready to land.
Aug 22 2019, 6:53 PM
D21364: ping: do numeric-only output by default now requires changes to proceed.
Aug 22 2019, 3:34 PM
asomers committed rS351394: ping6: add a basic functional test.
ping6: add a basic functional test
Aug 22 2019, 3:08 PM
asomers closed D21292: ping6: add a basic test of ping6's functionality.
Aug 22 2019, 3:08 PM
D21292: ping6: add a basic test of ping6's functionality is now accepted and ready to land.

Uhh, the requirement would be that I need to read the entire review, not just the most recent commit.

Aug 22 2019, 3:05 PM
asomers committed rS351393: ping: add a basic functional test.
ping: add a basic functional test
Aug 22 2019, 3:00 PM
asomers closed D21289: ping: add a basic test of ping's functionality.
Aug 22 2019, 3:00 PM
D21289: ping: add a basic test of ping's functionality is now accepted and ready to land.
Aug 22 2019, 2:58 PM
D21292: ping6: add a basic test of ping6's functionality now requires changes to proceed.

Please add a copyright header with a $FreeBSD$ tag to the top of ping6_test.sh. Also, add an entry to etc/mtree/BSD.tests.dist.

Aug 22 2019, 2:21 PM
D21289: ping: add a basic test of ping's functionality now requires changes to proceed.

Please add a copyright header with a $FreeBSD$ tag to the top of ping_test.sh

Aug 22 2019, 2:18 PM
D21289: ping: add a basic test of ping's functionality is now accepted and ready to land.
Aug 22 2019, 2:13 PM
asomers added a comment to D21351: ping: do reverse DNS lookup for a reply by default.
In D21351#464706, @cem wrote:

Hm, I'm not sure I like this being the new default. I guess Linux does it, but there are or used to be many networks where reverse DNS was totally broken (as in, silently dropped). It is nice that ping is mostly a test of IP (ICMP) and not the higher level UDP/TCP protocols DNS uses.

Is there a very short timeout on rDNS lookup failure or on broken networks will ping just hang for 30 seconds at a time?

Aug 22 2019, 12:21 AM

Aug 21 2019

asomers committed rS351354: ping: add -H option for enabling reverse DNS lookup.
ping: add -H option for enabling reverse DNS lookup
Aug 21 2019, 9:05 PM
Herald added a reviewer for D21356: ping: add -H option for enabling reverse DNS lookup: manpages.
Aug 21 2019, 9:05 PM
D21356: ping: add -H option for enabling reverse DNS lookup is now accepted and ready to land.

I'm going to reword the man page entry a bit. Other than that, this change looks good.

Aug 21 2019, 9:02 PM
asomers added a comment to D21292: ping6: add a basic test of ping6's functionality.
In D21292#464559, @sucanjan_gmail.com wrote:

Yes, the TTL will be filtered out. Both ping and ping6 tests will be sending only one packet.

I think it would be good to add -t 1 (timeout in seconds) for one packet just to be sure that the test case will not wait for the reply forever (I don't know if ATF has some timeout).

Aug 21 2019, 8:39 PM
asomers added inline comments to D21327: ping: fix alignment errors.
Aug 21 2019, 8:38 PM
asomers committed rS351330: ping: do reverse DNS lookup of the target address.
ping: do reverse DNS lookup of the target address
Aug 21 2019, 2:52 PM
asomers closed D21351: ping: do reverse DNS lookup for a reply by default.
Aug 21 2019, 2:52 PM
D21351: ping: do reverse DNS lookup for a reply by default is now accepted and ready to land.
Aug 21 2019, 2:51 PM
asomers added a comment to D21338: ping6: make lookup of symbolic names in the reply default.

I would recommend leaving -H in. Even though it's the default, defaults change. Script authors don't like to rely on defaults; they like to specify exactly the behavior that they want.

Aug 21 2019, 2:48 PM
asomers added inline comments to D21327: ping: fix alignment errors.
Aug 21 2019, 2:35 PM
asomers added a comment to D21292: ping6: add a basic test of ping6's functionality.

This looks mostly good, but I have two concerns:

  1. Should you filter out hop limit the same way you filtered out ttl from the ping tests?
  2. The test case takes more than 2 seconds to run. That doesn't sound like much, but it adds up over more than 7000 tests. I suggest reducing the packet count to 1. If you also want to test > 1 packet, then you can add a second test case that requires root privileges and uses -i to reduce the wait.
Aug 21 2019, 2:26 PM
asomers added a comment to D21289: ping: add a basic test of ping's functionality.

This needs a rebase now.

Aug 21 2019, 2:20 PM

Aug 20 2019

asomers committed rS351318: ping: Add tests of the Internet checksum function.
ping: Add tests of the Internet checksum function
Aug 20 2019, 10:00 PM
asomers closed D21340: ping: add tests of the Internet checksum function.
Aug 20 2019, 10:00 PM
D21340: ping: add tests of the Internet checksum function is now accepted and ready to land.
Aug 20 2019, 9:58 PM
asomers added a comment to D21338: ping6: make lookup of symbolic names in the reply default.
In D21338#464272, @sucanjan_gmail.com wrote:

I'm not sure if I understand you correctly.

This is ping's use of F_NUMERIC flag in pr_addr():

	if (options & F_NUMERIC)
		return inet_ntoa(ina);

	hp = cap_gethostbyaddr(capdns, (char *)&ina, 4, AF_INET);

	if (hp == NULL)
		return inet_ntoa(ina);

	(void)snprintf(buf, sizeof(buf), "%s (%s)", hp->h_name,
	    inet_ntoa(ina));
	return(buf);

and this is ping6's use of F_HOSTNAME in pr_addr():

	if ((options & F_HOSTNAME) == 0)
		flag |= NI_NUMERICHOST;

	if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0,
		flag) == 0)
		return (buf);
	else
		return "?";
Aug 20 2019, 6:35 PM
asomers added inline comments to D21340: ping: add tests of the Internet checksum function.
Aug 20 2019, 5:03 PM
D21345: ping6: Rename options for unifying option parsing with ping now requires changes to proceed.
Aug 20 2019, 4:56 PM
asomers added inline comments to D21340: ping: add tests of the Internet checksum function.
Aug 20 2019, 4:31 PM
asomers added a comment to D21338: ping6: make lookup of symbolic names in the reply default.

ping doesn't do reverse lookup. So doesn't this change actually increase the differences between the utilities? I think a better change would be to implement -H for ping.

Aug 20 2019, 4:30 PM
asomers added inline comments to D21327: ping: fix alignment errors.
Aug 20 2019, 4:17 PM
D21340: ping: add tests of the Internet checksum function now requires changes to proceed.

Don't forget to add an entry to etc/mtree/BSD.tests.dist

Aug 20 2019, 3:49 PM
asomers added inline comments to D21289: ping: add a basic test of ping's functionality.
Aug 20 2019, 3:31 PM
asomers added inline comments to D21289: ping: add a basic test of ping's functionality.
Aug 20 2019, 3:25 PM
asomers added a comment to D21289: ping: add a basic test of ping's functionality.

This test is certainly better than nothing. I wish we had something better, but I can't come up with a superior test myself. I'll accept this in lieu of something perfect.

Aug 20 2019, 1:52 AM

Aug 19 2019

asomers added a comment to D21327: ping: fix alignment errors.

That's the whole of the compiler's error output. If you want to reproduce it locally, you should be able to do it with env ARCH=powerpc TARGET_ARCH=powerpc make buildworld. I recommend adding -DNO_CLEAN if you do it more than once. And don't forget the appropriate -j X, or you'll be waiting all day.

Aug 19 2019, 7:32 PM
asomers added a comment to D21327: ping: fix alignment errors.

This change breaks the build on powerpc, powerpc64, and sparc64:

Aug 19 2019, 6:57 PM
asomers closed D21322: ping: fix uninitialized variable warnings when MK_CASPER=no.
Aug 19 2019, 5:54 PM
asomers committed rS351226: Fix uninitialized variable warnings when MK_CASPER=no.
Fix uninitialized variable warnings when MK_CASPER=no
Aug 19 2019, 5:54 PM
D21322: ping: fix uninitialized variable warnings when MK_CASPER=no is now accepted and ready to land.
Aug 19 2019, 5:52 PM
asomers closed D21325: ping: increase buffer size for the string representation of n_time.
Aug 19 2019, 5:28 PM
asomers committed rS351223: ping: fix -Wformat-truncating warning with GCC.
ping: fix -Wformat-truncating warning with GCC
Aug 19 2019, 5:28 PM
D21325: ping: increase buffer size for the string representation of n_time is now accepted and ready to land.
Aug 19 2019, 5:26 PM
asomers committed rS351216: ping6: revert r350857.
ping6: revert r350857
Aug 19 2019, 2:20 PM
asomers closed D21319: ping6: Fix insufficient privileges bug introduced by r350857.
Aug 19 2019, 2:20 PM
D21319: ping6: Fix insufficient privileges bug introduced by r350857 is now accepted and ready to land.
Aug 19 2019, 2:20 PM
asomers added a comment to D21289: ping: add a basic test of ping's functionality.
In D21289#463535, @sucanjan_gmail.com wrote:

It seems that that are far more variable parts in the output than I thought. I think the exact ttl value and ordering of responses cannot be relied on either. Is it OK having a test like this with all of that numeric information filetered out?

Aug 19 2019, 2:10 PM
asomers committed rS351203: periodic: replace "tty" with "test -t 0".
periodic: replace "tty" with "test -t 0"
Aug 19 2019, 1:14 AM
asomers closed D21318: periodic: replace "tty" with "test -t 0".
Aug 19 2019, 1:14 AM
asomers added a comment to D21292: ping6: add a basic test of ping6's functionality.
In D21292#463402, @sucanjan_gmail.com wrote:

Could I use getaddrinfo command for that? Like this:

if getaddrinfo -f inet6 localhost 1>/dev/null 2>&1; then
    atf_add_test_case ping6_c3
Aug 19 2019, 12:01 AM

Aug 18 2019

asomers added a comment to D21319: ping6: Fix insufficient privileges bug introduced by r350857.

Is this a full revocation of r350857?

Aug 18 2019, 11:54 PM
asomers added a comment to D21318: periodic: replace "tty" with "test -t 0".

Remove debugging detritus

Aug 18 2019, 11:49 PM
asomers added inline comments to D21318: periodic: replace "tty" with "test -t 0".
Aug 18 2019, 11:49 PM