From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Andrzej Hajda <a.hajda@samsung.com>
Cc: linux-kernel@vger.kernel.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Ingo Molnar <mingo@redhat.com>,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] perf tools: fix handling read result
Date: Tue, 06 Oct 2015 13:40:22 +0000 [thread overview]
Message-ID: <20151006134022.GL20515@kernel.org> (raw)
In-Reply-To: <1444122017-16856-1-git-send-email-a.hajda@samsung.com>
Em Tue, Oct 06, 2015 at 11:00:17AM +0200, Andrzej Hajda escreveu:
> The function can return negative value, assigning it to unsigned
> variable can cause memory corruption.
>
> The problem has been detected using proposed semantic patch
> scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
>
> [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
Thanks, applied.
- Arnaldo
WARNING: multiple messages have this Message-ID (diff)
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Andrzej Hajda <a.hajda@samsung.com>
Cc: linux-kernel@vger.kernel.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Ingo Molnar <mingo@redhat.com>,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] perf tools: fix handling read result
Date: Tue, 6 Oct 2015 10:40:22 -0300 [thread overview]
Message-ID: <20151006134022.GL20515@kernel.org> (raw)
In-Reply-To: <1444122017-16856-1-git-send-email-a.hajda@samsung.com>
Em Tue, Oct 06, 2015 at 11:00:17AM +0200, Andrzej Hajda escreveu:
> The function can return negative value, assigning it to unsigned
> variable can cause memory corruption.
>
> The problem has been detected using proposed semantic patch
> scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
>
> [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
Thanks, applied.
- Arnaldo
next prev parent reply other threads:[~2015-10-06 13:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-06 9:00 [PATCH] perf tools: fix handling read result Andrzej Hajda
2015-10-06 9:00 ` Andrzej Hajda
2015-10-06 13:40 ` Arnaldo Carvalho de Melo [this message]
2015-10-06 13:40 ` Arnaldo Carvalho de Melo
2015-10-08 9:46 ` [tip:perf/core] perf tools: Fix handling read result using a signed variable tip-bot for Andrzej Hajda
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=20151006134022.GL20515@kernel.org \
--to=acme@kernel.org \
--cc=a.hajda@samsung.com \
--cc=a.p.zijlstra@chello.nl \
--cc=b.zolnierkie@samsung.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mingo@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.