Read large payload from struct mm_struct without ring buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am intercepting sched_wakeup_new and am able to read command line
arguments for an event using active_mm within the current task_struct.
However, the maximum size for these arguments is way beyond the stack
size of an eBPF program. Is there a way to read such a large payload
into userspace?

I'm trying to maintain backwards compatibility so unfortunately ringbuf
is not an option for the time being. I've tried reading the payload
directly into a hashmap, but unfortunately can't read past 512 bytes
(max buffer size). Is there another way to reserve large amounts of
memory in a separate location and get a direct reference, so I can read
into it with something like bpf_probe_read?





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux