6 msgVIA VT8237R+ chipset
3 msgMFC plans for TSO and VLAN??
2 msgsetenv() patch for POSIX and memory leak
2 msgWITHOUT_PROFILE no longer honored?
1 msgPAT_WRITE_COMBINING: how to use?
1 msg/bin/df strangeness

HEADS UP: KBI breakage for Ethernet modules
\ Yar Tikhiy (29 May 2007)
. \ Scott Long (29 May 2007)
. . \ Yar Tikhiy (29 May 2007)

5 msgCFT: re(4)
2 msgif_iwi: modul not built in CURRENT
9 msgifconfig carp0 destroy = kernel panic
8 msgXorg port problem?
3 msgNo wpa_supplicant control socket at boot
1 msgkldxref: file isn't dynamically-linked - techni...
7 msgmplayer causes panic: page fault
5 msgldd broken for profiling binaries?
5 msgRe: HEADS UP: compat6x
2 msglibgcc_s.so.1 and libstdc++.so.6 are shadowed (...
7 msgpersistent problem with buildworld on -CURRENT
3 msgFreeBSD/xen status
3 msgmpt driver broken for big-endian ?
Subject:HEADS UP: KBI breakage for Ethernet modules
Group:Freebsd-current
From:Yar Tikhiy
Date:29 May 2007


 
On Sun, May 27, 2007 at 03:51:29PM +0400, Yar Tikhiy wrote:
> As discussed earlier on -net, I'd like to commit the following
> patch. It will bring ether_ioctl() into accord with ioctl() WRT
> the type of the command argument. In our ioctl(), command became
> an u_long ages ago, but ether_ioctl() has never been fixed. With
> int and u_long being of different widths on 64-bit arch'es, the
> discrepancy can get us in trouble sooner or later.
>
> In fact, ioctl command coding is very unlikely to change, so it
> will continue to fit in 32 bits. OTOH, the C compiler should be
> uneasy about squeezing u_long into int when ether_ioctl() is called
> from an if_ioctl handler, so this patch will be a little step on
> the way to a warning-free kernel.
>
> This change will inevitably break the kernel interface to network
> modules, so all of them will need rebuilding.

I received several positive replies and no negative ones, so the
change has just been committed. In fact, it breaks KBI on 64-bit
platforms only. (Thanks to Ruslan Ermilov for reminding me about
that.) Many thanks to those folks who encouraged the change.

Now all Ethernet-related kernel modules need to be rebuilt on 64-bit
platforms. The conventional "make buildkernel" procedure will take
care of stock modules, so only 3rd-party modules need some attention.

--
Yar
_______________________________________________
freebsd-current mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe"


© 2004-2008 readlist.com