Date: Thu, 5 Nov 2015 21:42:09 +0100 From: Lars Engels <lars.engels@0x20.net> To: Hans Petter Selasky <hps@selasky.org> Cc: arm@freebsd.org Subject: Re: [Banana Pi] Fatal kernel mode data abort: 'Alignment Fault' on read Message-ID: <20151105204209.GT66179@e-new.0x20.net> In-Reply-To: <563BAA36.60208@selasky.org> References: <20151105104859.GQ66179@e-new.0x20.net> <563B372E.20607@selasky.org> <20151105120950.GR66179@e-new.0x20.net> <563B4813.1060403@selasky.org> <20151105153423.GS66179@e-new.0x20.net> <563BAA36.60208@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--zAi3veRTHMyLkSNS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 05, 2015 at 08:12:54PM +0100, Hans Petter Selasky wrote: > On 11/05/15 16:34, Lars Engels wrote: > > On Thu, Nov 05, 2015 at 01:14:11PM +0100, Hans Petter Selasky wrote: > >> On 11/05/15 13:09, Lars Engels wrote: > >>> On Thu, Nov 05, 2015 at 12:02:06PM +0100, Hans Petter Selasky wrote: > >>>> On 11/05/15 11:48, Lars Engels wrote: > >>>>> Using FreeBSD-armv6-11.0-A20-290366.img I can reproducible crash the > >>>>> kernel by USB-tethering the Banana Pi to a mobile phone and run " > >>>>> pkg bootstrap". It looks like this: > >>>>> > >>>>> root@bananapi:/ # pkg bootstrap > >>>>> The package management tool is not yet installed on your system. > >>>>> Do you want to fetch and install it now? [y/N]: y > >>>>> Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:armv6/= latest, please wait... > >>>>> Fatal kernel mode data abort: 'Alignment Fault' on read > >>>>> trapframe: 0xea576a90 > >>>>> FSR=3D00000001, FAR=3Dc43a1d6e, spsr=3D60000113 > >>>>> r0 =3D00000014, r1 =3D0000003c, r2 =3D0000003c, r3 =3D00000903 > >>>>> r4 =3D00000000, r5 =3Dc43a1d6a, r6 =3D00000028, r7 =3Dc43a1d56 > >>>>> r8 =3D00000000, r9 =3D00000014, r10=3D00000028, r11=3Dea576bf8 > >>>>> r12=3D00000000, ssp=3Dea576b20, slr=3Dc061aba4, pc =3Dc04f68e8 > >>>>> > >>>>> [ thread pid 13 tid 100024 ] > >>>>> Stopped at tcp_input+0x820: ldr r0, [r5, #0x004] > >>>> > >>>> Hi, > >>>> > >>>> Could you "objdump -Dx --source /boot/kernel/kernel" and figure out > >>>> which code line "tcp_input+0x820" corresponds to? > >>> > >>> You mean like "objdump ... | grep -C10 tcp_input+0x820"? > >>> > >>> I started that half an hour ago and it's still not finished. > >>> > >> > >> No, you need to find where tcp_input starts, by less-ing it, then add > >> 0x820 to that address and then verify that the assembly instruction > >> there matches. > > > > Ok, I have no idea what I am doing, but here's what I did: > > # objdump -Dx --source /boot/kernel/kernel --start-address=3D"0xc04f5= 1c8" --stop-address=3D"0xC04F59E8" > > > > The result is a 1,3MB text file at: > > http://bsd-geek.de/FreeBSD/objdump.txt > > > > Can you see anything there? > > >=20 > Hi, >=20 > I cannot find "ldr r0, [r5, #4]" at the given location, though if that=20 > is the faulting instruction, it might be related to an unaligned SACK=20 > option. Can you test a new kernel with a patch? I think I could build an image with crochet, so if you have a patch, I can try. --zAi3veRTHMyLkSNS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJWO78hXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1twOoH/0ms7E19D+vSzFLk6sIln6k4 l1xQWJxqp+5lZQLNElxdVoYQGm972/4Am/Qec/srdm1Sj3bTzPlfTSxS8IQAWn9+ npLUoBrCmLmMcEZj6fghXd/KOxycrgTOfPfBGRnHjuuNypWM98EyO2om2S1w9P37 suR/Eya9dDTfGJdYkHKPFXuIAvbiDVEC3WvZnWawuAMgZLxsNL7gVXZGNTkRVo3X ZnGFh7m9kR1nSSHn5eItnzmZBJjTM9bFFL9Hhb4Hz7JKleps0WCgYh9mwrGyXzj1 iYCWGyLt8ZPmdxWuijs/Gmed8790SsOjvVRP/8taaM11Pcr18HUWLneoMK1XT5M= =QXKQ -----END PGP SIGNATURE----- --zAi3veRTHMyLkSNS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151105204209.GT66179>