Modify

Opened 5 years ago

Closed 5 years ago

#12552 closed defect (fixed)

Current trunk cannot load af_key.ko due to missing symbols

Reported by: mikejuni@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

The following symbols are reported missing during insmod af_key, causing IPSEC vpn stop working in R34432 (immediately after upgrading to kernel 3.6.8 for AR71XX platform on WNDR3700.

Dec  1 08:06:13 manami kern.warn kernel: [  319.370000] af_key: Unknown symbol xfrm_count_enc_supported (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.370000] af_key: Unknown symbol xfrm_calg_get_byid (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.380000] af_key: Unknown symbol xfrm_count_auth_supported (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.390000] af_key: Unknown symbol xfrm_ealg_get_byname (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.390000] af_key: Unknown symbol xfrm_aalg_get_byname (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.400000] af_key: Unknown symbol xfrm_aalg_get_byid (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.410000] af_key: Unknown symbol xfrm_ealg_get_byid (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.410000] af_key: Unknown symbol xfrm_ealg_get_byidx (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.420000] af_key: Unknown symbol xfrm_calg_get_byname (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.430000] af_key: Unknown symbol xfrm_probe_algs (err 0)
Dec  1 08:06:13 manami kern.warn kernel: [  319.440000] af_key: Unknown symbol xfrm_aalg_get_byidx (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.310000] af_key: Unknown symbol xfrm_count_enc_supported (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.320000] af_key: Unknown symbol xfrm_calg_get_byid (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.330000] af_key: Unknown symbol xfrm_count_auth_supported (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.330000] af_key: Unknown symbol xfrm_ealg_get_byname (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.340000] af_key: Unknown symbol xfrm_aalg_get_byname (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.350000] af_key: Unknown symbol xfrm_aalg_get_byid (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.350000] af_key: Unknown symbol xfrm_ealg_get_byid (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.360000] af_key: Unknown symbol xfrm_ealg_get_byidx (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.370000] af_key: Unknown symbol xfrm_calg_get_byname (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.370000] af_key: Unknown symbol xfrm_probe_algs (err 0)
Dec  1 08:06:26 manami kern.warn kernel: [  332.380000] af_key: Unknown symbol xfrm_aalg_get_byidx (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.070000] af_key: Unknown symbol xfrm_count_enc_supported (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.080000] af_key: Unknown symbol xfrm_calg_get_byid (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.090000] af_key: Unknown symbol xfrm_count_auth_supported (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.090000] af_key: Unknown symbol xfrm_ealg_get_byname (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.100000] af_key: Unknown symbol xfrm_aalg_get_byname (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.110000] af_key: Unknown symbol xfrm_aalg_get_byid (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.110000] af_key: Unknown symbol xfrm_ealg_get_byid (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.120000] af_key: Unknown symbol xfrm_ealg_get_byidx (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.130000] af_key: Unknown symbol xfrm_calg_get_byname (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.130000] af_key: Unknown symbol xfrm_probe_algs (err 0)
Dec  1 08:06:30 manami kern.warn kernel: [  336.140000] af_key: Unknown symbol xfrm_aalg_get_byidx (err 0)

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by mikejuni@…

Updated for today's build with the following missing symbols in Kernel:

[   53.550000] af_key: Unknown symbol xfrm_count_enc_supported (err 0)
[   53.560000] af_key: Unknown symbol xfrm_calg_get_byid (err 0)
[   53.560000] af_key: Unknown symbol xfrm_count_auth_supported (err 0)
[   53.570000] af_key: Unknown symbol xfrm_ealg_get_byname (err 0)
[   53.580000] af_key: Unknown symbol xfrm_aalg_get_byname (err 0)
[   53.580000] af_key: Unknown symbol xfrm_aalg_get_byid (err 0)
[   53.590000] af_key: Unknown symbol xfrm_ealg_get_byid (err 0)
[   53.590000] af_key: Unknown symbol xfrm_ealg_get_byidx (err 0)
[   53.600000] af_key: Unknown symbol xfrm_calg_get_byname (err 0)
[   53.610000] af_key: Unknown symbol xfrm_probe_algs (err 0)
[   53.610000] af_key: Unknown symbol xfrm_aalg_get_byidx (err 0)
[   53.690000] xfrm_ipcomp: Unknown symbol xfrm_calg_get_byname (err 0)
[   53.700000] xfrm_user: Unknown symbol xfrm_aead_get_byname (err 0)
[   53.710000] xfrm_user: Unknown symbol xfrm_ealg_get_byname (err 0)
[   53.720000] xfrm_user: Unknown symbol xfrm_aalg_get_byname (err 0)
[   53.720000] xfrm_user: Unknown symbol xfrm_calg_get_byname (err 0)

In R34468

comment:2 Changed 5 years ago by mikejuni@…

Ok, checked kernel sources and it seems like the xfrm_user.ko is now splitted into xfrm_user.ko and xfrm_algo.ko

The makefile need to include "xfrm_algo.ko" as a dependency for xfrm_user.ko to load.

comment:3 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r34611

comment:4 Changed 5 years ago by Anton van Bohemen <avbohemen@…>

Can this bug be reopened? In my current build (r35025) I am able to load af_key afterwards, but it is not loaded at boot time, and I still see these messages in the kernel log:

[   13.180000] af_key: Unknown symbol xfrm_count_enc_supported (err 0)
[   13.190000] af_key: Unknown symbol xfrm_calg_get_byid (err 0)
[   13.190000] af_key: Unknown symbol xfrm_count_auth_supported (err 0)
[   13.200000] af_key: Unknown symbol xfrm_ealg_get_byname (err 0)
[   13.200000] af_key: Unknown symbol xfrm_aalg_get_byname (err 0)
[   13.210000] af_key: Unknown symbol xfrm_aalg_get_byid (err 0)
[   13.220000] af_key: Unknown symbol xfrm_ealg_get_byid (err 0)
[   13.220000] af_key: Unknown symbol xfrm_ealg_get_byidx (err 0)
[   13.230000] af_key: Unknown symbol xfrm_calg_get_byname (err 0)
[   13.230000] af_key: Unknown symbol xfrm_probe_algs (err 0)
[   13.240000] af_key: Unknown symbol xfrm_aalg_get_byidx (err 0)
[   13.250000] xfrm_ipcomp: Unknown symbol xfrm_calg_get_byname (err 0)
[   13.330000] Initializing XFRM netlink socket
[   13.470000] PPP generic driver version 2.4.2
[   13.550000] tun: Universal TUN/TAP device driver, 1.6
[   13.560000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.900000] ipcomp: Unknown symbol ipcomp_input (err 0)
[   13.900000] ipcomp: Unknown symbol ipcomp_destroy (err 0)
[   13.910000] ipcomp: Unknown symbol ipcomp_output (err 0)
[   13.910000] ipcomp: Unknown symbol ipcomp_init_state (err 0)
[   13.930000] l2tp_core: L2TP core driver, V2.0
[   13.950000] l2tp_netlink: L2TP netlink interface

After my router is booted, I can manually do "insmod af_key; insmod xfrm_ipcomp; insmod xfrm_algo; insmod xfrm_user" (from /etc/modules.d/30-ipsec):

[  251.160000] NET: Registered protocol family 15

and then my ipsec vpn works (xl2tpd/racoon), but it does not work right from the start at boot time.

comment:5 Changed 5 years ago by Anton van Bohemen <avbohemen@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:6 Changed 5 years ago by Anton van Bohemen <avbohemen@…>

According to https://forum.openwrt.org/viewtopic.php?pid=187591#p187591 the order in /etc/modules.d/30-ipsec should be changed from

af_key
xfrm_ipcomp
xfrm_algo
xfrm_user

to:

xfrm_algo
xfrm_ipcomp
xfrm_user
af_key

because of af_key and xfrm_ipcomp depending on xfrm_algo. This indeed fixes the problem according to my kernel log, no more unknown symbols.

comment:7 Changed 5 years ago by jow

  • Resolution set to fixed
  • Status changed from reopened to closed

Changed in r35032, thanks!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.