logoalt Hacker News

LukeShulast Sunday at 10:50 PM2 repliesview on HN

Linux on PA-RISC also has an upward-growing stack (AFAIK, it's the only architecture Linux has ever had an upward-growing stack on; it's certainly the only currently-supported one).


Replies

musicalelast Monday at 5:45 AM

Both this and parent comment about PA-RISC are very interesting.

As noted, stack growing up doesn't prevent all stack overflows, but it makes it less trivially easy to overwrite a return address. Bounded strings also made it less trivially easy to create string buffer overflows.

ch_123last Monday at 9:19 AM

Yeah, my assumption is that all the PA-RISC operating systems did, but I only know about HP-UX for certain.