Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381613 - stabilize net-firewall/ipset-4.5, net-firewall/ipset-6.8, net-libs/libmnl-1.0.1
Summary: stabilize net-firewall/ipset-4.5, net-firewall/ipset-6.8, net-libs/libmnl-1.0.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: All Linux
: Highest enhancement (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2011-09-02 19:20 UTC by Peter Volkov (RETIRED)
Modified: 2011-09-16 13:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
"make tests" fail (out,24.59 KB, text/plain)
2011-09-06 16:41 UTC, Tomáš "tpruzina" Pružina (amd64 [ex]AT)
Details
ipset-6.8 on 2.6.39-r3 USE=modules (ipset-6.8.txt,37.29 KB, text/plain)
2011-09-14 19:17 UTC, Andreas Schürch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2011-09-02 19:20:02 UTC
Arch teams, please, stabilize net-firewall/ipset-4.5, net-firewall/ipset-6.8. Thank you in advance.
Comment 1 Agostino Sarubbo gentoo-dev 2011-09-03 10:04:59 UTC
Added net-libs/libmnl-1.0.1 in the summary because is pulled in.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2011-09-04 16:17:34 UTC
amd64:

yes it requires net-libs/libmnl-1.0.1 for net-firewall/ipset-6.8
net-firewall/ipset-4.5 all ok.
net-firewall/ipset-6.8 appears premature.  On emerging; yields

 *  # patch -i /mnt/gen2/tmpdir/portage/net-firewall/ipset-6.8/work/ipset-6.8/netlink.patch -p1

This is against a stable 2.6.38 * 38 kernel.  To test, emerged in gentoo testing 
against a kernel-3.0.0, which emerged ok.  It would appear that the ipset-6.8 requires not only libmnl-1.0.1
to be stabalised along with it but the kernel-3. aswell
Comment 3 Tomáš "tpruzina" Pružina (amd64 [ex]AT) 2011-09-06 16:41:12 UTC
Created attachment 285711 [details]
"make tests" fail

Archtested amd64 (mixed tree, stable kernel .39 & iptables).
Everything seems fine (emerge, basic usage), however "make tests" is failing.
Comment 4 Tomáš "tpruzina" Pružina (amd64 [ex]AT) 2011-09-07 06:48:15 UTC
(In reply to comment #3)
> Created attachment 285711 [details]
> "make tests" fail
> 
> Archtested amd64 (mixed tree, stable kernel .39 & iptables).
> Everything seems fine (emerge, basic usage), however "make tests" is failing.

Forgot to state that I tested both versions and failing one was 6.8
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2011-09-07 09:15:00 UTC
(In reply to comment #3)
> Everything seems fine (emerge, basic usage), however "make tests" is failing.

Peter, please confirm whether this is a regression or not. If not, I am happy to keyword. If it is, please address and revbump. Thank you.
Comment 6 Andreas Schürch gentoo-dev 2011-09-13 17:21:47 UTC
I get no failing tests here on x86! 

xtables-addons from bug 381611 depens on libmnl-1.0.1...

One thing for ipset:
ipset-6.8 errors out with: "There is IP_SET support in your kernel. Please build ipset with modules USE flag disabled or you may have troubles loading correct modules."

And if i just unset IP_SET within the kernel 2.6.39-gentoo-r3 i get the messages below and am not able to load all modules... This also present in older versions (4.4/4.5), if IP_SET is NOT set in kernel! If it is set, it seems ok/loads.


WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_list_set.ko needs unknown symbol ip_set_add
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_list_set.ko needs unknown symbol ip_set_test
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_list_set.ko needs unknown symbol ip_set_name_byindex
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_list_set.ko needs unknown symbol ip_set_del
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_list_set.ko needs unknown symbol ip_set_type_register
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_list_set.ko needs unknown symbol ip_set_type_unregister
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_hostmask_map
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_get_ip6_port
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_get_ipaddr6
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_get_ipaddr4
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_alloc
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_type_register
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_get_ip4_port
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_type_unregister
WARNING: //lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko needs unknown symbol ip_set_free
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2011-09-14 09:12:02 UTC
Well, I think it's Ok to stabilize this even if tests fail. Actually ipset are really too binded to kernel and this makes impossible to test all configurations. For me it fails even more with 3.0.4 kernel and although I'm going to work with upstream on this issue it's still good package to have stable (and it works in production). Probably I need to discuss if it's good idea to use kernel modules even for kernels with ipset modules in them.


Andreas, your depmod-failures are expected. It looks like although you rebuilt kernel without IPSET support there are previously built modules inside /lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset. What happens if you clear /lib/modules/2.6.39-gentoo-r3/ (or just /lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/ipset) and then rebuild kernel and ipset (or probably only ipset)? 

So, arch teams, please, stabilize even if there are some test failures. Still I am interested in kernel versions and configurations you've tested with, thus, please, attach them here. Tnx.
Comment 8 Andreas Schürch gentoo-dev 2011-09-14 19:17:03 UTC
Created attachment 286457 [details]
ipset-6.8 on 2.6.39-r3 USE=modules

hmm... :-/
Comment 9 David J Cozatt 2011-09-15 00:27:23 UTC
http://netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-4.html
quote

4.3 NETLINK patch

This patch by Gianni Tedesco <gianni@ecsc.co.uk> adds a new target that allows you to send dropped packets to userspace via a netlink socket.

For example, if you want to drop all pings and send them to a userland netlink socket instead, you can do as follows :

 # iptables -A INPUT -p icmp --icmp-type echo-request -j NETLINK --nldrop

# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
NETLINK    icmp --  anywhere             anywhere           icmp echo-request nldrop 
Supported options for the NETLINK target are :

--nldrop
-> Drop the packet too

--nlmark <number>
-> Mark the packet

--nlsize <bytes>
-> Limit packet size

For more information on netlink sockets, you can refer to the Netlink Sockets Tour.
/quote
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2011-09-15 06:52:17 UTC
(In reply to comment #8)
> Created attachment 286457 [details]
> ipset-6.8 on 2.6.39-r3 USE=modules
> 
> hmm... :-/

Remove modules installed by xtables_addons. There problem with your system is that you have same modules from different sources and this will never work as it should.
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2011-09-15 06:53:42 UTC
David, I guess you've posted to the wrong bug. Please don't forget to update correct one :)
Comment 12 Andreas Schürch gentoo-dev 2011-09-15 09:48:00 UTC
(In reply to comment #10)
> Remove modules installed by xtables_addons. There problem with your system is
> that you have same modules from different sources and this will never work as
> it should.

You are right, there was something still around (from xtables-addons i suppose, even it was emerge -C ed). I now rm'd my /lib/modules/* and rebuilt the kernel. Now it is working properly! :-)

I made the depend on bug 381611 because of net-libs/libmnl-1.0..1, which is also needed for xtables-addons! This is just to keep the right order of stablization bugs...
If you read the comment #2 on bug 382499, then one has to set some inter-dependency, otherwise the work for libmnl would be done twice! :-/ 
The nicest thing would be a separate bug for libmnl i think...


x86 stable, thanks!
Comment 13 Tony Vroon (RETIRED) gentoo-dev 2011-09-16 13:26:27 UTC
+  16 Sep 2011; Tony Vroon <chainsaw@gentoo.org> libmnl-1.0.1.ebuild:
+  Marked stable on AMD64 based on arch testing by Ian "idella4" Delaney &
+  Tomáš "Mepho" Pružina in bug #381613.

+  16 Sep 2011; Tony Vroon <chainsaw@gentoo.org> ipset-4.5.ebuild,
+  ipset-6.8.ebuild:
+  Marked stable on AMD64 based on arch testing by Ian "idella4" Delaney &
+  Tomáš "Mepho" Pružina in bug #381613.

Last arch, closing report.