From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754842AbbIIEAF (ORCPT ); Wed, 9 Sep 2015 00:00:05 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:26376 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829AbbIID75 (ORCPT ); Tue, 8 Sep 2015 23:59:57 -0400 From: Wang Long To: , CC: , , , , , , , Subject: [PATCH 0/2] KASAN: fix a type conversion error and add test Date: Wed, 9 Sep 2015 03:59:38 +0000 Message-ID: <1441771180-206648-1-git-send-email-long.wanglong@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.55EFAEBB.003B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 4015928cc8a517554cd580041368c777 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset fix a type conversion error for KASAN. patch 1: this patch add some out-of-bounds testcases, the current KASAN code can not find these bugs. patch 2: fix the type conversion error, with this patch, KASAN could find these out-of-bounds bugs. Wang Long (2): lib: test_kasan: add some testcases kasan: Fix a type conversion error lib/test_kasan.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mm/kasan/kasan.c | 2 +- 2 files changed, 70 insertions(+), 1 deletion(-) -- 1.8.3.4