Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6858504imm; Wed, 27 Jun 2018 14:54:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLclz7EnYqswQ4+HyinauC9SYHns03JunCgPKyOb1HDboRRPIeyEiWQvY7fpn53YK8Bv1L9 X-Received: by 2002:a65:4b4a:: with SMTP id k10-v6mr6824726pgt.12.1530136455284; Wed, 27 Jun 2018 14:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530136455; cv=none; d=google.com; s=arc-20160816; b=ZKdwhqKh3oLKEq4i1Myhq45N1DOWbuaCUZoLt5XX5uPV4pafZ2vLBDwShfMmc+YNpV C1HA0/6dikZ/7xUQVh5Jn8y8SEAtIlnUmTW5rEGenRVbMUTHvCTT6r0flfyqVHiZcVfh yedcEs0Mj1a8BVsea4mOXFslbsK6HllvnoXhAFNkB2o0fUOabOkdJf5D1C6hheBqDb3M SCr5ExV28zXKKd2mwmRomOLiNN8umWcVX6ISozPHl+uawqD4PL13/OpOZCONqdQzxMid EdU6ftPskOCHfupT7+6b+QdUQZdM9B1kHYE9FC1T8og6h2DpyGkb3U6Zo8/AkyFyBGIl D9Dw== 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:dkim-signature :arc-authentication-results; bh=6N87UKwkonvMAYI5Y2xpjfhUtlRTKGbyu8tbYZvuAgg=; b=Mchf2UjXsJ1+vK3521H/iPFmld6zWMHwVE8cGjtG1k0u1NM4WgMO3/CLk4G1plM2oa 68gfuTWgNdYHCd6NJ4RRx2DzTgPXSdFcg88VifSUVFkxoWHWtkaq2fjGIngmJJA6lJx+ 1fpRHcxQWnmm9izRRh73de2ZukJswsjQbD1COzt6Jfk6p7lH7TSpAjA4wpc4JF+jFls6 KuS35ToUbYyNNvvQSQ9EeEEXrYIgb4hlEcOwo5MHsBpfUTrCPoVUSR3fi2OOg/30/wGm ly7q2QxSPjveZHOcO4VzfDsEt9D3y+HS9qEsqgKqpwBHVNZqJ58sVrERzIzXoBKVEtRf Pr5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=c1BKz7AP; dkim=fail header.i=@chromium.org header.s=google header.b=XPY0YVPj; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d191-v6si4475348pga.192.2018.06.27.14.54.01; Wed, 27 Jun 2018 14:54:15 -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=fail header.i=@google.com header.s=20161025 header.b=c1BKz7AP; dkim=fail header.i=@chromium.org header.s=google header.b=XPY0YVPj; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755065AbeF0VxM (ORCPT + 99 others); Wed, 27 Jun 2018 17:53:12 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:33212 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbeF0VxK (ORCPT ); Wed, 27 Jun 2018 17:53:10 -0400 Received: by mail-yw0-f193.google.com with SMTP id u124-v6so1251570ywg.0 for ; Wed, 27 Jun 2018 14:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=6N87UKwkonvMAYI5Y2xpjfhUtlRTKGbyu8tbYZvuAgg=; b=c1BKz7AP0vLbIJZF0DFSdAcoHH1o2Otk7ftNt5+rdDoicoRxTNbzdj05iu7/qikJOk 0PxfVkX4kZPxg+mXeklKzHZ/N/HHklWpQNG/nWWsuOldjx9WzDg8cUsT0z8UKy+b39Wc 816DPFBI60mP1Mhub0jyDPu+QWn+7c+0h6VaRhZRTHa5nvIABjt4iZ6t6HgoM2cRLC2c cYfdB136zLCx6sS1yMIIeU4ZzRMhIwWUNS0mBCpQCdnmRTG+5hY2Elk2gVh9gmsFCEAl xlNJ0Asx/AF7r4DER8I6agoFhwSwwBKYf9MabytIwagqCCHZOcLq7Bx9/yrK0pc1V6Tg szDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=6N87UKwkonvMAYI5Y2xpjfhUtlRTKGbyu8tbYZvuAgg=; b=XPY0YVPjxEeiPvht6QUB+EGScRL8rL+e+a7jIYkx9Yknitm7GC9e6sDB3poI0lsW83 wS4CDVWOtBaOhUfm2N6CwtLGPemJDtVvbccB6YQecF/mT7RQ3rCkJosrkesU7a/stUzK 6k+VrCsopDF+RWMCu/UvHf5VOlnimL9UgKIYU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=6N87UKwkonvMAYI5Y2xpjfhUtlRTKGbyu8tbYZvuAgg=; b=neTIFJCxzrJaFN+yZmBh+t49FMdwcAHA4tnIofx8quUt5bE17nbLsu5zbp/rNqY9LA Qs+oyTnsVaN11yMd/vwQB3FFKlOEQP9dVNinYNBjcZRDgcQA55q7UffmOScQzYDRR8iP nW3qEoF9x62ll/EltWNIMVPAfFWcIa7VPloFN8MH6j2b97vZenAnEFBpVBVXCu6ITz4g glo2FnItp4YzlIGlC7XALPtXe/mUrxEbmLY2CD+KFDyBWYoPJFFLNmKpMsRHfppqMZPV PJf7klWr+fj1ENV+iowwX/IDUCDWAL26/HFIiT474Up7504GHcrjgTE/fyjm0iwPjTXs 6Sfw== X-Gm-Message-State: APt69E3IuCZMD6xsnAGniiWzNmnidldEgtMNAdNWbhFhE2Z/nnlNXi7o VpJrQXQ7uq3WdHEnUc3WQzwk4XOkl59XMixCq2EwzG2J X-Received: by 2002:a0d:d105:: with SMTP id t5-v6mr3882599ywd.53.1530136389872; Wed, 27 Jun 2018 14:53:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f51:0:0:0:0:0 with HTTP; Wed, 27 Jun 2018 14:53:09 -0700 (PDT) In-Reply-To: <20180627215227.GA13549@redhat.com> References: <20180618175033.GA2627@beast> <20180627215227.GA13549@redhat.com> From: Kees Cook Date: Wed, 27 Jun 2018 14:53:09 -0700 X-Google-Sender-Auth: h983SKwBvT44wTFfgU0zAf-jK64 Message-ID: Subject: Re: dm: writecache: Use 2-factor allocator arguments To: Mike Snitzer Cc: Mikulas Patocka , LKML , dm-devel@redhat.com, Dan Williams , Alasdair Kergon 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 Wed, Jun 27, 2018 at 2:52 PM, Mike Snitzer wrote: > On Wed, Jun 27 2018 at 5:48pm -0400, > Kees Cook wrote: > >> On Mon, Jun 18, 2018 at 10:50 AM, Kees Cook wrote: >> > This adjusts the allocator calls to use the 2-factor argument style, as >> > already done treewide for better defense against allocator overflows. >> > Additionally adjusts style nit to avoid assignments in test expressions. >> > >> > Signed-off-by: Kees Cook >> >> Friendly ping -- I'd like to make sure this makes it into 4.18. All >> other 2-factor allocations have been fixed in the kernel. > > Yeap, I'll be sending it to Linus this week. Already staged and ready > to go, please see: > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.18&id=50a7d3ba7c9ac5e0b7e03fc7f420180989361dbf Ah! Thank you very much! :) -Kees -- Kees Cook Pixel Security