gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
drakonis has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos-chat
<simpson> Wow. Yes. More of that.
<gchristensen> so good
drakonis has quit [Quit: WeeChat 2.3]
nand0p has joined #nixos-chat
drakonis has joined #nixos-chat
<mdash> i can't decide if i like icowid or Erowid Recruiter better
<mdash> but yeah that's almost as good as the all-time winner https://twitter.com/icowid/status/974506940528148484
pie__ has joined #nixos-chat
drakonis has quit [Quit: WeeChat 2.3]
pie___ has quit [Ping timeout: 245 seconds]
<clever> nh2: strace is using the same api as gdb, so it should be trivial to just look at the instructions the return address points to, and see what it was
<nh2> clever: you mean the instruction pointer should point at the syscall/int80 instruction at that time?
<nh2> clever: ah, strace actually has code for it that I accidentally read by before (but didn't realise it was this because I followed another red herring), and Linus Torvalds explains it in detail here: https://lore.kernel.org/lkml/CA+55aFzcSVmdDj9Lh_gdbz1OzHyEm6ZrGPBDAJnywm2LF_eVyg@mail.gmail.com/
<clever> nh2: the IP may point to the opcode after int80, so you have to go backwards a bit and guess
<clever> nh2: related, it is possible to insert int80 linux syscalls, into windows software (and catch the error windows generates)
<clever> nh2: so if that ever gets ran on wine, it can just ignore wine and mess with the host!
<disasm> woohoo! xps 9380 /w sway working :) zfs recv of home directory made it super simple to get going again (aside from debugging intel drm issues related to whiskey lake that were fixed in linuxPackages_latest)
<disasm> https://github.com/disassembler/network updated with my latest config :) The machine is irkutsk if anyone wants to copy the config.
<disasm> what I'm not sure of is if I should be using any of the 9370 hardware fixes in nixos-hardware, but running well so far, so not messing with it.
<nh2> clever: the strace code claims that the approach is unreliable, but I don't know why (have updated https://superuser.com/questions/834122/how-to-distinguish-syscalls-form-int-80h-when-using-ptrace/1403397#1403397 with the question)
<clever> nh2: opcode lengths are variable, and if you look backwards, it could either be an arg to a large opcode, or an opcode itself
<nh2> clever: but don't we know the length of both `syscall` and `int 0x80`?
<nh2> and we know they are the last one
<clever> and `syscall` has no args, so it should be fairly short and constant
endformationage has quit [Quit: WeeChat 2.3]
iqubic has quit [Ping timeout: 240 seconds]
jackdk has quit [Quit: Ping timeout (120 seconds)]
Guanin has joined #nixos-chat
qyliss has quit [Quit: bye]
qyliss^work has quit [Quit: bye]
qyliss has joined #nixos-chat
qyliss^work has joined #nixos-chat
Guanin has quit [Remote host closed the connection]
Guanin has joined #nixos-chat
__monty__ has joined #nixos-chat
Synthetica has joined #nixos-chat
Guanin has quit [Remote host closed the connection]
endformationage has joined #nixos-chat
Guanin has joined #nixos-chat
Guanin has quit [Remote host closed the connection]
Guanin has joined #nixos-chat
drakonis has joined #nixos-chat
Synthetica has quit [Quit: Connection closed for inactivity]
drakonis has quit [Quit: WeeChat 2.3]
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-chat
lopsided98 has quit [Client Quit]
lopsided98 has joined #nixos-chat
__monty__ has quit [Quit: leaving]
Guanin has quit [Remote host closed the connection]
drakonis has joined #nixos-chat
iqubic has joined #nixos-chat