Development discussion of WireGuard
 help / color / mirror / Atom feed
* new bug on armhf
@ 2017-11-20 19:34 Роман Гаврилов
  2017-11-21  9:34 ` Ivan Labáth
  2017-11-21 10:04 ` Jason A. Donenfeld
  0 siblings, 2 replies; 7+ messages in thread
From: Роман Гаврилов @ 2017-11-20 19:34 UTC (permalink / raw)
  To: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 2420 bytes --]

Hello!

I have new bug on armhf.

____________________________________________________________

build from:
https://git.zx2c4.com/WireGuard/commit/?id=82cacee3511e5c2f624203487124e5ba0151c84d

____________________________________________________________

software:
Ubuntu Xenial 16.04

hardware:
PC: Orange Pi Plus 2E
SOC: Allwinner H3

____________________________________________________________
cat /proc/cpuinfo
processor    : 0
model name    : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 11.42
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor    : 1
model name    : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 11.42
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor    : 2
model name    : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 11.42
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor    : 3
model name    : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 11.42
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xc07
CPU revision    : 5

Hardware    : Allwinner sun8i Family
Revision    : 0000
Serial        : 02c0008149ab5a29

____________________________________________________________

uname -a
Linux LAB-HOME-SERVER 4.13.14-sunxi #240 SMP Mon Nov 20 00:09:06 CET 2017
armv7l armv7l armv7l GNU/Linux

____________________________________________________________

I use mainline kernel.

Kernel config:
https://drive.google.com/open?id=1H6Vk7P8bCNAktBhmfJpTtGse2rRauRiB

____________________________________________________________

sudo modprobe wireguard
modprobe: ERROR: could not insert 'wireguard': Exec format error

____________________________________________________________

dmesg | grep wiregu
[  532.927236] wireguard: loading out-of-tree module taints kernel.
[  532.930604] wireguard: unknown relocation: 51
[  533.005892] wireguard: unknown relocation: 51

-- 
Thanks,
Roman Gavrilov

[-- Attachment #2: Type: text/html, Size: 3617 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new bug on armhf
  2017-11-20 19:34 new bug on armhf Роман Гаврилов
@ 2017-11-21  9:34 ` Ivan Labáth
  2017-11-21 10:05   ` Jason A. Donenfeld
  2017-11-21 10:04 ` Jason A. Donenfeld
  1 sibling, 1 reply; 7+ messages in thread
From: Ivan Labáth @ 2017-11-21  9:34 UTC (permalink / raw)
  To: Роман
	Гаврилов
  Cc: WireGuard mailing list

Hi,

I don't know much about arm modules, but is seems
like a generic module-kernel mismatch.

Are you using kernel configuration and sources
for the running kernel?

Regards,
Ivan


On Mon, Nov 20, 2017 at 10:34:09PM +0300, Роман Гаврилов wrote:
> Hello!
> 
> I have new bug on armhf.
> 
> ____________________________________________________________
> 
> build from:
> https://git.zx2c4.com/WireGuard/commit/?id=82cacee3511e5c2f624203487124e5ba0151c84d
> 
> ____________________________________________________________
> 
> software:
> Ubuntu Xenial 16.04
> 
> hardware:
> PC: Orange Pi Plus 2E
> SOC: Allwinner H3
> 
> ____________________________________________________________
> cat /proc/cpuinfo
> processor    : 0
> model name    : ARMv7 Processor rev 5 (v7l)
> BogoMIPS    : 11.42
> Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
> vfpd32 lpae evtstrm
> CPU implementer    : 0x41
> CPU architecture: 7
> CPU variant    : 0x0
> CPU part    : 0xc07
> CPU revision    : 5
> 
> processor    : 1
> model name    : ARMv7 Processor rev 5 (v7l)
> BogoMIPS    : 11.42
> Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
> vfpd32 lpae evtstrm
> CPU implementer    : 0x41
> CPU architecture: 7
> CPU variant    : 0x0
> CPU part    : 0xc07
> CPU revision    : 5
> 
> processor    : 2
> model name    : ARMv7 Processor rev 5 (v7l)
> BogoMIPS    : 11.42
> Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
> vfpd32 lpae evtstrm
> CPU implementer    : 0x41
> CPU architecture: 7
> CPU variant    : 0x0
> CPU part    : 0xc07
> CPU revision    : 5
> 
> processor    : 3
> model name    : ARMv7 Processor rev 5 (v7l)
> BogoMIPS    : 11.42
> Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
> vfpd32 lpae evtstrm
> CPU implementer    : 0x41
> CPU architecture: 7
> CPU variant    : 0x0
> CPU part    : 0xc07
> CPU revision    : 5
> 
> Hardware    : Allwinner sun8i Family
> Revision    : 0000
> Serial        : 02c0008149ab5a29
> 
> ____________________________________________________________
> 
> uname -a
> Linux LAB-HOME-SERVER 4.13.14-sunxi #240 SMP Mon Nov 20 00:09:06 CET 2017
> armv7l armv7l armv7l GNU/Linux
> 
> ____________________________________________________________
> 
> I use mainline kernel.
> 
> Kernel config:
> https://drive.google.com/open?id=1H6Vk7P8bCNAktBhmfJpTtGse2rRauRiB
> 
> ____________________________________________________________
> 
> sudo modprobe wireguard
> modprobe: ERROR: could not insert 'wireguard': Exec format error
> 
> ____________________________________________________________
> 
> dmesg | grep wiregu
> [  532.927236] wireguard: loading out-of-tree module taints kernel.
> [  532.930604] wireguard: unknown relocation: 51
> [  533.005892] wireguard: unknown relocation: 51
> 
> -- 
> Thanks,
> Roman Gavrilov

> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new bug on armhf
  2017-11-20 19:34 new bug on armhf Роман Гаврилов
  2017-11-21  9:34 ` Ivan Labáth
@ 2017-11-21 10:04 ` Jason A. Donenfeld
  2017-11-21 15:10   ` Jason A. Donenfeld
  1 sibling, 1 reply; 7+ messages in thread
From: Jason A. Donenfeld @ 2017-11-21 10:04 UTC (permalink / raw)
  To: Роман
	Гаврилов
  Cc: WireGuard mailing list

Hi Roman,

Thanks for the feedback. I'm surprised to see this again, since I've
tried to consistently use .thumb annotations in the assembly. I'll try
to take your config and reproduce it somewhere. Probably I should just
order a single board computer for this, but I think I'll try to kexec
on scaleway first.

Jason

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new bug on armhf
  2017-11-21  9:34 ` Ivan Labáth
@ 2017-11-21 10:05   ` Jason A. Donenfeld
  0 siblings, 0 replies; 7+ messages in thread
From: Jason A. Donenfeld @ 2017-11-21 10:05 UTC (permalink / raw)
  To: Ivan Labáth
  Cc: Роман
	Гаврилов,
	WireGuard mailing list

On Tue, Nov 21, 2017 at 10:34 AM, Ivan Lab=C3=A1th
<labawi-wg@matrix-dream.net> wrote:
> I don't know much about arm modules, but is seems
> like a generic module-kernel mismatch.

Nope. This is some wild consequence of all that new hand-rolled
assembly I introduced, and the interworking of thumb and arm
instructions/addresses. I'm trying to fix it now.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new bug on armhf
  2017-11-21 10:04 ` Jason A. Donenfeld
@ 2017-11-21 15:10   ` Jason A. Donenfeld
  2017-11-21 16:39     ` Роман Гаврилов
  0 siblings, 1 reply; 7+ messages in thread
From: Jason A. Donenfeld @ 2017-11-21 15:10 UTC (permalink / raw)
  To: Роман
	Гаврилов
  Cc: WireGuard mailing list

Hi Roman,

It took me all day to get a working configuration, due to a binutils
bug, but I finally reproduced it, and then fixed the bug. Can you grab
the latest git master `git fetch && git reset --hard origin/master`
and let me know if it works for you?

Thanks,
Jason

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new bug on armhf
  2017-11-21 15:10   ` Jason A. Donenfeld
@ 2017-11-21 16:39     ` Роман Гаврилов
  2017-11-21 17:32       ` Jason A. Donenfeld
  0 siblings, 1 reply; 7+ messages in thread
From: Роман Гаврилов @ 2017-11-21 16:39 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

Hi!

Yes. The problem is solved. Thanks for the help.

2017-11-21 18:10 GMT+03:00 Jason A. Donenfeld <Jason@zx2c4.com>:

> Hi Roman,
>
> It took me all day to get a working configuration, due to a binutils
> bug, but I finally reproduced it, and then fixed the bug. Can you grab
> the latest git master `git fetch && git reset --hard origin/master`
> and let me know if it works for you?
>
> Thanks,
> Jason
>


-- 
Thanks,
Roman Gavrilov

[-- Attachment #2: Type: text/html, Size: 1621 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new bug on armhf
  2017-11-21 16:39     ` Роман Гаврилов
@ 2017-11-21 17:32       ` Jason A. Donenfeld
  0 siblings, 0 replies; 7+ messages in thread
From: Jason A. Donenfeld @ 2017-11-21 17:32 UTC (permalink / raw)
  To: Роман
	Гаврилов
  Cc: WireGuard mailing list

Hi Roman,

Great to hear. In the process of debugging this today, I managed to
find this kernel bug, in case you're curious:

http://lists.infradead.org/pipermail/linux-arm-kernel/2017-November/543183.html

THUMB2_KERNEL is still a bit flaky I guess.

Jason

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-21 17:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-20 19:34 new bug on armhf Роман Гаврилов
2017-11-21  9:34 ` Ivan Labáth
2017-11-21 10:05   ` Jason A. Donenfeld
2017-11-21 10:04 ` Jason A. Donenfeld
2017-11-21 15:10   ` Jason A. Donenfeld
2017-11-21 16:39     ` Роман Гаврилов
2017-11-21 17:32       ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).