Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp416478imm; Fri, 1 Jun 2018 03:19:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKILgUpQbqzywUhaaQstEkal6Rcx2EvRpPqz01hmNXCbiEr10tGhJU7EyTDeYU6kay+sJxuq X-Received: by 2002:a65:420d:: with SMTP id c13-v6mr8352188pgq.265.1527848348021; Fri, 01 Jun 2018 03:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527848347; cv=none; d=google.com; s=arc-20160816; b=zOFN5+vIJ1GMLCBCU5fVpMdz3PGb7cMKpHL+dDR8oRNk3EJ1xwusLnPwhezzI8FrAt Iz4EBrZUitti5NdJ1zxgr5ttw5s0YGmGMonrk2xtFX+1oma+PppzGHi6SPtFEeEwmcZE 60q486WikNvY8PgDZGLknyWdo5B4YUMj3UmxNFtBWpHH+dYeP58TXrjsNVhkh7WPSW2O 9d+XXogWrBcHHGrS7qSYX2L5TqqspmtQN5l+wBH/KGGV1nf6pNPUCjFAc4Fqoem33muR C6iK9Cr/BKyh1ptYzYlVV2E2Q5naCYvBvhmju4FG8k1G0V5JmK2GmzgPKLRaA7idzGXe g8Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bQWGCQXwZqYc6rbUbqJG51QYvBHC98X39dgGroz6/f8=; b=aHT5EMbI1gEryrkES7yvmRnyE1jMm+aNvoiKREN6PSQ+M7zwojBLXgvDBxxrIGWvYG kta4CeTgaeX1SYPZzmB/IzDEzbnLTU3cRXAtNbDCsRNuGHB50kO/n58EtuWPKyVgFPP5 JVV6+QDzCXjQguji9x0LPFQmMqKaIlBzpd15ICOdQQNlPH0ilqftIEzefVJydAdmh3+p 39RtahMVlymUdebMygbiaRzHyEm4mx8FEd+6r/LNrtiFskEMpm6NRgxJlrA7SpUtntQ1 oA9dm3h2u/uFI0xzP1iFVevUgd63WUbAItt+/Y36Tk2vsrc3sYul4qJbX3rSpy70054I ckKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ot28zX+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s192-v6si15927193pgc.607.2018.06.01.03.18.53; Fri, 01 Jun 2018 03:19:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ot28zX+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751444AbeFAKSc (ORCPT + 99 others); Fri, 1 Jun 2018 06:18:32 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:43287 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeFAKSa (ORCPT ); Fri, 1 Jun 2018 06:18:30 -0400 Received: by mail-qt0-f193.google.com with SMTP id y89-v6so6031869qtd.10 for ; Fri, 01 Jun 2018 03:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bQWGCQXwZqYc6rbUbqJG51QYvBHC98X39dgGroz6/f8=; b=Ot28zX+m7wJwkgw7TI/3R+18YB1Vi9KNBhCM21M2Pgt1jZaKSH+irDs510eJu02omP 3W68L/qbOJV5Dca3uR+utC9eHrzfePpdJiw1WlDOMF3XMdDIm8QEpqA9g+XVuFmdZkMI +DE8UHdUKscSDnNVFj5Fw+r3Za79G5vhLO0nvy9AU/4H/NhWgn+VFaRyybeSrhOUVrbL l4onOgdEUEzxOa/F4dD4MDPstbcmgcJQrHlvqEG2BBnhE5kOx95w25X6p6eAaQkwUm60 NtHLDoM8conxrXpUUcQsyppsKhhruUt/swT1GfZbqsa13KbGCh90GST6eJQNkt6zDzjD HMjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bQWGCQXwZqYc6rbUbqJG51QYvBHC98X39dgGroz6/f8=; b=aN3OH3sJ8x5dcr7Ww/DT0emVgJE3rZAR7q6c6GpD3SEL8c314wTSRO5de3DgDFLS13 ruzOUgex/Tu499x5vz+ASg0w1zVDz6CY7B5xEWG8k9T7jc3hGtO9qouPln2Qq8FCFrTe ejzSZAh2fjpF8/92k9PUwwdNhl9oKGUJ16dsFgp0CvXG1S/EY9AFjO2hiYNVy/Pxd/qo ydD2ZMWfQx7f0MsFbMdl7P3InPtVemPglz7q/07tKfXuv0fr7W0Y/L/EstNZlNGvqyYs PAEp4SrkdWqFZ0/OBqwhpNlYmVFHHKKS2c1eDWqJnJe51x8QOQrlV7vjX277FnKDKLwG c8FA== X-Gm-Message-State: APt69E35cNhh5Iv42KOMXrXFuGSng7rnhhTFdN3Ta3DSv1tFWqubvRwX ZT604gf0KsNBjFRTA6HVSOOINtBfPZbgA/gsjq4= X-Received: by 2002:aed:3ce8:: with SMTP id e37-v6mr10159065qtf.295.1527848310257; Fri, 01 Jun 2018 03:18:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:98f9:0:0:0:0:0 with HTTP; Fri, 1 Jun 2018 03:18:29 -0700 (PDT) In-Reply-To: <20180601004233.37822-6-keescook@chromium.org> References: <20180601004233.37822-1-keescook@chromium.org> <20180601004233.37822-6-keescook@chromium.org> From: Andy Shevchenko Date: Fri, 1 Jun 2018 13:18:29 +0300 Message-ID: Subject: Re: [PATCH v3 05/16] lib: overflow: Add memory allocation overflow tests To: Kees Cook Cc: Matthew Wilcox , Linus Torvalds , Rasmus Villemoes , Matthew Wilcox , LKML , Linux-MM , Kernel Hardening Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 1, 2018 at 3:42 AM, Kees Cook wrote: > Make sure that the memory allocators are behaving as expected in the face > of overflows. > #include > #include > #include > +#include > +#include > +#include A nit, can we keep it in order? -- With Best Regards, Andy Shevchenko