Thread (5 messages) read the whole thread 5 messages, 2 authors, 2019-09-03

Re: [PATCH bpf-next V9 1/3] bpf: new helper to obtain namespace data from current task

From: Yonghong Song <hidden>
Date: 2019-09-03 20:37:09
Also in: bpf


On 9/3/19 11:45 AM, Carlos Antonio Neira Bustos wrote:
Hi Yonghong,
quoted
quoted
Yes, the samples/bpf test case can be removed.
Could you create a selftest with tracpoint net/netif_receive_skb, which
also uses the proposed helper? net/netif_receive_skb will happen in
interrupt context and it should catch the issue as well if
filename_lookup still get called in interrupt context.
For this one scenario I just created another selftest with the only difference
that the tracepoint is /net/netif_receive_skb so this fails with -EPERM.
Is that enough?.
This should be fine.
I have made this comment on include/uapi/linux/bpf.h, maybe is too terse?

struct bpf_pidns_info {
	__u32 dev;	/* dev_t from /proc/self/ns/pid inode */
	__u32 nsid;
	__u32 tgid;
	__u32 pid;
};
Let us keep the above for now. I may have further comments based on
your test code which uses "dev".
I'm only missing clearing out those questions to be ready to submit v11 of this patch.
Please go ahead to submit the new version.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help