fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
hpt has joined #systemtap
hpt has quit [Quit: leaving]
gromero has quit [Ping timeout: 255 seconds]
gromero has joined #systemtap
slowfranklin has joined #systemtap
_whitelogger has joined #systemtap
sanoj has joined #systemtap
gromero has quit [Ping timeout: 240 seconds]
slowfranklin has quit [Quit: slowfranklin]
naveen_ has joined #systemtap
wmealing` has joined #systemtap
<wmealing`> the topic always makes me wonder for a bit
<wmealing`> so if nobody is here, the conversation will be logged
<wmealing`> watch what you're saying, FCHE is always loggiiiiinnng
<wmealing`> fche: i didn't find a nice way to replace that function
<wmealing`> your idea seemed to work though
sanoj has quit [Ping timeout: 260 seconds]
djellemah has joined #systemtap
slowfranklin has joined #systemtap
gila has joined #systemtap
djellemah_ has joined #systemtap
djellemah has quit [Ping timeout: 240 seconds]
sanoj has joined #systemtap
groleo has joined #systemtap
naveen_ has quit [Quit: WeeChat 1.9]
naveen_ has joined #systemtap
naveen_ has quit [Client Quit]
mjw has joined #systemtap
<fche> hey wade
<fche> the cve workaround idea? or the CRAZY BAD MAN rewrite pt_regs->pc to jump out of a function idea?
lindi- has quit [Remote host closed the connection]
lindi- has joined #systemtap
lindi- has joined #systemtap
lindi- has quit [Changing host]
lindi- has quit [Remote host closed the connection]
lindi- has joined #systemtap
lindi- has joined #systemtap
lindi- has quit [Changing host]
sanoj has quit [Quit: Leaving]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gromero has joined #systemtap
<wmealing`> fche: bit of both
<wmealing`> fche: i kinda ended up just doing a long jump to the return instruction location
<wmealing`> thats a bad idea btw.
<wmealing`> either way i think i'll need to find a way around it more and more
<wmealing`> as i'm going to have to do this often
<wmealing`> there are plenty of "docz" on how to override syscalls
<wmealing`> most of which is not functional because the table is no longer public
<wmealing`> however even if it was, thats only going to be a small % of the cases.
<wmealing`> i thought perhaps some kind of ebpf filter
<wmealing`> but also, not a great idea.
wmealing` has quit [Remote host closed the connection]
<fche> with future gcc & debuginfo, stap at least has a hope of identifying function exit points / epilogues, so as to be able to branch there
<fche> hm, dtrace, bless its heart, does or did function-return probing by searching the machine code for epilogue type byte sequences; surprised it worked, but then they use framepointers everywhere, so that may help
wcohen has quit [Ping timeout: 240 seconds]
wcohen has joined #systemtap
drsmith_away is now known as drsmith
mbenitez has joined #systemtap
irker038 has joined #systemtap
<irker038> systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-204-gd5ab5fe / testsuite/systemtap.syscall/aio.c: Correct a small bug in the aio syscall testcase. http://tinyurl.com/y7jb64qm
wcohen has quit [Ping timeout: 240 seconds]
brolley has joined #systemtap
<sj0rz> it's not too hard to find the exit point using decompilation and some recursive block analysis right
naveen has joined #systemtap
<sj0rz> *disassembly
<sj0rz> but i might be missing some context here
<fche> it's probably hard to do robustly, esp. with ever more cleverer compilers & assembelrs
<sj0rz> fair point
nkambo__ has quit [Remote host closed the connection]
wcohen has joined #systemtap
groleo has quit [Ping timeout: 240 seconds]
tromey has joined #systemtap
naveen has quit [Quit: WeeChat 1.9]
gila has joined #systemtap
groleo has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
naveen has joined #systemtap
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
irker038 has quit [Quit: transmission timeout]
irker079 has joined #systemtap
<irker079> systemtap: dsmith systemtap.git:refs/heads/master * release-3.1-205-g55594da / runtime/linux/kprobes.c: Fix PR21859 by locking the module mutex. http://tinyurl.com/yb4j5dud
groleo has quit [Read error: Connection reset by peer]
groleo has joined #systemtap
naveen has quit [Ping timeout: 260 seconds]
slowfranklin has joined #systemtap
slowfranklin has quit [Client Quit]
gromero has quit [Quit: Leaving]
naveen has joined #systemtap
gila has joined #systemtap
drsmith is now known as drsmith_away
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gila has joined #systemtap
groleo has quit [Quit: Leaving.]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
naveen has quit [Quit: WeeChat 1.9]
drsmith_away is now known as drsmith
wcohen has quit [Ping timeout: 240 seconds]
gromero has joined #systemtap
<gromero> Hi. I'm getting "ERROR: read fault [man error::fault] at 0x0000000000000108 (addr) near operator '@cast' at ./full.d:171:21" probably because I'm trying to deref a variable that at sometimes gets null. What's the correct way to avoid it in systemtap (something like if (p!=NULL) ... I guess?)
<gromero> line in question is: 171 p_regs_msr = @cast(prev_task, "task_struct", "kernel<linux/sched.h>")->thread->regs->msr
<fche> yeah, or try { ... } catch { ... }
<gromero> fche: ah! thanks!
<fche> righto
<fche> there are other possibilites in [man error::fault] (that's a man page!)
<gromero> --skip-badvars stopped the crashes but stopped to work as intended...
<fche> that - or try/catch - won't make a faulting address work, just not fail that particular way
<fche> and yeah, first-principles checking if ($ptr->field != 0) also works
<gromero> ok. I think that in my case thread->regs can be zero at some conditions (maybe on new create and scheduled task...)
<gromero> s/zero/NULL/
<fche> could be. stap cannot lock the kernel structures while the script is traversing them, so race conditions can occur
<fche> so this is why stap protects itself with that read fault error
<gromero> hm interesting
gromero has quit [Ping timeout: 255 seconds]
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
groleo has joined #systemtap
gromero has joined #systemtap
gromero has quit [Ping timeout: 240 seconds]
mbenitez has quit [Quit: Leaving]
drsmith is now known as drsmith_away
groleo has quit [Quit: Leaving.]
brolley has left #systemtap [#systemtap]
dmalcolm_ has joined #systemtap
dmalcolm has quit [Quit: Leaving]
dmalcolm_ is now known as dmalcolm
dmalcolm has quit [Quit: Leaving]
dmalcolm has joined #systemtap
dmalcolm has quit [Remote host closed the connection]
mjw has quit [Quit: Leaving]
wcohen has joined #systemtap
irker079 has quit [Quit: transmission timeout]