uint64_t addr; } __attribute__((packed));staticint_fd;staticintperf_open(uint64_t off) {structperf_event_attr attr;intrc;//printf("perf open %lx [%d]\n", off, (int) off);memset(&attr,0,sizeof(attr)); attr.type=PERF_TYPE_SOFTWARE; attr.size=sizeof(attr); attr.config=off;...
Linux Kernel是美国Linux基金会发布的开放源码操作系统Linux所使用的内核。 Linux kernel 3.8.9之前的版本中的kernel/events/core.c中的‘perf_swevent_init’函数中存在漏洞,该漏洞源于程序使用不正确的整数数据类型。本地攻击者可通过特制的perf_event_open系统调用利用该漏洞获得权限。 目前厂商已经发布了升级补丁以...
perf_init_event tries multiple init callbacks and does not reset the event state between tries. When x86_pmu_event_init runs, it unconditionally sets the destroy callback to hw_perf_event_destroy. On the next init attempt after x86_pmu_event_init, in perf_try_init_event, if the pmu's ...
Oct 28 18:04:03 kernel: WARNING: at arch/x86/kernel/cpu/perf_event_amd.c:701 amd_pmu_init+0x181/0x1f2() (Not tainted) Oct 28 18:04:03 kernel: Hardware name: VMware Virtual Platform Oct 28 18:04:03 kernel: Odd, counter constraints enabled but no core perfctrs detected! Oct 28 ...