From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751656AbbIOHcK (ORCPT ); Tue, 15 Sep 2015 03:32:10 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:33595 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438AbbIOHcI (ORCPT ); Tue, 15 Sep 2015 03:32:08 -0400 Subject: Re: [PATCH V3] kasan: use IS_ALIGNED in memory_is_poisoned_8() To: Xishi Qiu , Andrew Morton , Andrey Konovalov , Rusty Russell , Michal Marek , "long.wanglong" References: <55F62C65.7070100@huawei.com> <55F77C52.3010101@huawei.com> Cc: Linux MM , LKML From: Andrey Ryabinin Message-ID: <55F7C976.8020901@gmail.com> Date: Tue, 15 Sep 2015 10:32:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55F77C52.3010101@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/15/2015 05:02 AM, Xishi Qiu wrote: > Use IS_ALIGNED() to determine whether the shadow span two bytes. It > generates less code and more readable. Also add some comments in shadow > check functions. > > Please apply "kasan: fix last shadow judgement in memory_is_poisoned_16()" > first. > > Signed-off-by: Xishi Qiu Acked-by: Andrey Ryabinin