|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004782||Kali Linux||[All Projects] General Bug||public||2018-06-01 00:08||2018-06-05 08:19|
|Target Version||Fixed in Version||2018.3|
|Summary||0004782: Random crashes w/ Kali 2018.2 armv7 in Beaglebone Black|
|Description||I'm having a lot of crashes when running on this board. The system freezes completely and sometimes LEDs go off and board seems unpowered but the connected USB hub is lit, other times LEDs stay lit but fixed and OS is irresponsive. Since this board is not connected to a screen, I'm unable to debug the problem. At first I thought it was a damaged SD card, but changed to a new one and the problem persists. All I can say it seems to happen around network timesync, but not always.|
To help debug I should describe my setup: BBB is powered with barrel adapter and connected to powered USB hub, where there are two wireless ifaces, an Atheros AR9271 used with hostapd as AP (static IP serving dhcp with isc-dhcp-server) and a Ralink 3070 used as a client to another wireless network providing internet access (with dhcp dynamic IP). Kali is installed in a MicroSD card (16GB). Initial setup is done connecting BBB to wired ethernet network, during which crashes were not noted. As I said, they seem to happen a while after client wifi gets connected and ntpdate gets fired.
Also observed after a number of cycles (crash-->forced manual reboot) SD card system gets corrupted and begins to throw errors when connecting card to PC reader.
Appended relevant syslog portion of a crash.
Suspecting from the kernel (4.1 branch on official Kali BBB image) I built a new image using kali-arm-build-scripts (https://github.com/offensive-security/kali-arm-build-scripts ) but switching to kernel branch 4.9. I chose this because wifi injection patches already existed on kali for this kernel. The newly built image doesn't crash anymore, no crashes so far in 36 hours uptime. It could be a coincidence, but. . .
So I suggest bumping kernel version of bbb.sh from 4.1 to 4.9. FYI the build steps taken are almost the recommended in kali-arm-build-scripts, with following differences:
- Didn't used recommended gcc ( https://github.com/offensive-security/gcc-arm-linux-gnueabihf-4.7 ) since there is already a cross compiler in repo and I had that already installed, whichs happens to be gcc-arm-linux-gnueabihf package version 4:7.2.0-1d1.
- Didn't installed all build-deps packages, since *-multilib are not necessary for BBB.
- Just edited bbb.sh to change kernel version from 4.1 to 4.9, patch appended.
|@threeway Please have a look at this bug.|
Thank you so much for the report @pkreuzt!
Appreciate the reproduction steps, and observed the same things here.
In the future, you can also submit this as a pull request on the kali-arm-build-scripts but a patch here works just as well!
I'll push the updated patch shortly, and see about getting an updated image released soon!
Updated image is posted as 2018.2a
Thanks again for the report, the steps to reproduce were extremely helpful!
|2018-06-01 00:08||pkreuzt||New Issue|
|2018-06-01 00:08||pkreuzt||File Added: crash.txt|
|2018-06-03 17:47||pkreuzt||File Added: 4.9.patch|
|2018-06-03 17:47||pkreuzt||Note Added: 0009200|
|2018-06-03 19:02||rhertzog||Assigned To||=> steev|
|2018-06-03 19:02||rhertzog||Status||new => assigned|
|2018-06-03 19:03||rhertzog||Note Added: 0009201|
|2018-06-04 21:22||steev||Note Added: 0009202|
|2018-06-05 08:19||steev||Status||assigned => resolved|
|2018-06-05 08:19||steev||Resolution||open => fixed|
|2018-06-05 08:19||steev||Fixed in Version||=> 2018.3|
|2018-06-05 08:19||steev||Note Added: 0009206|