klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
karenw has quit [Quit: Deep into that darkness peering...]
Burgundy has quit [Ping timeout: 248 seconds]
guideX has joined #osdev
j`ey has quit [Server closed connection]
j`ey has joined #osdev
FreeFull has quit [Ping timeout: 260 seconds]
FreeFull has joined #osdev
agent314 has quit [Quit: WeeChat 4.5.2]
badtuple has joined #osdev
Brain___ has quit [Server closed connection]
vdamewood has joined #osdev
vai has joined #osdev
<vai> greetings
vai is now known as Jari--
vismie has quit [Server closed connection]
vismie has joined #osdev
da5id has quit [Quit: WeeChat 4.7.0]
skipwich has quit [Remote host closed the connection]
skipwich has joined #osdev
Haven0320 has joined #osdev
vdamewood has quit [Quit: Life beckons]
Haven0320 has quit [Quit: Leaving]
Haven0320 has joined #osdev
stux has quit [Server closed connection]
stux has joined #osdev
GeDaMo has joined #osdev
Jari-- has quit [Ping timeout: 258 seconds]
badtuple has quit [Ping timeout: 256 seconds]
_whitelogger has joined #osdev
KitsuWhooa has joined #osdev
netbsduser` has quit [Ping timeout: 258 seconds]
fkrauthan has quit [Quit: ZNC - https://znc.in]
fkrauthan has joined #osdev
les has joined #osdev
dostoyevsky has quit [Server closed connection]
dostoyevsky has joined #osdev
fkrauthan has quit [Quit: ZNC - https://znc.in]
fkrauthan has joined #osdev
FreeFull has quit [Quit: Lost terminal]
Lucretia has joined #osdev
ring0_starr has quit [Ping timeout: 258 seconds]
Burgundy has joined #osdev
Left_Turn has joined #osdev
EmanueleDavalli has joined #osdev
indraj has joined #osdev
Turn_Left has joined #osdev
FreeFull has joined #osdev
Left_Turn has quit [Ping timeout: 248 seconds]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 244 seconds]
Terlisimo has quit [Server closed connection]
Terlisimo has joined #osdev
pabs3 has quit [Server closed connection]
pabs3 has joined #osdev
TkTech8 has joined #osdev
<Ermine> today in linux desktop news: my keyboard and mouse are not working on kernal 6.16.3
TkTech has quit [Ping timeout: 256 seconds]
TkTech8 is now known as TkTech
<indraj> sounds like an average day on linux
<indraj> I ran into something similar with my network card a few years ago, I ended up having to swap it out after some bug reports went nowhere
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 244 seconds]
EmanueleDavalli has quit [Quit: Leaving]
Burgundy has left #osdev [#osdev]
<heat> Ermine: post dmesg
pitust has quit [Server closed connection]
pitust has joined #osdev
Left_Turn has joined #osdev
msv has quit [Remote host closed the connection]
Turn_Left has quit [Ping timeout: 244 seconds]
Burgundy has joined #osdev
k0valski18891621 has quit [Server closed connection]
Left_Turn has quit [Read error: Connection reset by peer]
Ram-Z has quit [Server closed connection]
Ram-Z has joined #osdev
goliath has joined #osdev
Left_Turn has joined #osdev
eluks has quit [Server closed connection]
eluks has joined #osdev
noeontheend has quit [Server closed connection]
noeontheend has joined #osdev
Left_Turn has quit [Read error: Connection reset by peer]
Left_Turn has joined #osdev
sebastiencs has quit [Server closed connection]
<Ermine> heat: nah, I'm having more fun dealing with arm board on which kernal crashes early
sebastiencs has joined #osdev
<clever> Ermine: ive had similar problems, it hangs right as its switching from earlycon to ttyAMA0, but if i modify any code, it crashes at a different place!
<Ermine> in my case, it's probably because i haven't built arm trusted firmware
<clever> ah
<Ermine> dmesg just in case: https://0x0.st/K-sr.log
Turn_Left has joined #osdev
dostoyevsky2 has quit [Server closed connection]
dostoyevsky2 has joined #osdev
pabs3 has quit [Ping timeout: 256 seconds]
<clever> Ermine: yeah, looks like its trying to use PSCI to contact the ATF
<zid> So it can land at LAX
Left_Turn has quit [Ping timeout: 256 seconds]
pabs3 has joined #osdev
ring0_starr has joined #osdev
<nikolar> Why would it want to land at lax though
<Ermine> why not
<zid> because it's the only airport code I can remember
msv has joined #osdev
dude12312414 has joined #osdev
<kof673> in soviet lax, alcohol tobacco firearms bureau finds you :D
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
<nikolar> Ermine: because that would mean you'd want to go to US
goliath has quit [Quit: SIGSEGV]
netbsduser` has joined #osdev
TkTech4 has joined #osdev
TkTech has quit [Ping timeout: 256 seconds]
TkTech4 is now known as TkTech
<Ermine> oh
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 244 seconds]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 244 seconds]
Pixi has quit [Server closed connection]
Pixi has joined #osdev
EmanueleDavalli has joined #osdev
chiselfuse has joined #osdev
xenos1984 has quit [Ping timeout: 252 seconds]
xenos1984 has joined #osdev
xenos1984 has quit [Ping timeout: 248 seconds]
xenos1984 has joined #osdev
Turn_Left has quit [Read error: Connection reset by peer]
Left_Turn has joined #osdev
EmanueleDavalli has quit [Ping timeout: 256 seconds]
EmanueleDavalli has joined #osdev
eluks has quit [Remote host closed the connection]
eluks has joined #osdev
EmanueleDavalli has quit [Remote host closed the connection]
EmanueleDavalli has joined #osdev
TkTech5 has joined #osdev
TkTech has quit [Ping timeout: 256 seconds]
TkTech5 is now known as TkTech
FreeFull has quit []
<chiselfuse> do debuggers guess the base address of loaded images if i attach a ptrace to an already existing process in order to map the symbols assigned to the virtual address space of the elf to the real one?
<chiselfuse> for DYN elfs at least
<chiselfuse> they just look at /proc/maps and guess where the base address is? or is there a more confident way
<heat> platform dependent
<heat> on linux they snoop dynamic linker structs
<heat> see _dl_debug_addr and _dl_debug_state
eluks has quit [Remote host closed the connection]
eluks has joined #osdev
<chiselfuse> heat: okay so how do you in turn find _dl_debug_addr? and besides that, how do debuggers find information of loaded images (i assume this is what you can get via _dl_debug_addr) for images with no INTERP?
<heat> ELF symbols
<heat> and for images with no interp you can eyeball it, yes
<heat> at least that's what they do for coredumps
<chiselfuse> so for EXECs i imagine it's easy, but for DYNs, you just have to guess the base address, right?
<heat> sure
<heat> i mean, i would read the code if i were you
<chiselfuse> of something like gdb?
<heat> yeah
<heat> or lldb
<heat> (I think lldb is a little less spaghetti)
<chiselfuse> good idea yea
freakazoid332 has quit [Ping timeout: 260 seconds]
<zid> gef➤ pf $rsp --lang c --bitlen 8
<zid> unsigned char buf[256] = {0x18, 0xdf, 0xff,
<zid> gef has weird features like this
<zid> but I can't figure out how to get a hexdump display
<bslsk05> ​hugsy.github.io: hexdump - GEF - GDB Enhanced Features documentation
<zid> yea I saw that, but it isn't in my version apparently
<zid> from 2025..
<zid> gdb itself has dump memory and gef's vmmap command can give me the range at least
<zid> so I can hexdump a file I made
<zid> I wanted to know how getauxval worked, weirdly it just looks at some readonly data from libc.so.6 at offset 0x340
Terlisimo has quit [Ping timeout: 258 seconds]
dostoyevsky has quit [Ping timeout: 258 seconds]
koolazer has quit [Ping timeout: 258 seconds]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
Terlisimo has joined #osdev
dostoyevsky has joined #osdev
koolazer has joined #osdev
<heat> auxv is passed on the stack at program startup time
<heat> the libc takes that in and caches it
<heat> then getauxval looks at that
tygoe has joined #osdev
<zid> yea
<zid> at offset +0x68 in some struct at +0x340
<zid> 0x7fffffffe080: 0x0000000000000021 0x00007ffff7fc0000
<zid> That's the start of my actual auxv
<zid> 0x00007ffffffde000 0x00007ffffffff000 0x0000000000000000 rw- [stack]
<heat> that's a stack addr yeah
<zid> 0x1080 into stack basically
<zid> then it should be args and env and stuff ahead of it
<zid> does linux fill envp and auxvp for main? if I do main(int argc, char **argc, char **envp, char **auxvp)?
<zid> or rather, blic
<zid> glibc
<heat> yeah
<heat> wait, no
<heat> auxv is not part of the signature
<zid> shame
<zid> I'd need my own _start then
<zid> or getauxval
<Ermine> what's that even
<zid> or to reverse engineer my stack
<bslsk05> ​articles.manugarg.com: About ELF Auxiliary Vectors
<zid> program fd, pointer to phdrs, the random number, etc
<heat> it's trivial to grab auxv from envp
<heat> basically run out of envp, and right after it is auxv
<zid> I mean I could just walk forwards from argv[0] pretty easily and find it
<zid> yea
<zid> There
<zid> v
<bslsk05> ​godbolt.org: Compiler Explorer
<zid> Prints your random aux
<zid> Stoat ~ # gcc test.c && ./a.out arse
<zid> AT_RANDOM: 25f2d17e6de02810
<zid> srand that, bitches
<zid> oh I can change the type of p now that I'm not printing strings for debugging and get rid of the cast I guess
<geist> oh hey gcc 15.2 got released a week or so ago
<geist> didn't notice that till now
<zid> yea they changed how unions work
<zid> {0} initializes the first member only, rather than memsetting the whole thing to 0
<zid> (I bet it does just memset most of the time though, but they're allowed not to now, apparently)
<heat> thanks for the heads up
<heat> i guess i'm building that
<nikolar> kek
<zid> so make sure your union { char; struct gigabyte g; }; is infact, the other way up, if you want the big struct zero'd :p
<zid> nikolar do you like my weird program that just does empty loops then spits out a random value, I do
<nikolar> it's great
tygoe has quit [Quit: Lost terminal]
<heat> welp ftp.gnu.org is extremely slow
EmanueleDavalli has quit [Quit: Leaving]
<heat> weird, i'm seeing problems building the gcc 15.2.0 tarball on onyx
<zid> that's because you're trying to build it on onyx
<zid> glad to help
<heat> i might need to regen the whole patch
<heat> specifically the autoconf bits
<heat> though patch --fuzz=0 isn't complaining...
karenw has joined #osdev
alexander has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
alexander has joined #osdev
acidx has joined #osdev
acidx has quit [Remote host closed the connection]
acidx has joined #osdev
acidx has quit [Ping timeout: 256 seconds]
Lucretia has quit [Remote host closed the connection]
msv has quit [Ping timeout: 260 seconds]
Left_Turn has quit [Read error: Connection reset by peer]
acidx has joined #osdev
energizer has quit [Server closed connection]
acidx has quit [Client Quit]
Haven0320-2 has joined #osdev
energizer has joined #osdev
acidx has joined #osdev
acidx_ has joined #osdev
Haven0320 has quit [Ping timeout: 260 seconds]
acidx has quit [Ping timeout: 256 seconds]
acidx_ has quit [Ping timeout: 245 seconds]