From: Simon Wunderlich <sw@simonwunderlich.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: a@unstable.cc
Subject: Re: [B.A.T.M.A.N.] [PATCH maint] batman-adv: Check for alloc errors when preparing TT local data
Date: Fri, 02 Dec 2016 10:22:11 +0100 [thread overview]
Message-ID: <2904592.QTHgNB2zL4@prime> (raw)
In-Reply-To: <20161130204709.16257-1-sven@narfation.org>
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]
On Wednesday, November 30, 2016 9:47:09 PM CET Sven Eckelmann wrote:
> batadv_tt_prepare_tvlv_local_data can fail to allocate the memory for the
> new TVLV block. The caller is informed about this problem with the returned
> length of 0. Not checking this value results in an invalid memory access
> when either tt_data or tt_change is accessed.
>
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Fixes: 21a57f6e7a3b ("batman-adv: make the TT CRC logic VLAN specific")
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Applied in 9890c9f.
Thanks!
Simon
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2016-12-02 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 20:47 [B.A.T.M.A.N.] [PATCH maint] batman-adv: Check for alloc errors when preparing TT local data Sven Eckelmann
2016-12-02 9:22 ` Simon Wunderlich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2904592.QTHgNB2zL4@prime \
--to=sw@simonwunderlich.de \
--cc=a@unstable.cc \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox