/kernel/ |
D | audit.c | 200 struct sk_buff *skb; /* formatted skb ready to send */ member 208 struct sk_buff *skb; member 499 struct sk_buff *skb, bool *ack) in auditd_set() argument 517 nlh = nlmsg_hdr(skb); in auditd_set() 518 netlink_ack(skb, nlh, 0, NULL); in auditd_set() 541 static void kauditd_printk_skb(struct sk_buff *skb) in kauditd_printk_skb() argument 543 struct nlmsghdr *nlh = nlmsg_hdr(skb); in kauditd_printk_skb() 559 static void kauditd_rehold_skb(struct sk_buff *skb, __always_unused int error) in kauditd_rehold_skb() argument 562 skb_queue_tail(&audit_hold_queue, skb); in kauditd_rehold_skb() 578 static void kauditd_hold_skb(struct sk_buff *skb, int error) in kauditd_hold_skb() argument [all …]
|
D | taskstats.c | 69 struct sk_buff *skb; in prepare_reply() local 75 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply() 76 if (!skb) in prepare_reply() 82 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply() 84 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 86 nlmsg_free(skb); in prepare_reply() 90 *skbp = skb; in prepare_reply() 97 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument 99 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_reply() 102 genlmsg_end(skb, reply); in send_reply() [all …]
|
D | auditfilter.c | 1080 struct sk_buff *skb; in audit_list_rules() local 1093 skb = audit_make_reply(seq, AUDIT_LIST_RULES, 0, 1, in audit_list_rules() 1096 if (skb) in audit_list_rules() 1097 skb_queue_tail(q, skb); in audit_list_rules() 1101 skb = audit_make_reply(seq, AUDIT_LIST_RULES, 1, 1, NULL, 0); in audit_list_rules() 1102 if (skb) in audit_list_rules() 1103 skb_queue_tail(q, skb); in audit_list_rules()
|
/kernel/bpf/ |
D | cpumap.c | 185 struct sk_buff *skb, *tmp; in cpu_map_bpf_prog_run_skb() local 190 list_for_each_entry_safe(skb, tmp, listp, list) { in cpu_map_bpf_prog_run_skb() 191 act = bpf_prog_run_generic_xdp(skb, &xdp, rcpu->prog); in cpu_map_bpf_prog_run_skb() 196 skb_list_del_init(skb); in cpu_map_bpf_prog_run_skb() 197 err = xdp_do_generic_redirect(skb->dev, skb, &xdp, in cpu_map_bpf_prog_run_skb() 200 kfree_skb(skb); in cpu_map_bpf_prog_run_skb() 210 trace_xdp_exception(skb->dev, rcpu->prog, act); in cpu_map_bpf_prog_run_skb() 213 skb_list_del_init(skb); in cpu_map_bpf_prog_run_skb() 214 kfree_skb(skb); in cpu_map_bpf_prog_run_skb() 353 struct sk_buff *skb = f; in cpu_map_kthread_run() local [all …]
|
D | devmap.c | 488 static u32 dev_map_bpf_prog_run_skb(struct sk_buff *skb, struct bpf_dtab_netdev *dst) in dev_map_bpf_prog_run_skb() argument 497 __skb_pull(skb, skb->mac_len); in dev_map_bpf_prog_run_skb() 500 act = bpf_prog_run_generic_xdp(skb, &xdp, dst->xdp_prog); in dev_map_bpf_prog_run_skb() 503 __skb_push(skb, skb->mac_len); in dev_map_bpf_prog_run_skb() 512 kfree_skb(skb); in dev_map_bpf_prog_run_skb() 659 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect() argument 664 err = xdp_ok_fwd_dev(dst->dev, skb->len); in dev_map_generic_redirect() 672 if (dev_map_bpf_prog_run_skb(skb, dst) != XDP_PASS) in dev_map_generic_redirect() 675 skb->dev = dst->dev; in dev_map_generic_redirect() 676 generic_xdp_tx(skb, xdp_prog); in dev_map_generic_redirect() [all …]
|
D | cgroup.c | 1357 struct sk_buff *skb, in __cgroup_bpf_run_filter_skb() argument 1360 unsigned int offset = skb->data - skb_network_header(skb); in __cgroup_bpf_run_filter_skb() 1373 save_sk = skb->sk; in __cgroup_bpf_run_filter_skb() 1374 skb->sk = sk; in __cgroup_bpf_run_filter_skb() 1375 __skb_push(skb, offset); in __cgroup_bpf_run_filter_skb() 1378 bpf_compute_and_save_data_end(skb, &saved_data_end); in __cgroup_bpf_run_filter_skb() 1384 ret = bpf_prog_run_array_cg(&cgrp->bpf, atype, skb, in __cgroup_bpf_run_filter_skb() 1411 skb, __bpf_prog_run_save_cb, 0, in __cgroup_bpf_run_filter_skb() 1416 bpf_restore_data_end(skb, saved_data_end); in __cgroup_bpf_run_filter_skb() 1417 __skb_pull(skb, offset); in __cgroup_bpf_run_filter_skb() [all …]
|
D | core.c | 68 void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size) in bpf_internal_load_pointer_neg_helper() argument 73 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in bpf_internal_load_pointer_neg_helper() 75 if (unlikely(!skb_mac_header_was_set(skb))) in bpf_internal_load_pointer_neg_helper() 77 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in bpf_internal_load_pointer_neg_helper() 79 if (ptr >= skb->head && ptr + size <= skb_tail_pointer(skb)) in bpf_internal_load_pointer_neg_helper() 2725 int __weak skb_copy_bits(const struct sk_buff *skb, int offset, void *to, in skb_copy_bits() argument
|