18 Jan, 2019

1 commit

  • There is a potential NULL pointer dereference in case kzalloc()
    fails and returns NULL.

    Fix this by adding a NULL check on *session*

    Also, update the function header with information about the
    expected return on failure and remove unnecessary variable rc.

    This issue was detected with the help of Coccinelle.

    Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)")
    Cc: stable@vger.kernel.org
    Signed-off-by: Gustavo A. R. Silva
    Signed-off-by: Greg Kroah-Hartman

    Gustavo A. R. Silva
     

12 Sep, 2018

1 commit


07 Jul, 2018

1 commit

  • The function alloc_dma_buffer() is called from ibmvmc_add_buffer(),
    in which a spin lock be held here, so we should use GFP_ATOMIC when
    a lock is held.

    Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)")
    Signed-off-by: Wei Yongjun
    Reviewed-by: Bryant G. Ly
    Signed-off-by: Greg Kroah-Hartman

    Wei Yongjun
     

14 May, 2018

1 commit

  • This driver is a logical device which provides an
    interface between the hypervisor and a management
    partition. This interface is like a message
    passing interface. This management partition
    is intended to provide an alternative to HMC-based
    system management.

    VMC enables the Management LPAR to provide basic
    logical partition functions:
    - Logical Partition Configuration
    - Boot, start, and stop actions for individual
    partitions
    - Display of partition status
    - Management of virtual Ethernet
    - Management of virtual Storage
    - Basic system management

    This driver is to be used for the POWER Virtual
    Management Channel Virtual Adapter on the PowerPC
    platform. It provides a character device which
    allows for both request/response and async message
    support through the /dev/ibmvmc node.

    Signed-off-by: Bryant G. Ly
    Reviewed-by: Steven Royer
    Reviewed-by: Adam Reznechek
    Reviewed-by: Randy Dunlap
    Tested-by: Taylor Jakobson
    Tested-by: Brad Warrum
    Cc: Greg Kroah-Hartman
    Cc: Arnd Bergmann
    Cc: Benjamin Herrenschmidt
    Cc: Michael Ellerman
    Signed-off-by: Greg Kroah-Hartman

    Bryant G. Ly