fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
khaled has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 265 seconds]
hpt has joined #systemtap
sscox has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
amerey has quit [Remote host closed the connection]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
khaled has joined #systemtap
ggherdov has quit [Ping timeout: 248 seconds]
ggherdov has joined #systemtap
fdalleau_away is now known as fdalleau
mjw has joined #systemtap
orivej has joined #systemtap
hpt has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 240 seconds]
amerey has joined #systemtap
tromey has joined #systemtap
mjw has quit [Quit: Leaving]
fdalleau is now known as fdalleau_away
fdalleau_away is now known as fdalleau
tromey has quit [Quit: ERC (IRC client for Emacs 27.1)]
mjw has joined #systemtap
fdalleau is now known as fdalleau_away
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 268 seconds]
<kerneltoast>
fche, baddish news
<fche>
oh no
<kerneltoast>
the backtrace bug's cause is different on newer vs older kernels
<kerneltoast>
on newer kernels where it works half the time, kernel_read_file_from_path() is not returning an error
<kerneltoast>
on older kernels where it works none of the time, kernel_read_file_from_path() returns errors
<kerneltoast>
exciting isn't it
<kerneltoast>
the issue on newer kernels seems to be a race in stap
<kerneltoast>
i replaced kernel_read_file_from_path's vmalloc with a stack allocation and the bug "went away"
<kerneltoast>
(i replaced it by just passing in a pointer to a stack buffer)
<kerneltoast>
pos never equals i_size because i_size is a lie
<fche>
kernel_read_file() reads like it wants to read an Entire file
<kerneltoast>
yes, and on 5.11 it was changed to accommodate partial reads
<kerneltoast>
err the change wasn't in 5.11
<kerneltoast>
idk when it was, but you know what i mean
<kerneltoast>
on 5.11, i printed out i_size and it appears to be correct. but even if it weren't correct, stap's usage of kernel_read_file dodges that pesky i_size check entirely