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
thinkpol has quit [Remote host closed the connection]
thinkpol has joined #osdev
srjek|home has joined #osdev
h4zel has quit [Ping timeout: 252 seconds]
h4zel has joined #osdev
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mahmutov has quit [Ping timeout: 265 seconds]
Vercas has quit [Quit: Ping timeout (120 seconds)]
Vercas has joined #osdev
junon has quit [Ping timeout: 252 seconds]
junon has joined #osdev
gxt has quit [Remote host closed the connection]
gxt has joined #osdev
dutch has quit [Quit: WeeChat 3.3]
Cyro has quit [Remote host closed the connection]
dutch has joined #osdev
sts-q has quit [Ping timeout: 252 seconds]
nyah has quit [Ping timeout: 252 seconds]
sts-q has joined #osdev
[itchyjunk] has quit [Quit: Leaving]
srjek|home has quit [Ping timeout: 260 seconds]
AssKoala has quit [Ping timeout: 252 seconds]
<Griwes> CompanionCube: well the nice thing about zfs is that once you have the core features, you can kinda just cherry-pick what you want to support and in what order
<clever> Griwes: ive also been considering adding zfs to little-kernel
YuutaW has quit [Ping timeout: 246 seconds]
<klange> how did I end up down this path of writing a debugger...
<klange> I don't even remember
<clever> lol
<clever> klange: if i'm not careful, i'm going to wind up being the maintainer of an entire distro!
<klange> I think I was just paging through command listings and was like "ah, you know, a system call tracer would be nice, how does strace actually do its thing..."
<klange> And then I read the manuals for ptrace, figured it actually seems pretty straightforward, and since that's also how gdb does things how about a debugger, too, and...
<klange> I whipped up a little thing to poke at ld.so's internal data to figure out symbols and loaded libs, covers more ground than examining binaries. Tracebacks would be a nice next step if my base pointers are reliable...
<klange> My strace does a good bit of fancy argument parsing, as well, and I think I fixed a race in waitpid.
<klange> I can play Doom with the debugger constantly trapping syscalls and it runs fine. Performance under strace kinda depends on whether the terminal is in truetype or bitmap mode...
<klange> from before fixing a [different] race: https://klange.dev/s/Screenshot%20from%202021-09-24%2012-31-41.png I was trying to use the tools I had to figure out where player health was stored and poke it...
<clever> klange: i can picture how i would do that without even ptrace
<clever> just process_vm_readv over the entire addr space, and search for anything with an int of 88, in writable ram
<clever> then take some damage, and repeat
<klange> ptrace is where my 'process_vm_read...' is with the PTRACE_PEEKDATA/PTRACE_POKEDATA options...
<clever> ah
<clever> but i may need ptrace to modify it, set a watch point to break on any write?
<clever> and then change it back
<clever> or a watchpoint on any attempt to read, and fake the read result
<clever> read based, feels less racey, but more overhead
<klange> Need to add breakpoints next, and single step. I read the Intel manual page for that stuff at some point in the last few months...
ElectronApps has joined #osdev
<klange> Singlestep is just a bit in one of the flag regs? So I set it on return to userspace in the relevant thread and it'll do one instruction and raise an interrupt?
<clever> klange: oh, have you seen the kvm api?
<bslsk05> ​david942j.blogspot.com: Play With Capture The Flag: [Note] Learning KVM - implement your own kernel
<clever> this explains how /dev/kvm works, at the low level
<clever> so you can then implement either end of it (a vm like qemu, or a kernel supporting kvm)
<klange> please, no, I have enough on my plate, experimenting with virtualization has no business being on my mind...
<clever> :D
<klange> Looks like that article just covers making a vm and building a kernel to run _in_ the vm, not the Linux kernel side of the KVM API and/or how that interacts with virtualization instructions
<clever> but it also includes the ioctl's used to control /dev/kvm
<clever> how to allocate ram, set cpu regs, create virtual cpus, and pause/resume
<clever> once you know the api, you can implement either end
<clever> klange: ive done the same thing with android-auto before, i found source on github for the headunit (radio) end of the protocol, i then filled in the blanks for the android end
<zid> "once you know how fopen and fclose work, zfs is easy to implement" :p
<clever> zid: well, if you already have an fs, with a different api, yes :P
<clever> ive also got that exact problem
<clever> LK's fs api, isnt directly compatible with fopen/fread
<clever> but if i implement the glue between the 2, then lua's existing IO library should just work
dumbsharka has quit [Ping timeout: 264 seconds]
<clever> zid: oh, ive even done it with opengl .....
<clever> i had an opengl example that just drive the hw thru /dev/mem and mmap
<clever> and i had an opengl client app
<clever> fill in the blank....
<clever> it aint pretty, but it works :P
h4zel has quit [Ping timeout: 260 seconds]
pounce has quit [Quit: bye bye!]
h4zel has joined #osdev
Matt|home has quit [Ping timeout: 252 seconds]
ElectronApps has quit [Remote host closed the connection]
h4zel has quit [Ping timeout: 252 seconds]
aejsmith has quit [Quit: Lost terminal]
aejsmith has joined #osdev
ElectronApps has joined #osdev
ElectronApps has quit [Ping timeout: 260 seconds]
MarchHare has quit [Ping timeout: 260 seconds]
X-Scale has quit [Ping timeout: 265 seconds]
X-Scale` has joined #osdev
X-Scale` is now known as X-Scale
junon has quit [Ping timeout: 265 seconds]
junon has joined #osdev
GeDaMo has joined #osdev
dormito has quit [Quit: WeeChat 3.1]
moon-child has quit [Quit: !]
moon-child has joined #osdev
Oshawott has quit [Ping timeout: 260 seconds]
Arthuria has joined #osdev
dormito has joined #osdev
dennis95 has joined #osdev
[itchyjunk] has joined #osdev
ahalaney has joined #osdev
nyah has joined #osdev
elastic_dog has quit [Ping timeout: 252 seconds]
elastic_dog has joined #osdev
vdamewood has joined #osdev
Arthuria has quit [Ping timeout: 265 seconds]
elderK has quit [Quit: Connection closed for inactivity]
dumbsharka has joined #osdev
Arthuria has joined #osdev
ElectronApps has joined #osdev
junon has quit [Ping timeout: 265 seconds]
junon has joined #osdev
Sos has joined #osdev
dude12312414 has joined #osdev
gxt has quit [Remote host closed the connection]
gxt has joined #osdev
sprock has quit [Ping timeout: 252 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
AssKoala has joined #osdev
dutch has quit [Quit: WeeChat 3.3]
dutch has joined #osdev
srjek|home has joined #osdev
archenoth has joined #osdev
wereii has quit [Quit: ZNC - https://znc.in]
terrorjack has joined #osdev
wereii has joined #osdev
ElectronApps has quit [Remote host closed the connection]
Sos has quit [Quit: Leaving]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
archenoth has quit [Read error: Connection reset by peer]
terrorjack has joined #osdev
archenoth has joined #osdev
amine has joined #osdev
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
paulbarker has quit [Ping timeout: 268 seconds]
theruran has quit [Ping timeout: 268 seconds]
dmj` has quit [Ping timeout: 260 seconds]
Benjojo has quit [Ping timeout: 268 seconds]
dmj` has joined #osdev
seds has quit [Ping timeout: 250 seconds]
paulbarker has joined #osdev
theruran has joined #osdev
junon has quit [Ping timeout: 252 seconds]
seds has joined #osdev
Benjojo has joined #osdev
MarchHare has joined #osdev
terrorjack has joined #osdev
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #osdev
MarchHare has quit [Ping timeout: 250 seconds]
sprock has joined #osdev
[itchyjunk] has quit [Quit: Leaving]
zaquest has quit [Remote host closed the connection]
zaquest has joined #osdev
transistor has joined #osdev
anon16_ has joined #osdev
ckie is now known as cookie
Arthuria has quit [Ping timeout: 260 seconds]
dennis95 has quit [Quit: Leaving]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
sprock has quit [Ping timeout: 265 seconds]
terrorjack has joined #osdev
h4zel has joined #osdev
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
Vercas has quit [Remote host closed the connection]
Vercas has joined #osdev
Matt|home has joined #osdev
sprock has joined #osdev
h4zel has quit [Ping timeout: 240 seconds]
Matt|home has quit [Ping timeout: 265 seconds]
h4zel has joined #osdev
vai has joined #osdev
h4zel has quit [Ping timeout: 260 seconds]
MarchHare has joined #osdev
Elbeeo has joined #osdev
dude12312414 has quit [Ping timeout: 276 seconds]
AssKoala has quit [Ping timeout: 265 seconds]
srjek|home has quit [Ping timeout: 260 seconds]
Elbeeo has quit [Ping timeout: 252 seconds]
sprock has quit [Ping timeout: 260 seconds]
Matt|home has joined #osdev
sprock has joined #osdev
MarchHare has quit [Ping timeout: 252 seconds]
dude12312414 has joined #osdev
<bslsk05> ​'Creative 3D Blaster VLB: $395 DOS Graphics Card from 1995' by LGR (00:35:06)
<vai> Vesa bus
GeDaMo has quit [Quit: Leaving.]
MarchHare has joined #osdev
huranimo has joined #osdev
Elbeeo has joined #osdev
Elbeeo is now known as AssKoala
<huranimo> I am not even fucking sure how this could work in any other way than what i described. CMOS has 4incoming wires at least cascaded, cause two transistors gates need 4wires, those make out the state 4states, 2*2 cause the output bus is two wires, they can carry 11 00 01 10, obviously 00 and 11 come when write or read strobe is not active , when write strobe is active and data out like wdata ready signal is not there, the bus takes content, and the
<huranimo> content can not be anything else than what i described cause it is a tri-state buffer on off and stall
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
<bslsk05> ​www.electronics-tutorials.ws: Digital Buffer and the Tri-state Buffer Tutorial
ahalaney has quit [Remote host closed the connection]
dormito has quit [Quit: WeeChat 3.1]
<huranimo> Yes of course there relies a big vulnerability, with many permutes, that is how they got to my computer, that is why john mcafee did those things. It can be defended somewhat, but if an armor or army of computerized alu units over tcp are put against you, commodity hw can not do nothing but to get comporomised or a servers sholder or leg
<huranimo> when my father traited me along ith my family i knew i was done, magically enough i survived, but of course when the interest is more than usual they will comporomise your life when family allows, three papparazis are more than 1, and do more damage you know
<huranimo> when you allocate 60cores to compromise one sevrers shoulder of the service , yeah it will carry success if the server is not something special
<huranimo> when even my family selled info about me when i was 10 and always geve me up, i was all alone against thousounds of attackers
sortie has joined #osdev
<huranimo> i am special , but they went paranoid and over the limit, they were desperate and i was only 1
huranimo was kicked from #osdev by sortie [Oh hey]
sprock has quit [Ping timeout: 252 seconds]
anon16_ has quit [Ping timeout: 260 seconds]
srjek|home has joined #osdev
h4zel has joined #osdev
h4zel has quit [Ping timeout: 252 seconds]
dormito has joined #osdev
AssKoala has quit [Ping timeout: 252 seconds]
h4zel has joined #osdev
sprock has joined #osdev
h4zel has quit [Ping timeout: 260 seconds]
Izem has joined #osdev
Izem has quit [Remote host closed the connection]
Izem has joined #osdev
Izem has quit [Remote host closed the connection]
Izem has joined #osdev
Izem has quit [Remote host closed the connection]
dutch has quit [Quit: WeeChat 3.3]
dutch has joined #osdev
[itchyjunk] has joined #osdev
terrorjack has joined #osdev
chartreuse has quit [Ping timeout: 252 seconds]
chartreuse has joined #osdev