syscall_exec16: Fix BSS wrap bug
authorAlan Cox <alan@linux.intel.com>
Sun, 10 Mar 2019 00:26:22 +0000 (00:26 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 10 Mar 2019 00:26:22 +0000 (00:26 +0000)
commite54e1e1d2ca07c8605a366301e564cc69e97f7f2
tree1a2ed91d7b47b4e205912d45050d1f9de38d85a6
parent005787ba9a445bc2dce6d820eaae0c3741ca67e0
syscall_exec16: Fix BSS wrap bug

If the binary fits but it has a huge BSS value then kernel wrongly allows it to
start. Because of some other bugs and quirks it ends up running sanely for most
platforms but the BSS is not cleared.

This breaks the current builds of /bin/sh so you'll need to build a new one with
the tools patches that follow this applied.
Kernel/syscall_exec16.c