Read the whole thread, 22 messages PreviousNext Re: [PATCH bpf-next v10 06/10] bpf,landlock: Add a new map type: inode FromAl Viro <viro@zeniv.linux.org.uk> Date2019-09-08 22:20:15 Also inlinux-api, linux-fsdevel, linux-security-module, lkmlReply toMickaël Salaün, 2019-09-08 On Mon, Sep 09, 2019 at 12:09:57AM +0200, Mickaël Salaün wrote: quotedquotedquoted+ rcu_read_lock(); + ptr = htab_map_lookup_elem(map, &inode); + iput(inode); Wait a sec. You are doing _what_ under rcu_read_lock()? quotedquotedquoted+ if (IS_ERR(ptr)) { + ret = PTR_ERR(ptr); + } else if (!ptr) { + ret = -ENOENT; + } else { + ret = 0; + copy_map_value(map, value, ptr); + } + rcu_read_unlock();
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help