'bad address' with i.MX25 and Linux 4.8 or later

cancel
Showing results for 
Search instead for 
Did you mean: 

'bad address' with i.MX25 and Linux 4.8 or later

256 Views
tike64
Contributor I

Dear i.MX Community,

We are trying to build Linux 4.8.17 vanilla kernel for i.MX25. Mostly everything seems to be fine but, when we put more network stress on it, it started to show strange behavior. Random processes not related in any way with network died with 'bad address' error.

The issue can be triggered quite easily with netcat and scp. We pipe a couple of netcats (see nctest script below) and then push net traffic from outside with scp. The script might run a few hundred rounds but mostly reports 'bad address' from nc or usleep in a few tens of rounds. netcat is not needed. This also triggers the issue:

# while true; do cat tiny.txt > /dev/null; done
-sh: cat: Bad address
-sh: cat: Bad address

...

We have not (yet) seen this issue with ethernet cable disconnected. So it feels like the fec-driver was part of the pattern.

The issue is there starting with 4.8-rc1 kernel. Any 4.7 kernel or older is good.

We bisected the kernel source and found this commit to be the culprit:

ARM: save and reset the address limit when entering an exception
e6978e4bf181fb3b5f8cb6f71b4fe30fbf1b655c

When we revert this commit on 4.8.17 the issue goes away.

What now? What would be the proper fix?

What other implications the reverting of the commit might cause?

nctest:

#!/bin/sh

i=0

while true; do
   nc -l -p $1 > /dev/null &
   usleep 25000
   echo Test | nc localhost $1 || break
   i=$((i+1))
done

echo $i rounds

Labels (1)
0 Kudos
1 Reply

133 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Timo

this kernel version is not supported by nxp and may posted on kernel

mail list or meta-fsl-arm mailing list, so that someone familiar with it could try to assist you.
https://lists.yoctoproject.org/listinfo/meta-freescale
Below link describes supported kernels

http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i....

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos