Re: [PATCH v2 1/9] nvdimm: Reject writing label data to ROM instead of crashing QEMU

2023-08-22 Thread Stefan Hajnoczi
On Tue, Aug 22, 2023 at 01:44:49PM +0200, David Hildenbrand wrote: > Currently, when using a true R/O NVDIMM (ROM memory backend) with a label > area, the VM can easily crash QEMU by trying to write to the label area, > because the ROM memory is mmap'ed without PROT_WRITE. > > [root@vm-0 ~]# n

[PATCH v2 1/9] nvdimm: Reject writing label data to ROM instead of crashing QEMU

2023-08-22 Thread David Hildenbrand
Currently, when using a true R/O NVDIMM (ROM memory backend) with a label area, the VM can easily crash QEMU by trying to write to the label area, because the ROM memory is mmap'ed without PROT_WRITE. [root@vm-0 ~]# ndctl disable-region region0 disabled 1 region [root@vm-0 ~]# ndctl ze