Re: fusefs-kmod does not work on 8-STABLE?
On Mon, Apr 15, 2013 at 10:41:36PM -0400, Ryan Stone wrote: > On Fri, Apr 12, 2013 at 10:28 AM, Alexey Dokuchaev wrote: > > I've found the culprit: the problem is in this command of the build: > > > > ld -Bshareable -d -warn-common -o hello.ko.debug hello.kld > > > > I had put /usr/local/bin in my $PATH before /usr/bin for a reason I don't > > currently recall, and have binutils-2.23.1 installed. As a result, ld(1) > > in the quoted line above was called from /usr/local/bin/ld, [...] > > Is this for i386? When compiling modules with newer versions of ld I had > to add the following flags to the ld invocation to get the module to work: Yes, this is for i386. > -u __start_set_sysinit_set -u __start_set_sysuninit_set \ > -u __start_set_sysctl_set -u __start_set_modmetadata_set \ > -u __stop_set_sysinit_set -u __stop_set_sysuninit_set \ > -u __stop_set_sysctl_set -u __stop_set_modmetadata_set Hmm. Adding these does help, indeed. How did you come up with this list? Is it documented anywhere, or just the result of careful readelf/objdump examination? Thanks! ./danfe ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
[releng_9 tinderbox] failure on i386/i386
TB --- 2013-04-15 20:55:22 - tinderbox 2.10 running on freebsd-stable.sentex.ca TB --- 2013-04-15 20:55:22 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtan...@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2013-04-15 20:55:22 - starting RELENG_9 tinderbox run for i386/i386 TB --- 2013-04-15 20:55:22 - cleaning the object tree TB --- 2013-04-15 20:55:22 - /usr/local/bin/svn stat /src TB --- 2013-04-15 20:55:27 - At svn revision 249526 TB --- 2013-04-15 20:55:28 - building world TB --- 2013-04-15 20:55:28 - CROSS_BUILD_TESTING=YES TB --- 2013-04-15 20:55:28 - MAKEOBJDIRPREFIX=/obj TB --- 2013-04-15 20:55:28 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-04-15 20:55:28 - SRCCONF=/dev/null TB --- 2013-04-15 20:55:28 - TARGET=i386 TB --- 2013-04-15 20:55:28 - TARGET_ARCH=i386 TB --- 2013-04-15 20:55:28 - TZ=UTC TB --- 2013-04-15 20:55:28 - __MAKE_CONF=/dev/null TB --- 2013-04-15 20:55:28 - cd /src TB --- 2013-04-15 20:55:28 - /usr/bin/make -B buildworld >>> World build started on Mon Apr 15 20:55:30 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Mon Apr 15 23:49:22 UTC 2013 TB --- 2013-04-15 23:49:22 - generating LINT kernel config TB --- 2013-04-15 23:49:22 - cd /src/sys/i386/conf TB --- 2013-04-15 23:49:22 - /usr/bin/make -B LINT TB --- 2013-04-15 23:49:22 - cd /src/sys/i386/conf TB --- 2013-04-15 23:49:22 - /usr/sbin/config -m LINT TB --- 2013-04-15 23:49:22 - building LINT kernel TB --- 2013-04-15 23:49:22 - CROSS_BUILD_TESTING=YES TB --- 2013-04-15 23:49:22 - MAKEOBJDIRPREFIX=/obj TB --- 2013-04-15 23:49:22 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-04-15 23:49:22 - SRCCONF=/dev/null TB --- 2013-04-15 23:49:22 - TARGET=i386 TB --- 2013-04-15 23:49:22 - TARGET_ARCH=i386 TB --- 2013-04-15 23:49:22 - TZ=UTC TB --- 2013-04-15 23:49:22 - __MAKE_CONF=/dev/null TB --- 2013-04-15 23:49:22 - cd /src TB --- 2013-04-15 23:49:22 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Apr 15 23:49:22 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT completed on Tue Apr 16 00:30:05 UTC 2013 TB --- 2013-04-16 00:30:05 - cd /src/sys/i386/conf TB --- 2013-04-16 00:30:05 - /usr/sbin/config -m LINT-NOINET TB --- 2013-04-16 00:30:05 - building LINT-NOINET kernel TB --- 2013-04-16 00:30:05 - CROSS_BUILD_TESTING=YES TB --- 2013-04-16 00:30:05 - MAKEOBJDIRPREFIX=/obj TB --- 2013-04-16 00:30:05 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-04-16 00:30:05 - SRCCONF=/dev/null TB --- 2013-04-16 00:30:05 - TARGET=i386 TB --- 2013-04-16 00:30:05 - TARGET_ARCH=i386 TB --- 2013-04-16 00:30:05 - TZ=UTC TB --- 2013-04-16 00:30:05 - __MAKE_CONF=/dev/null TB --- 2013-04-16 00:30:05 - cd /src TB --- 2013-04-16 00:30:05 - /usr/bin/make -B buildkernel KERNCONF=LINT-NOINET >>> Kernel build for LINT-NOINET started on Tue Apr 16 00:30:05 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT-NOINET completed on Tue Apr 16 01:09:49 UTC 2013 TB --- 2013-04-16 01:09:49 - cd /src/sys/i386/conf TB --- 2013-04-16 01:09:49 - /usr/sbin/config -m LINT-NOINET6 TB --- 2013-04-16 01:09:50 - building LINT-NOINET6 kernel TB --- 2013-04-16 01:09:50 - CROSS_BUILD_TESTING=YES TB --- 2013-04-16 01:09:50 - MAKEOBJDIRPREFIX=/obj TB --- 2013-04-16 01:09:50 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-04-16 01:09:50 - SRCCONF=/dev/null TB --- 2013-04-16 01:09:50 - TARGET=i386 TB --- 2013-04-16 01:09:50 - TARGET_ARCH=i386 TB --- 2013-04-16 01:09:50 - TZ=UTC TB --- 2013-04-16 01:09:50 - __MAKE_CONF=/dev/null TB --- 2013-04-16 01:09:50 - cd /src TB --- 2013-04-16 01:09:50 - /usr/bin/make -B buildkernel KERNCONF=LINT-NOINET6 >>> Kernel build for LINT-NOINET6 started on Tue Apr 16 01:09:50 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT-NOINET6 completed on Tue Apr 16 01:50:20 UTC 2013 TB --- 2013-04-16 01:50:20 - cd /src/sys/i386/conf TB --- 2013-04-16 01:50:20 - /usr/sbin/config -m LINT-NOIP TB --- 2013-04-16 01:50:20 - building LINT-NOIP kernel TB --- 2013-04-16 01:50:20 - C
Re: fusefs-kmod does not work on 8-STABLE?
On Fri, Apr 12, 2013 at 10:28 AM, Alexey Dokuchaev wrote: > On Fri, Apr 12, 2013 at 05:17:46PM +0700, Alexey Dokuchaev wrote: > > On Wed, Apr 10, 2013 at 12:27:10PM +0700, Alexey Dokuchaev wrote: > > > I've got puzzled with the fact that fusefs-kmod apparently does not on > > > recent 8-STABLE: it builds and loads, but I don't see normal "fuse4bsd: > > > version 0.3.9-pre1, FUSE ABI 7.19" like I do on 9-STABLE (installed on > the > > > same laptop with almost identical kernel config). > > > > > > The result is that /dev/fuse0 never gets created, and any fuse mount > > > attempt results in this message: > > > > > > fuse: failed to open fuse device: No such file or directory > > > > I've traced the problem down a bit, it seems to be due to some weird > > brokenness of building modules outside the kernel: .ko file loads, but > > modevent() functions apparently does not execute at all. > > I've found the culprit: the problem is in this command of the build: > > ld -Bshareable -d -warn-common -o hello.ko.debug hello.kld > > I had put /usr/local/bin in my $PATH before /usr/bin for a reason I don't > currently recall, and have binutils-2.23.1 installed. As a result, ld(1) > in the quoted line above was called from /usr/local/bin/ld, which brought > in all the weird things I was observing: failure of fusefs-kmod, failure > of simple "hello world" KLD, "link_elf: symbol undefined" messages > when loading snd_hda(4) and nvidia(4) drivers. > > How, does anyone have a clue why new ld(1) plays so badly with our system > toolchain on 8.x (at least)? > > ./danfe > ___ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" > Is this for i386? When compiling modules with newer versions of ld I had to add the following flags to the ld invocation to get the module to work: -u __start_set_sysinit_set -u __start_set_sysuninit_set \ -u __start_set_sysctl_set -u __start_set_modmetadata_set \ -u __stop_set_sysinit_set -u __stop_set_sysuninit_set \ -u __stop_set_sysctl_set -u __stop_set_modmetadata_set ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: kern/165903: mbuf leak
Chris, can you please test attached patch? Jeremy, thanks for cc :) -- Totus tuus, Glebius. Index: if_ether.c === --- if_ether.c (revision 249327) +++ if_ether.c (working copy) @@ -558,13 +558,13 @@ in_arpinput(struct mbuf *m) if (ah->ar_pln != sizeof(struct in_addr)) { log(LOG_NOTICE, "in_arp: requested protocol length != %zu\n", sizeof(struct in_addr)); - return; + goto drop; } if (allow_multicast == 0 && ETHER_IS_MULTICAST(ar_sha(ah))) { log(LOG_NOTICE, "arp: %*D is multicast\n", ifp->if_addrlen, (u_char *)ar_sha(ah), ":"); - return; + goto drop; } op = ntohs(ah->ar_op); ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"