Lines Matching full:storage
66 struct local_storage *storage; in BPF_PROG() local
79 storage = bpf_task_storage_get(&task_storage_map, task, 0, 0); in BPF_PROG()
80 if (!storage) in BPF_PROG()
84 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG()
86 storage = bpf_task_storage_get(&task_storage_map2, task, 0, in BPF_PROG()
88 if (!storage || storage->value) in BPF_PROG()
94 /* Ensure that the task_storage_map is disconnected from the storage. in BPF_PROG()
95 * The storage memory should not be freed back to the in BPF_PROG()
112 struct local_storage *storage; in BPF_PROG() local
122 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG()
124 if (!storage) in BPF_PROG()
127 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG()
142 struct local_storage *storage; in BPF_PROG() local
147 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, 0); in BPF_PROG()
148 if (!storage) in BPF_PROG()
152 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG()
156 * with the local storage. in BPF_PROG()
158 storage = bpf_sk_storage_get(&sk_storage_map2, sock->sk, 0, in BPF_PROG()
160 if (!storage) in BPF_PROG()
166 storage = bpf_sk_storage_get(&sk_storage_map2, sock->sk, 0, in BPF_PROG()
168 if (!storage) in BPF_PROG()
174 /* Ensure that the sk_storage_map is disconnected from the storage. */ in BPF_PROG()
187 struct local_storage *storage; in BPF_PROG() local
192 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, in BPF_PROG()
194 if (!storage) in BPF_PROG()
197 storage->value = DUMMY_STORAGE_VALUE; in BPF_PROG()
202 /* This uses the local storage to remember the inode of the binary that a
209 struct local_storage *storage; in BPF_PROG() local
214 storage = bpf_task_storage_get(&task_storage_map, in BPF_PROG()
217 if (storage) in BPF_PROG()
218 storage->exec_inode = bprm->file->f_inode; in BPF_PROG()
220 storage = bpf_inode_storage_get(&inode_storage_map, bprm->file->f_inode, in BPF_PROG()
222 if (!storage) in BPF_PROG()
225 storage->value = DUMMY_STORAGE_VALUE; in BPF_PROG()