bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* probe_write_common_error
@ 2020-03-31 16:16 Gilad Reti
  2020-04-01 23:28 ` probe_write_common_error Alexei Starovoitov
  0 siblings, 1 reply; 5+ messages in thread
From: Gilad Reti @ 2020-03-31 16:16 UTC (permalink / raw)
  To: bpf

When I try to probe_write_common into a writable location (e.g a
memory address on a usermode stack) which is not yet mapped or mapped
as read only to the memory, the function sometimes return a EFAULT
(bad address) error. This is happening since the pagefault handler was
disabled and thus this memory location won't be mapped when the
function tries to write into it, an error will be returned and no data
will be written.
Is that behavior intended? Did you want those functions to have as
less side-effects are possible?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-21 18:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 16:16 probe_write_common_error Gilad Reti
2020-04-01 23:28 ` probe_write_common_error Alexei Starovoitov
     [not found]   ` <CANaYP3GgpWKpiW-ATQ6UYLwNWJ3EqBKf-6d8Ki4xWXHVBOGvQw@mail.gmail.com>
2020-04-02 15:37     ` probe_write_common_error Alexei Starovoitov
2020-04-02 16:16       ` probe_write_common_error Gilad Reti
2020-04-21 18:54         ` probe_write_common_error John Fastabend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).