Re: [PATCH v2] qemu_block: Validate number of hosts for iSCSI disk device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 06, 2024 at 19:57:51 +0530, Rayhan Faizel wrote:
> An iSCSI device with zero hosts will result in a segmentation fault. This patch
> adds a check for the number of hosts, which must be one in the case of iSCSI.
> 
> Minimal reproducing XML:
> 
> <domain type='qemu'>
>     <name>MyGuest</name>
>     <uuid>4dea22b3-1d52-d8f3-2516-782e98ab3fa0</uuid>
>     <os>
>         <type arch='x86_64'>hvm</type>
>     </os>
>     <memory>4096</memory>
>     <devices>
>         <disk type='network'>
>             <source name='dummy' protocol='iscsi'/>
>             <target dev='vda'/>
>         </disk>
>     </devices>
> </domain>
> 
> Signed-off-by: Rayhan Faizel <rayhan.faizel@xxxxxxxxx>
> ---
> This crashing XML was detected by the WIP fuzzer which is being developed
> as part of Google Summer of Code 2024.
> 
> [Changes in v2]
> - Added testcase for iSCSI disk definitions with zero hosts

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux