LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-07-2017, 07:14 AM   #1
vlad-online
LQ Newbie
 
Registered: Aug 2017
Posts: 1

Rep: Reputation: Disabled
Failed to load TUN module


Hi!
I try to run OpenVPN in some device with Linux Embedded.
Finding OS and release version:
Code:
/mnt/flash/etc# cat *release*
ID=axis
NAME=Axis (based on Poky from the Yocto Project)
VERSION=6.15.4 (dizzy)
VERSION_ID=6.15.4
PRETTY_NAME=Axis (based on Poky from the Yocto Project) 6.15.4 (dizzy)
JFFSID="id-68598-6.15.4-65"

uname -a
Linux axis-accc8e68897c 4.1.0 #1 PREEMPT Thu Oct 20 13:03:48 CEST 2016 armv7l GNU/Linux
Unfortunately there are no compiled tun module. So I tried to build it self. I've downloaded YoctoProject Poky distro with 4.1.0 Kernel version. Spending some time, I did it. TUN module loading OK. In dmesg:
Code:
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
But when I try to run configured OpenVPN, I have an error (from dmesg):
Code:
Unable to handle kernel NULL pointer dereference at virtual address 00000098
pgd = 8c004000
[00000098] *pgd=0c0f8831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT ARM
Modules linked in: tun brcmfmac brcmutil datacache(O) dsplog(PO) ambad(PO) ambhdmi(PO) mn34220pl(PO) iav(PO) imgproc(PO) vout(PO) dsp(PO) hw_timer(PO)
CPU: 0 PID: 1282 Comm: openvpn Tainted: P           O    4.1.0 #1
Hardware name: Ambarella S2L (Flattened Device Tree)
task: 8d0c3400 ti: 8f0f0000 task.ti: 8f0f0000
PC is at __dev_get_by_name+0x2c/0x80
LR is at __dev_get_by_name+0x24/0x80
pc : [<802cfb3c>]    lr : [<802cfb34>]    psr: 800d0013
sp : 8f0f1eb8  ip : 00000000  fp : 00000000
r10: 8f02eb80  r9 : 8f0f1ee0  r8 : 8cfad400
r7 : 400454ca  r6 : 00000000  r5 : 8f0f1ee0  r4 : 00000000
r3 : 9e370001  r2 : 00000000  r1 : 00000000  r0 : 00000000
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c53c7d  Table: 0c204059  DAC: 00000015
Process openvpn (pid: 1282, stack limit = 0x8f0f0208)
Stack: (0x8f0f1eb8 to 0x8f0f2000)
1ea0:                                                       00000000 8cfad400
1ec0: 7edb90b8 7f12be64 00000001 8ce86000 ffffff9c 8000f524 8f0f0000 00000000
1ee0: 00000000 00000000 00000000 00000000 00003001 00000000 00000000 00000000
1f00: 8ce86019 8f02eb80 8f02eb80 00000004 00000004 7edb90b8 8f0f0000 8bf77648
1f20: 7edb90b8 800b90b0 00000001 8f02eb88 00000004 8c061d00 00000000 00000000
1f40: 00000400 00000004 8f02eb80 8ce86000 8f02eb88 00000020 00000004 8f02eb80
1f60: 8ce86000 800a8240 00000000 8f02eb80 8f02eb80 400454ca 00000004 7edb90b8
1f80: 8f0f0000 00000000 00000000 800b96a4 01c40f20 7edb90b8 00000004 00000036
1fa0: 8000f524 8000f3a0 01c40f20 7edb90b8 00000004 400454ca 7edb90b8 00000000
1fc0: 01c40f20 7edb90b8 00000004 00000036 000aabf4 000aabf0 76fdb000 00000000
1fe0: 000aa350 7edb90b4 00073f90 76d5de4c 600d0010 00000004 a00cf8cd 49554620
[<802cfb3c>] (__dev_get_by_name) from [<7f12be64>] (tun_chr_ioctl+0x1a4/0xe10 [tun])
[<7f12be64>] (tun_chr_ioctl [tun]) from [<800b90b0>] (do_vfs_ioctl+0x78/0x638)
[<800b90b0>] (do_vfs_ioctl) from [<800b96a4>] (SyS_ioctl+0x34/0x58)
[<800b96a4>] (SyS_ioctl) from [<8000f3a0>] (ret_fast_syscall+0x0/0x3c)
Code: e1a00005 ebf784fa e3a03001 e3493e37 (e5942098) 
---[ end trace cfef6916b6e15082 ]---
What I'm doing wrong? How to solve the problem? Thanks!
 
Old 08-11-2017, 05:10 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think the problem is in the tun module. Are you a programmer? Here's something to look at:http://www.cs.fsu.edu/~cop4610t/lect..._debugging.pdf
 
Old 08-15-2017, 09:49 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It seems like tun's module ioctl crashed. It might have different reasons. How did you add the tun module? Have you recompiled the kernel or you copied the module from another machine or...?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg -- (EE) Failed to load module "glx" (loader failed, 7) windowsrefugeeX Linux - Software 10 09-23-2009 05:51 PM
Failed to load module "ati" (module does not exist, after upgrad from Redhat 3 to 5. perrym8 Red Hat 2 07-24-2007 10:14 AM
xorg: Failed to load module... NullDevice23 Linux - Hardware 4 08-05-2006 09:01 AM
(EE) Failed to load module error Seventh Linux - Newbie 8 02-23-2004 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration