thehajime / linux

Linux kernel source tree
https://lkl.github.io/
Other
3 stars 1 forks source link

crash on /sbin/init with busybox.nommu (on alpine:latest image) #8

Closed thehajime closed 1 day ago

thehajime commented 1 week ago

bisecting now

thehajime commented 1 day ago

a crash is triggered by an execution on RW memory; when #22 is happened (endless loop on init=>hush=>source /etc/profile), memory becomes exhausted and run out of resource, then it accesses the area which isn't a part of physmem. And it has no exec bit on on this area (as MMU case set on with the other part), it will cause a segmentation violation.

The following commit fixes this issue. https://github.com/thehajime/linux/commit/f41ba0a1f5632ba10891b2c3eaf2efa000ddf6be