kernel-fuzzer-for-xen-project: PT initialization fails when mapping PT buffer

xenforeignmemory_map_resource fails (returns 0) when initializing PT:

https://github.com/intel/kernel-fuzzer-for-xen-project/blob/master/src/ptcov.c#L113

Any tips on what can be the cause / how to debug this?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (21 by maintainers)

Most upvoted comments

OK, this is a bit embarrassing: a quick chat with @tklengyel revealed that I was using an outdated/unsupported Ubuntu version, where the kernel didn’t have support for IOCTL_PRIVCMD_MMAP_RESOURCE. Upgrading to 20.04 (5.4 kernel) resolved the issue.

@v-p-b I would certainly suggest trying it on another machine as well as this issue hasn’t popped up on anything I tried so far.

@icedevml Yea, it’s been on my TODO to move the submodule up closer to the latest version of the PT series. @v-p-b you can try Xen from that branch in the interim!