However /bin/sh seems very unstable and keeps crashing:
# /etc/rc.d/motd XXX
[ 605.1768095] pid 359 (sh), uid 0: exited on signal 11 (core dumped)
[1] Segmentation fault (core dumped) /etc/rc.d/motd status
It should have printed usage:
/etc/rc.d/motd: unknown directive 'XXX'.
Usage: /etc/rc.d/motd [fast|force|one](start stop restart rcvar)
GDB is also crashing the entire system:
# gdb /bin/sh ./sh.core
gdb: warning: Couldn't determine a path for the index cache directory.
GNU gdb (GDB) 16.3
...
Reading symbols from /bin/sh...
(No debugging symbols found in /bin/sh)
[ 2033.3467176] trap type 0x34: cpu 0, pc=1009804 npc=1009808 pstate=0x110014<MM_TSO,PEF,PRIV>
[ 2033.3467176] kernel trap 34: mem address not aligned
ERROR: Last Trap: Watchdog Reset