Re: [patch] switchd(8) on sparc64: panic: trap type 0x34

2018-08-20 Thread YASUOKA Masahiko
On Mon, 20 Aug 2018 11:05:08 -0700 Ori Bernstein wrote: > On Mon, 20 Aug 2018 23:38:28 +0900 (JST), YASUOKA Masahiko > wrote: >> As far as I know, switch(4) assumes it receives packets located at 64 >> bit aligned memory. So if the code like below >> >> *(uint64_t *)oxm->oxm_value = htobe

Re: [patch] switchd(8) on sparc64: panic: trap type 0x34

2018-08-20 Thread Mark Kettenis
> Date: Mon, 20 Aug 2018 11:05:08 -0700 > From: Ori Bernstein > > > As far as I know, switch(4) assumes it receives packets located at 64 > > bit aligned memory. So if the code like below > > > > *(uint64_t *)oxm->oxm_value = htobe64(val); > > > > cause alignment faults, the assumption may

Re: [patch] switchd(8) on sparc64: panic: trap type 0x34

2018-08-20 Thread Ori Bernstein
On Mon, 20 Aug 2018 23:38:28 +0900 (JST), YASUOKA Masahiko wrote: > Hi, Heyho. > > panic: trap type 0x34 (mem address not aligned): pc=15864ec > > npc=15864f0 pstate=99820006 > (snip) > > o...@eigenstate.org and I put together the following diff. I haven't been > > able > > to check with the

Re: [patch] switchd(8) on sparc64: panic: trap type 0x34

2018-08-20 Thread YASUOKA Masahiko
Hi, > panic: trap type 0x34 (mem address not aligned): pc=15864ec > npc=15864f0 pstate=99820006 (snip) > o...@eigenstate.org and I put together the following diff. I haven't been able > to check with the original reporter, and I don't have a machine to test it on, > so comments and/or tests would

[patch] switchd(8) on sparc64: panic: trap type 0x34

2018-08-19 Thread Ayaka Koshibe
Hi, At BSDCan, someone reported that a sparc64 machine would panic if it was receiving any traffic on a member interface of a switch(4) during reboot. We got as far as getting this trace: panic: trap type 0x34 (mem address not aligned): pc=15864ec npc=15864f0 pstate=99820006 Stopped at db_en