proc,ebpf: mark as unreadable args with unsupported types with ebpf (#3444)
Only a few types can be read with ebpf, mark everything else as unreadable so that there are no downstream crashes. Fixes #3443
This commit is contained in:
parent
a53f1bf45d
commit
34104fb65d
@ -451,6 +451,11 @@ func (t *Target) GetBufferedTracepoints() []*UProbeTraceResult {
|
|||||||
v.Addr = ip.Addr
|
v.Addr = ip.Addr
|
||||||
v.Kind = ip.Kind
|
v.Kind = ip.Kind
|
||||||
|
|
||||||
|
if v.RealType == nil {
|
||||||
|
v.Unreadable = errors.New("type not supported by ebpf")
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
cachedMem := CreateLoadedCachedMemory(ip.Data)
|
cachedMem := CreateLoadedCachedMemory(ip.Data)
|
||||||
compMem, _ := CreateCompositeMemory(cachedMem, t.BinInfo().Arch, op.DwarfRegisters{}, ip.Pieces, ip.RealType.Common().ByteSize)
|
compMem, _ := CreateCompositeMemory(cachedMem, t.BinInfo().Arch, op.DwarfRegisters{}, ip.Pieces, ip.RealType.Common().ByteSize)
|
||||||
v.mem = compMem
|
v.mem = compMem
|
||||||
|
Loading…
Reference in New Issue
Block a user