Conflicts: drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 6e9d51b1a5cb ("net/mlx5e: Initialize link speed to zero") 1bffcea42926 ("net/mlx5e: Add devlink hairpin queues parameters") https://lore.kernel.org/all/20230324120623.4ebbc66f@canb.auug.org.au/ https://lore.kernel.org/all/20230321211135.47711-1-saeed@kernel.org/ Adjacent changes: drivers/net/phy/phy.c 323fe43cf9ae ("net: phy: Improved PHY error reporting in state machine") 4203d84032e2 ("net: phy: Ensure state transitions are processed from phy_stop()") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
31 lines
628 B
C
31 lines
628 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright (c) 2021 Facebook */
|
|
#include "vmlinux.h"
|
|
#include <bpf/bpf_helpers.h>
|
|
#define vm_flags vm_start
|
|
|
|
char _license[] SEC("license") = "GPL";
|
|
|
|
struct callback_ctx {
|
|
int dummy;
|
|
};
|
|
|
|
static long write_vma(struct task_struct *task, struct vm_area_struct *vma,
|
|
struct callback_ctx *data)
|
|
{
|
|
/* writing to vma, which is illegal */
|
|
vma->vm_start = 0xffffffffff600000;
|
|
|
|
return 0;
|
|
}
|
|
|
|
SEC("raw_tp/sys_enter")
|
|
int handle_getpid(void)
|
|
{
|
|
struct task_struct *task = bpf_get_current_task_btf();
|
|
struct callback_ctx data = {};
|
|
|
|
bpf_find_vma(task, 0, write_vma, &data, 0);
|
|
return 0;
|
|
}
|