immortalwrt/target/linux
Tony Ambardar 557867c14a
kernel: mips: fix init crash/bootloop on 64-bit systems
The malta subtargets for mips64 and mips64el fail to start the init process
at boot, resulting in a boot loop. The issue was raised and analyzed within
FS#3277. Investigation suggested code near the [vdso] memory area of the
process was long jumping into a region inaccessible to the process, e.g.

 init: - preinit -
 init: Launched preinit instance, pid=522
 do_page_fault(): sending SIGSEGV to init for invalid read access from 0000000000000360
 epc = 0000000000000360 in init[aaab42b000+4000]
 ra  = 000000fffee385e0 in
 Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
 Rebooting in 1 seconds..

Note the low-memory read access and epc are the same. Upstream kernel 5.6
included a relevant patch and discussion:

  * d3f703c4359f ("mips: vdso: fix 'jalr t9' crash in vdso code")

Disassembly of the failing kernel's vdso.so confirmed presence of the
telltale long jumps, e.g.:

00000000000007c0 <__vdso_clock_getres@@LINUX_2.6>:
 [...]
 7dc:   0320f809        jalr    t9
 [...]

Restore booting mips64/mips64el malta by backporting the above commit:
  * 310-v5.6-mips-vdso-fix-jalr-t9-crash-in-vdso-code.patch

Fixes: 54310a3aa0 ("malta: add kernel 5.4 config")
Fixes: FS#3277
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3277

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2020-08-15 02:09:22 +08:00
..
apm821xx kernel: bump 5.4 to 5.4.58 2020-08-12 00:21:47 +08:00
ar71xx target: drop kernel 4.9 support 2020-08-12 03:17:56 +08:00
arc770 arc770: update kernel version to 5.4 2020-07-28 20:49:14 +08:00
archs38 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
armvirt kernel: Move CONFIG_IONIC to generic kernel config 2020-08-11 18:15:38 +08:00
at91 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
ath25 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
ath79 kernel: bump 5.4 to 5.4.58 2020-08-12 00:21:47 +08:00
bcm27xx kernel: bump 5.4 to 5.4.58 2020-08-12 00:21:47 +08:00
bcm47xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
bcm53xx kernel: add CGROUPS and IOSCHED_BFQ back to config 2020-08-13 11:57:54 +08:00
bcm63xx bcm63xx: switch to upstream CFE detection patch 2020-08-11 18:13:21 +08:00
cns3xxx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
gemini Merge Mainline 2020-08-03 00:45:53 +08:00
generic kernel: mips: fix init crash/bootloop on 64-bit systems 2020-08-15 02:09:22 +08:00
imx6 treewide: fix undeclared function about backup in upgrade 2020-08-14 12:28:09 +08:00
ipq40xx ipq40xx: revert changes of some patches 2020-08-11 22:54:05 +08:00
ipq806x kernel: usb: move phy-qcom-ipq806x-usb to ipq806x modules.mk 2020-08-14 12:08:01 +08:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
kirkwood kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
lantiq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
layerscape treewide: adjust sysupgrade script 2020-08-14 18:36:30 +08:00
malta kernel: add CGROUPS and IOSCHED_BFQ back to config 2020-08-13 11:57:54 +08:00
mediatek treewide: adjust sysupgrade script 2020-08-14 18:36:30 +08:00
mpc85xx mpc85xx: tidy up 10-fix-wifi-mac 2020-08-14 11:37:18 +08:00
mvebu treewide: adjust sysupgrade script 2020-08-14 18:36:30 +08:00
mxs kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
octeon kernel: Move CONFIG_IONIC to generic kernel config 2020-08-11 18:15:38 +08:00
octeontx kernel: Move CONFIG_IONIC to generic kernel config 2020-08-11 18:15:38 +08:00
omap kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
oxnas oxnas: reduce size of ATA DMA descriptor space 2020-08-11 18:15:51 +08:00
pistachio kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
ramips ramips: use gpio-export for Mikrotik RouterBOARD 750Gr3 beeper 2020-08-13 12:01:47 +08:00
rb532 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
rockchip rockchip: format nanopi r2s i2c0 patch 2020-08-15 01:52:38 +08:00
samsung kernel: Update kernel 4.14 to version 4.14.187 2020-07-05 11:53:32 +08:00
sunxi Merge Mainline 2020-08-12 00:18:55 +08:00
tegra kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
uml
x86 Merge Mainline 2020-08-14 21:46:50 +08:00
zynq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
Makefile build: add 'make kernel_xconfig' command 2020-07-09 12:03:26 +08:00