Lines Matching refs:ubuf
16 if (!!log->ubuf != !!log->len_total) in bpf_verifier_log_attr_valid()
19 if (log->ubuf && log->level == 0) in bpf_verifier_log_attr_valid()
32 log->ubuf = log_buf; in bpf_vlog_init()
86 if (log->ubuf && new_n && in bpf_verifier_vlog()
87 copy_to_user(log->ubuf + cur_pos, log->kbuf, new_n)) in bpf_verifier_vlog()
102 if (!log->ubuf) in bpf_verifier_vlog()
124 if (copy_to_user(log->ubuf + buf_start, in bpf_verifier_vlog()
130 if (copy_to_user(log->ubuf + buf_start, in bpf_verifier_vlog()
134 if (copy_to_user(log->ubuf, in bpf_verifier_vlog()
143 log->ubuf = NULL; in bpf_verifier_vlog()
165 if (!log->ubuf) in bpf_vlog_reset()
173 if (pos < log->len_total && put_user(zero, log->ubuf + pos)) in bpf_vlog_reset()
174 log->ubuf = NULL; in bpf_vlog_reset()
200 if (copy_from_user(lbuf, log->ubuf + start, nn)) in bpf_vlog_reverse_ubuf()
202 if (copy_from_user(rbuf, log->ubuf + end - nn, nn)) in bpf_vlog_reverse_ubuf()
211 if (copy_to_user(log->ubuf + start, rbuf, nn)) in bpf_vlog_reverse_ubuf()
213 if (copy_to_user(log->ubuf + end - nn, lbuf, nn)) in bpf_vlog_reverse_ubuf()
232 if (!log->ubuf) in bpf_vlog_finalize()
278 log->ubuf = NULL; in bpf_vlog_finalize()
287 if (!!log->ubuf != !!log->len_total) in bpf_vlog_finalize()
291 if (log->ubuf && log->len_max > log->len_total) in bpf_vlog_finalize()