lkml.org 
[lkml]   [2013]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/58] af_key: initialize satype in key_notify_policy_flush()
    Date
    3.5.7.21 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Nicolas Dichtel <nicolas.dichtel@6wind.com>

    commit 85dfb745ee40232876663ae206cba35f24ab2a40 upstream.

    This field was left uninitialized. Some user daemons perform check against this
    field.

    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
    Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    ---
    net/key/af_key.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/net/key/af_key.c b/net/key/af_key.c
    index 7dcb525..b606ce5 100644
    --- a/net/key/af_key.c
    +++ b/net/key/af_key.c
    @@ -2687,6 +2687,7 @@ static int key_notify_policy_flush(const struct km_event *c)
    hdr->sadb_msg_pid = c->pid;
    hdr->sadb_msg_version = PF_KEY_V2;
    hdr->sadb_msg_errno = (uint8_t) 0;
    + hdr->sadb_msg_satype = SADB_SATYPE_UNSPEC;
    hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
    hdr->sadb_msg_reserved = 0;
    pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net);
    --
    1.8.3.2


    \
     
     \ /
      Last update: 2013-09-02 16:21    [W:2.997 / U:1.444 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site