Received: by 10.213.65.68 with SMTP id h4csp410496imn; Tue, 27 Mar 2018 01:22:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELs7J4YMVpnVjOaLu84m383dwPOdC0pncaRpx65qdQ/DA/Zy/nDNokelldwor37Txy8zNa47 X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr36357756plh.84.1522138957189; Tue, 27 Mar 2018 01:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522138957; cv=none; d=google.com; s=arc-20160816; b=F8IzcIBc0haKwmMY3jg1/VI1pLgN4BduGnl5jGt+YEYcsd9t10pdc4pXXsW4ztMenC nFTQbuY/TQ75lvo/2NDteujXKvDaDtJuTAPHm8/6/q4y+TEMDVWtkLb0mZMuBxrhICbr t6G9zPyYE4KmVV9OrTj+iV5mQ1SdztQXY/ZvAmfA+q2FJH0nPWocC9uorhHfwvuG7siK PIf1gmGtf0k1x+eLS0oNW8l/VdkSIHelT6sMcab5JKzStGqtFMK9JvP2vGVESfXrv9Cv 68lrM07ZOrgrCFPtu0g3siSnWnY8eN8omUmx9dfSdGaLw/cBP0AFaz8Gi3ToTLGaRrir r/PQ== 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=c11qa/6TSresMxfUsLm++vIP9ZOjOPZtzeSDpZquxB8=; b=iKSV3Cv7nzBmGfTls549AELZ6SkXUC52HSTIRS0vkt/0EFm7e+X1Q3ZSL6v5Y2dEvb 8Qz1XrLJAEryTFH6g/CPp0cg8Nb0Map2rTXfYdfc9lL+9Ivo/4CbgBKuRfK1n8BlLBgX OYYzRXRyNPdlx91AaWH0Y1j9KpHJSx43awLHMJiFXZ0vRQII6R64uTzvBZgof/4WTZGd VTQHgrqpx8TuLdeFBlz/FBIsqbKwfzx00FiVMoEiBXifPJdQ8TfkVnfhWFXrDWg2HWDh 2m9yUVVh/W+OoewDLfwSLKAOkxlbBmxbFpgFAzl0gtTCgs1qsIXFpb1DO+NfL9nRt5S7 L0ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aQg1KeRp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h14si517761pfi.377.2018.03.27.01.22.23; Tue, 27 Mar 2018 01:22:37 -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=@gmail.com header.s=20161025 header.b=aQg1KeRp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751732AbeC0IV1 (ORCPT + 99 others); Tue, 27 Mar 2018 04:21:27 -0400 Received: from mail-qt0-f171.google.com ([209.85.216.171]:34835 "EHLO mail-qt0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbeC0IVZ (ORCPT ); Tue, 27 Mar 2018 04:21:25 -0400 Received: by mail-qt0-f171.google.com with SMTP id s2so22768660qti.2 for ; Tue, 27 Mar 2018 01:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=c11qa/6TSresMxfUsLm++vIP9ZOjOPZtzeSDpZquxB8=; b=aQg1KeRpoKDa0mtWehEaZqG6EuTcu3uwBzNUmP5RXsTqiPIeW5AIWLi5Q7QF2uG7Bs Tw9uGRfhH55lwBwPjrN8d3k0MgeybPgSOmFAj2jL5tRcd+Splp82s8z/aHD8h8a21uUx UVCSWlNPvWX9J3NYct7YNlneze3A3pcuznPomb9rAfxMDRzhesQn47VTAd2saIuVRghg zzicsY6XfXq/Ul2eYSoOtMh6DAODY/aninME5w49RzgTGuowC8WRo7T3G4sKSy51CXS+ qzgUjU22VWAG6pno6GkUW8BScKnpUnVbfVDGRIwg4SDlnTvu1dBUA2fcneuCV6yesT4e 3qtA== 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=c11qa/6TSresMxfUsLm++vIP9ZOjOPZtzeSDpZquxB8=; b=aTaMOWwcUP0Lg63c4XtXaXaeeRgsfmqoyWejfIdm/A108bKhcvhi8noCpWdeIExTg/ HDVyzzP8Z1WWYTkgbn7cXUP9YO4Mn6JClUMl4Ma0CwkN9C9uUXBpvbSaI286VZt2LM3B Wno9RgcSqF/Feyn4j60RNT6/cUkEaK3w9+gFxGa08eZfndsPyXBJdEbzPt9iD8qaTuDQ OA0xZ3U8Ov/PAGXzkyj/YQH5eIMWjA0mKd6QNVJXKBWZnDScbT2xAu86REHNd77g/rzh xV5UZV8uryG2surDC/ZcGwm5sOOkx6HJxMSkRyqtaC0MnIhsiOm4AvAFHWPbU4NrvW2C eytQ== X-Gm-Message-State: AElRT7HbmZvliosxdglg3RnTCIE7Q/eFOAVkCzQ7lw5U9d/QhWKwGcCZ 6um1paWuuIT+W2MOZjdZl+WegZLhjf1phGvYp64dIA== X-Received: by 10.200.28.61 with SMTP id a58mr64827467qtk.280.1522138884767; Tue, 27 Mar 2018 01:21:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Tue, 27 Mar 2018 01:21:24 -0700 (PDT) In-Reply-To: References: From: Geert Uytterhoeven Date: Tue, 27 Mar 2018 10:21:24 +0200 X-Google-Sender-Auth: _TEWqBwS_CK4hAjZIFl8xE3xSqU Message-ID: Subject: Re: dma_zalloc_coherent broken with 57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7 To: Sebastian Ott Cc: Christoph Hellwig , Jesper Nilsson , Linux Kernel Mailing List 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 Hi Sebastian, On Tue, Mar 27, 2018 at 10:12 AM, Sebastian Ott wrote: > commit 57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7 broke usage of dma > allocations specifying __GFP_ZERO by silently removing that flag. How did it break? The flag is now always added. > Why should "the memory returned [] always be zeroed."? To avoid leaking information. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds