16 Nov, 2012

2 commits

  • Initial patch by Ben Hutchings

    Standard C strings are arrays of char, not __u8 (unsigned char).
    Declare variables and parameters accordingly, and add the necessary
    casts.

    Signed-off-by: Tomas Hozza
    Acked-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Tomas Hozza
     
  • The source code without this patch caused hypervkvpd to exit when it processed
    a spoofed Netlink packet which has been sent from an untrusted local user.
    Now Netlink messages with a non-zero nl_pid source address are ignored
    and a warning is printed into the syslog.

    Signed-off-by: Tomas Hozza
    Acked-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Tomas Hozza
     

31 Oct, 2012

2 commits

  • Don't return loopback addresses and further don't terminate
    the IP address strings with a semicolon. This is the current
    behavior of Windows guests.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Reported-by: Claudio Latini
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • Currently, we are returning the same string for both OSBuildNumber
    and OSVersion keys. Return the full uts string for the OSBuild
    key since Windows does not impose any restrictions on this.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Reported-by: Claudio Latini
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     

11 Sep, 2012

10 commits

  • There is a new convention, used by systemd and supported by most
    distributions, to put basic OS release information in /etc/os-release.
    Added some additional error checking on strdup()

    Signed-off-by: Ben Hutchings
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Ben Hutchings
     
  • hv_kvp_daemon currently does not check whether fread() or fwrite()
    succeed. Add the necessary checks. Also, remove the incorrect use of
    feof() before fread().

    Signed-off-by: Ben Hutchings
    Signed-off-by: K. Y. Srinivasan
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Ben Hutchings
     
  • Linux native exit codes are 8-bit unsigned values. exit(-1) results
    in an exit code of 255, which is usually reserved for shells reporting
    'command not found'. Use the portable value EXIT_FAILURE. (Not that
    this matters much for a daemon.)

    Signed-off-by: Ben Hutchings
    Signed-off-by: K. Y. Srinivasan
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Ben Hutchings
     
  • Match up each fopen() with an fclose().

    Signed-off-by: Ben Hutchings
    Signed-off-by: K. Y. Srinivasan
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Ben Hutchings
     
  • Now implement the KVP verb - KVP_OP_GET_IP_INFO. This operation retrieves IP
    information for the specified interface.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • Rename the function kvp_get_ip_address() to better reflect the functionality
    being implemented.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • Implement the KVP verb - KVP_OP_SET_IP_INFO. This operation configures the
    specified interface based on the given configuration. Since configuring
    an interface is very distro specific, we invoke an external (Distro specific)
    script to configure the interface.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • To keep the KVP daemon code free of distro specific details, we invoke an
    external script to configure the interface. This is an example script that
    was used to test the KVP code. This script has to be implemented in a Distro
    specific fashion. For instance on distros that ship with Network Manager enabled,
    this script can be based on NM APIs.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • Collect information on dhcp setting for the specified interface.
    We invoke an external (Distro specific) script to get this information.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • To keep the KVP daemon code free of distro specific details, we invoke an
    external script to retrieve the DHCP state. This is an example script that
    was used to test the KVP code. This script has to be implemented in a Distro
    specific fashion. For instance on distros that ship with Network Manager enabled,
    this script can be based on NM APIs.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     

05 Sep, 2012

4 commits


17 Aug, 2012

8 commits


09 Jun, 2012

1 commit

  • The SuSE security team suggested to use recvfrom instead of recv to be
    certain that the connector message is originated from kernel.

    CVE-2012-2669

    Signed-off-by: Olaf Hering
    Signed-off-by: Marcus Meissner
    Signed-off-by: Sebastian Krahmer
    Signed-off-by: K. Y. Srinivasan
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Olaf Hering
     

17 Mar, 2012

3 commits

  • We have only supported enumeration only from the AUTO pool. Now support
    enumeration from all the available pools.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Reviewed-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • Now fully support the new KVP messages in the user level daemon. Hyper-V defines
    multiple persistent pools to which the host can write/read/modify KVP tuples.
    In this patch we implement a file for each specified pool, where the KVP tuples
    will be stored in the guest.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Reviewed-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     
  • Support the newly defined KVP message types. It turns out that the host
    pushes a set of standard key value pairs as soon as the guest opens the KVP channel.
    Since we cannot handle these tuples until the user level daemon loads up, defer
    reading the KVP channel until the user level daemon is launched.

    Signed-off-by: K. Y. Srinivasan
    Reviewed-by: Haiyang Zhang
    Reviewed-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    K. Y. Srinivasan
     

14 Mar, 2012

1 commit


10 Feb, 2012

2 commits


03 Feb, 2012

1 commit


11 Oct, 2011

1 commit

  • After many years wandering the desert, it is finally time for the
    Microsoft HyperV code to move out of the staging directory. Or at least
    the core hyperv bus code, and the utility driver, the rest still have
    some review to get through by the various subsystem maintainers.

    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: K. Y. Srinivasan

    Greg Kroah-Hartman