[SOLVED]Broken OpenVPN dependencies in current snapshot(Kernel panic)

Hello!

In current snapshot:

opkg update
opkg install openvpn-openssl
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
 *      kernel (= 4.14.93-1-4dec6cc91a7f997ca8f425dfb00a1bf1) * 
 * opkg_install_cmd: Cannot install package openvpn-openssl.
root@OpenWrt:~# uname -a
Linux OpenWrt 4.14.93 #0 Thu Jan 17 21:07:06 2019 mips GNU/Linux

Tried to use --force-depends

opkg --force-depends install openvpn-openssl

And this is broke the hole system.
System now continiusly rebooting:

[   33.011026] Kernel bug detected[#1]:
[   33.018165] CPU: 0 PID: 1070 Comm: openvpn Not tainted 4.14.93 #0
[   33.030297] task: 8392cb00 task.stack: 82c06000
[   33.039309] $ 0   : 00000000 00000000 81060760 00000000
[   33.049717] $ 4   : 830392a0 00000000 00000000 0000bdea
[   33.060125] $ 8   : 00000000 82ecb305 00000018 00000400
[   33.070531] $12   : 00000370 00000001 00000000 0000000c
[   33.080937] $16   : 8315e2f0 82ecb300 82ecb300 7fa1b9a4
[   33.091344] $20   : 8315e000 82c07e4c 00000000 8315e460
[   33.101753] $24   : 00000008 77f1e314                  
[   33.112161] $28   : 82c06000 82c07d68 8315f8d4 803798a8
[   33.122570] Hi    : 51eb647d
[   33.128293] Lo    : b851cef8
[   33.134039] epc   : 800d4cac kfree+0x7c/0x164
[   33.142712] ra    : 803798a8 kobject_set_name_vargs+0x98/0xc4
[   33.154146] Status: 1100b403 KERNEL EXL IE 
[   33.162479] Cause : 50800024 (ExcCode 09)
[   33.170454] PrId  : 00019650 (MIPS 24KEc)
[   33.178425] Modules linked in: rt2800soc rt2800pci rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00pci rt2x00mmio rt2x00lib pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun eeprom_93cx6
[   33.319058]  leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   33.340054] Process openvpn (pid: 1070, threadinfo=82c06000, task=8392cb00, tls=77f80d98)
[   33.356334] Stack : 00002001 00000000 81096100 8315e2f0 8315e3d0 01400000 7fa1b9a4 803798a8
[   33.372985]         8307741c ffffffeb 00000000 82c07e08 8315e000 8315e3d0 8315e2e8 802001a8
[   33.389635]         8048a7d8 801fffe4 0000000c 00000003 8315e000 82c07dd0 8315e000 802991dc
[   33.406284]         8315e000 80042314 8315e000 00000001 8315e000 8048a7d8 ffff7fff 7fa1b9a4
[   33.422934]         8315e000 8027a844 00000003 00000003 7fa1b984 7fa1b984 80470000 83275d20
[   33.439583]         ...
[   33.444446] Call Trace:
[   33.449310] [<800d4cac>] kfree+0x7c/0x164
[   33.457293] [<803798a8>] kobject_set_name_vargs+0x98/0xc4
[   33.468051] [<802001a8>] dev_set_name+0x24/0x30
[   33.477073] [<802991dc>] netdev_register_kobject+0x58/0x16c
[   33.488171] [<8027a844>] register_netdevice+0x3e4/0x694
[   33.498606] [<8303bdb4>] tun_get_skb_array+0x3b80/0x46fc [tun]
[   33.510222] Code: 30630001  14600002  00000000 <000c000d> 8c430000  7c6303c0  10600003  00000000  10000002 
[   33.529657] 
[   33.532753] ---[ end trace 720ae6462467bb32 ]---
[   33.544404] Kernel panic - not syncing: Fatal exception
[   33.555962] Rebooting in 3 seconds..

boot.log

I created bug report

Why is it a bug that you forced the installation of a non-compatible module and it crashes as a result?

3 Likes

The snapshot you installed yesterday is no longer "current", and is incompatible with today's "current" snapshot; you cannot install kernel modules across incompatible snapshots.

Now Sat, 19 Jan 2019 +000 21:13

I checkout latest snapshot.

cd openwrt
git log --format="%cD - %h"
Sat, 19 Jan 2019 14:32:12 +0100 - e6bcf1e4ac

Built and flashed!

/etc/banner

Result is the same:

opkg install openvpn-openssl
Installing openvpn-openssl (2.4.6-3) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/openvpn-openssl_2.4.6-3_mipsel_24kc.ipk
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
* &#160;&#160;&#160;&#160;&#160;kernel (= 4.14.93-1-4dec6cc91a7f997ca8f425dfb00a1bf1)
* opkg_install_cmd: Cannot install package openvpn-openssl.

The snapshot you installed yesterday is no longer "current", and is incompatible with today's "current" snapshot;

So, how can I get today's dependencies for 100% current snapshot?

Why is it a bug that you forced the installation of a non-compatible module and it crashes as a result?

Ok, broken system in this case is not a bug, but.
If I can not install openvpn package in current snapshot, this is not a bug?

If you compile OpenWrt yourself you also must compile all kernel modules you need yourself.

Kernel modules in the online package repository will generally not be ABI compatible to self-compiled OpenWrt builds unless you build your system with all kmods from all feeds enabled.

Thank you for your answer.
But could you be more specific please

Which module I need in this case?
I see only incompatible version of kernels installed in the system and openvpn requires.

You need kmod-tun. The question is, when you build OpenWrt yourself, why don't you compile openvpn into your image? It will be more space efficient in this case and auto-select all required kmods as well.

@oslyak - backing up a bit here...

Is there a reason that you have decided to work with snapshot builds instead of an official release build latest 18.06.1)? This will be far more reliable I’d you just want to install OpenVPN and maybe other packages without having to compile (and sometimes fix) the dependencies and packages.

Is there a reason that you have decided to work with snapshot builds instead of an official release build latest 18.06.1)

Because support of my device was added a few hours ago.

Fair enough! :smiley:

I built kmod-tun into the kernel and it solved the problem.
Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.