qemu-libafl-bridge icon indicating copy to clipboard operation
qemu-libafl-bridge copied to clipboard

cpu.write_mem to MMIO devices is ignored

Open vringar opened this issue 11 months ago • 6 comments
trafficstars

As write_mem used the cpu_memory_rw_debug function it can not write to MMIO devices. The relevant upstream issue I needed this for my fuzzing, so I adapted the proposed patch and it works for me. I'm unable to engage with the QEMU mailing list, but I'd happily upstream this to you, if you are interested in taking it.

vringar avatar Dec 17 '24 18:12 vringar

indeed, thanks for the proposition. i think it would be nice to expose this in some way. do you mind opening a pr with the changes you did? i can have a look at your patch.

rmalmain avatar Dec 18 '24 17:12 rmalmain

I've challenged myself and am currently trying to get the patch directly into QEMU as well v1 v2

vringar avatar Dec 20 '24 20:12 vringar

good, it would be better to upstream this to QEMU directly. in that case, i think it's better to see how it goes on their side before merging your PR. feel free to post updates there, whether it gets merged to mainline or not

rmalmain avatar Jan 06 '25 13:01 rmalmain

hey @vringar, do you have any news regarding the patch? if not, i think we can merge it there while they decide to merge it or not in mainline.

rmalmain avatar Feb 20 '25 17:02 rmalmain

The patch set triggered by this request has been merged into a subtree. (Confirmed here) I couldn't figure out how to trace it from there to mainline but I believe it should be on it's way

vringar avatar Feb 20 '25 17:02 vringar

great, thanks for the update. i'll close this issue and the PR once we merge back the changes with the next qemu release.

rmalmain avatar Feb 21 '25 12:02 rmalmain

Closed by 1cceedd7726556052d3d3bcf08a07b7762f8aa7c

vringar avatar Jun 05 '25 14:06 vringar