[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150803152557.GF20968@8bytes.org>
Date: Mon, 3 Aug 2015 17:25:58 +0200
From: Joerg Roedel <joro@...tes.org>
To: Salva Peiró <speirofr@...il.com>
Cc: iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iommu/omap: Fix debug_read_tlb() to use seq_printf()
On Thu, Jul 23, 2015 at 02:26:19PM +0200, Salva Peiró wrote:
> The debug_read_tlb() uses the sprintf() functions directly on the buffer
> allocated by buf = kmalloc(count), without taking into account the size
> of the buffer, with the consequence corrupting the heap, depending on
> the count requested by the user.
>
> The patch fixes the issue replacing sprintf() by seq_printf().
>
> Signed-off-by: Salva Peiró <speirofr@...il.com>
> ---
> drivers/iommu/omap-iommu-debug.c | 26 +++++++-------------------
> drivers/iommu/omap-iommu.c | 28 +++++++++++-----------------
> drivers/iommu/omap-iommu.h | 3 +--
> 3 files changed, 19 insertions(+), 38 deletions(-)
Applied, thanks. I had to rebase it on top of Suman's changes, but that
wasn't too hard.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists