Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3588946ybe; Sun, 15 Sep 2019 19:32:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO3AbaymhImZ9H2puabiTiy/Wo4d2KpkUeLwATFaG4Qby+2lSu873VHhJo4aKpmAEImTx1 X-Received: by 2002:a17:906:405b:: with SMTP id y27mr50633440ejj.18.1568601169500; Sun, 15 Sep 2019 19:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568601169; cv=none; d=google.com; s=arc-20160816; b=i8nnNkN33fgQ82erSuzSBTomG/37kG5rFdVvw+8wknlkIucLft+U2LrbjSfeHKB/ra TpnZt3+pIZozbqNQpykRMP083Ri7azfa+rF7haGiHiAFlWytvf3f8CHkxZFlK0zxAwUw AU6hGhBVTarlyZc7tT6ybXcZmvNG6qcFtM8k8Rf9GWhuwDIVTQJMzN50aZPAW97qW9E5 0DKzPZ6y3UwliCRddfILrfo63zc5pzkBte2fkIVHCItL3THbpxNiVTQZpTqpFb/nvPTJ 4W7plg8iAVjroH7woXRRKqFkCVP6B4ulsZdUNtKooRhC75bJgUZwVhH2lUWoh48EMvEC vRHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Zo435XJyX1bpVOOHXwPV4uWYj4585Ad4T3dwyk9iQBE=; b=j6p49tslOSjCEiLKeFoaRWzpPr78TX+mbQZW0f7TVdknUGkmXH9lXRYq2eKooUOkT/ egEispBl7oa19ZGcRRvDyJSA7GraCJnYALHw9F4eetUmUyKHhYe1vuFRImnMvZVjN88l XYhQhbXajOSagRhCwEcESESJQ3+JJQwL5ApoFHGsoO8z6/ZPuRyAlciB3sOk9blw/7QX 6eJv0PQ2+op5s+sI8MZZe8SBLCUMhMTXXnvLBiy5OHum4BDevOiLsig7ssaFF6YKUS3W UFNm0cYmx3IEqa2uYcHOW+yFLicbhDGSZlc3trKMnDR8kiSohkaFzhgERI0wasyiOst/ yJrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=apS9vQuM; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si22326216edb.82.2019.09.15.19.32.25; Sun, 15 Sep 2019 19:32:49 -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=@google.com header.s=20161025 header.b=apS9vQuM; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728625AbfIOVii (ORCPT + 99 others); Sun, 15 Sep 2019 17:38:38 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42589 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728589AbfIOVif (ORCPT ); Sun, 15 Sep 2019 17:38:35 -0400 Received: by mail-pg1-f195.google.com with SMTP id z12so6892380pgp.9 for ; Sun, 15 Sep 2019 14:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Zo435XJyX1bpVOOHXwPV4uWYj4585Ad4T3dwyk9iQBE=; b=apS9vQuM+nyi+pTFjOA6vggWXSkRtfqgt6CtOE6zLQt0J4MDkpvxLGenxAaNvfGCBu 40ISP0O70fCIZQd+Ekho/Ctny3LuLMnHQk1F/KPPApOGMpftC3/zbljQqQw21/zMfn56 SlfcgTljTciiJ1OG1AOBB6p5rxIIceF8KrtuxdwmDed3zdz/gtiF21dptyjepYcKGB6C upoEAKrNO9dVvyNdGorxD9grkpDQvF4mdz+2xyL5MY+hnX9JIQIM8z4QqUqfmLX9CO9I uEqp5ZbacaWHFbSpzC2BNbBiTxOfiqeDiCLHuePEedSD6Vjbqkr3CdqDAQ+XZZDk7kTG rKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Zo435XJyX1bpVOOHXwPV4uWYj4585Ad4T3dwyk9iQBE=; b=PtJOHedT5qPblDBaxMHgvMfnAl6uCesoDIGzfA5v4pLfD1nTgW+G06jtqJH4bMvjsP JXkD+wPkovfjzXNODH4wrmY7PF2EL1TYi6iI4DH8jKlGpR3FR9OZ1zG9DTls/IFSdYhs Z3kKrooC32dWMfh+e+6YUb5R7MgZgynsJbs3kmwecTvg6+HCzWEjflGGipTCeSqTIkfT 8CJI+M1owjBHR4f6BqhrhEvyqpKjqhr+b8QDa7gfCP1WNUI5VP3p4uO3aRzVtweQa5z5 aUXrlYFwR2bSBjbBYdys1Hq9ftccJvkhppeaJGBZEPCzTGgHzllUFnl15axoPErAFDzA c0yQ== X-Gm-Message-State: APjAAAVcunoeRcx9cXN7fioyZUCqgEfYGkM+XdbOzfb/hrZENsXBk+uk 9JxSysprkw6lZKYyLXMRq7v1Kw== X-Received: by 2002:a62:2f85:: with SMTP id v127mr65402991pfv.68.1568583514459; Sun, 15 Sep 2019 14:38:34 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id r13sm12826494pgp.63.2019.09.15.14.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2019 14:38:33 -0700 (PDT) Date: Sun, 15 Sep 2019 14:38:33 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Pengfei Li cc: akpm@linux-foundation.org, vbabka@suse.cz, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, guro@fb.com Subject: Re: [RESEND v4 4/7] mm, slab: Return ZERO_SIZE_ALLOC for zero sized kmalloc requests In-Reply-To: <20190915170809.10702-5-lpf.vector@gmail.com> Message-ID: References: <20190915170809.10702-1-lpf.vector@gmail.com> <20190915170809.10702-5-lpf.vector@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Sep 2019, Pengfei Li wrote: > This is a preparation patch, just replace 0 with ZERO_SIZE_ALLOC > as the return value of zero sized requests. > > Signed-off-by: Pengfei Li Acked-by: David Rientjes