Skip to content
  • Hani Benhabiles's avatar
    nbd: Don't validate from and len in NBD_CMD_DISC. · 8c5d1abb
    Hani Benhabiles authored
    
    
    These values aren't used in this case.
    
    Currently, the from field in the request sent by the nbd kernel module leading
    to a false error message when ending the connection with the client.
    
    $ qemu-nbd some.img -v
    // After nbd-client -d /dev/nbd0
    nbd.c:nbd_trip():L1031: From: 18446744073709551104, Len: 0, Size: 20971520,
    Offset: 0
    nbd.c:nbd_trip():L1032: requested operation past EOF--bad client?
    nbd.c:nbd_receive_request():L638: read failed
    
    Signed-off-by: default avatarHani Benhabiles <kroosec@gmail.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    8c5d1abb