| 23 Nov 2025 |
Tristan Ross | Because I thought that's what you mentioned it was when we were looking at this problem a couple weeks ago | 20:30:32 |
dramforever | i said it's not a pie | 20:30:45 |
Tristan Ross | Huh | 20:30:59 |
Tristan Ross | So why else would mmap fail with 0xf000 when vm.mmap_min_addr is 65535? | 20:31:29 |
Tristan Ross | mmap return EPERM | 20:31:49 |
dramforever | because it's not a pie | 20:31:50 |
dramforever | that's why it fails | 20:31:54 |
Tristan Ross | What? | 20:32:00 |
dramforever | it fails because it's not position independent | 20:32:06 |
Tristan Ross | I thought you just said it's not a PIE problem | 20:32:06 |
dramforever | it's a problem because it's a PDE | 20:32:24 |
Tristan Ross | Yes, so it's the problem I was explaining. The executable should be a PIE but the kernel thinks its not. | 20:32:49 |
dramforever | the executable has no signs of being a PIE | 20:33:04 |
dramforever | it has type ET_EXEC, first segment doesn't start at address 0 | 20:33:41 |
Tristan Ross | Yeah | 20:33:56 |
Tristan Ross | And the good binaries have a different address for the PHDR | 20:34:08 |
dramforever | so why "should" it be a PIE? | 20:34:10 |
Tristan Ross | So mmap wouldn't EPERM? | 20:34:31 |
dramforever | that can't be the general solution though | 20:37:05 |
dramforever | because random stuff just doesn't work built as PIE | 20:37:14 |
dramforever | last time i checked this list includes gcc itself i think | 20:37:37 |
Tristan Ross | Oh, so how would GCC get fixed so it doesn't EPERM? | 20:38:05 |
dramforever | i have no idea why ubuntu doesn't have this problem | 20:53:02 |
dramforever | is their gcc a pie? | 20:53:07 |
Tristan Ross | Idk | 20:54:12 |
dramforever | why is ubuntu not just a big monorepo that i can search anything i want in 🫠| 21:06:45 |
Tristan Ross | lol | 21:09:44 |
dramforever | eh nevermind i think we build gcc as pie now | 21:12:19 |
kwinz | https://cache.ztier.in riscv binary cache is only for unstable, correct? is there a binary cache for stable? | 22:01:05 |
Tristan Ross | I've only known a few exist but idk the reliability | 22:16:02 |