Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757611AbaDVUS7 (ORCPT ); Tue, 22 Apr 2014 16:18:59 -0400 Received: from fujitsu24.fnanic.fujitsu.com ([192.240.6.14]:43484 "EHLO fujitsu24.fnanic.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752602AbaDVUSy (ORCPT ); Tue, 22 Apr 2014 16:18:54 -0400 From: Motohiro Kosaki To: Davidlohr Bueso , Manfred Spraul CC: Davidlohr Bueso , Michael Kerrisk , Martin Schwidefsky , LKML , Andrew Morton , KAMEZAWA Hiroyuki , Motohiro Kosaki JP , "gthelen@google.com" , "aswin@hp.com" , "linux-mm@kvack.org" Date: Tue, 22 Apr 2014 13:15:44 -0700 Subject: RE: [PATCH 1/4] ipc/shm.c: check for ulong overflows in shmat Thread-Topic: [PATCH 1/4] ipc/shm.c: check for ulong overflows in shmat Thread-Index: Ac9eV05g8AatLGBhQXat4RU3I6X5TAAEDz8w Message-ID: <6B2BA408B38BA1478B473C31C3D2074E30989E9D7A@SV-EXCHANGE1.Corp.FC.LOCAL> References: <1398090397-2397-1-git-send-email-manfred@colorfullife.com> <1398090397-2397-2-git-send-email-manfred@colorfullife.com> <1398190717.2473.8.camel@buesod1.americas.hpqcorp.net> In-Reply-To: <1398190717.2473.8.camel@buesod1.americas.hpqcorp.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96,1.0.14,0.0.0000 definitions=2014-04-22_07:2014-04-22,2014-04-22,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id s3MKJAMA011690 > > find_vma_intersection does not work as intended if addr+size overflows. > > The patch adds a manual check before the call to find_vma_intersection. > > > > Signed-off-by: Manfred Spraul > > Acked-by: Davidlohr Bueso Acked-by: KOSAKI Motohiro ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?