Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2684174imm; Mon, 24 Sep 2018 08:19:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/7U45P4NJW9j1SsAiHberSkRFstsCh2YyG9PldPv4bMHMkyoG+c/R//wo8INoloKz8Pc8 X-Received: by 2002:a62:e08b:: with SMTP id d11-v6mr10855478pfm.214.1537802381897; Mon, 24 Sep 2018 08:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537802381; cv=none; d=google.com; s=arc-20160816; b=M5qzk1e8vpIvivs77TrosiJfftNe4tYDZDiLp0BUPRntzX1oX0qMmxo2vZ/NLifq9Z iMdgt36tNBzd78KLHRlPfoBAYy6QIsXxJ7QFklbtUOayvc+Dn7mYNu0VDLD3bcIoQfev 1/KvCrL/Uhe3O/m7SFDwxuxI0zrm2nc87H0JmwfyjNgPqr+BrBj8RlYUJ9hTjg3GUD/h NGk0aCmGENNwcAjqKL1I/lk+7QNLoDVVc8+QguhcdAJnaPst6eu9cbCyw4cB6Cg13j40 g0/MEaKOL2Jr765Wt+21DKl5D+9rL2VMvLm9zrxFcygIGmgblJe21ToswZt2WmD5722K 8kGA== 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; bh=gvPXXlrUbVTMwB1tJjvvSiSIV6mZVBmgBtwQQGBgml0=; b=KMUmh+C5Fo9c+uepG3yukneRIpoynEZ4w6fXaesTHDob/5O+kv81aRkpXoNWbGaghj NwjlQd01TjwQCk7VWYd7AbPMrJtd1z+MHm22Ux5nxQgLuGIY0TQ/5F6643GAbYWVXAkD D93CK04WmaP/aVxGOuO20QVc0LAw3ywjgXlz/f22BQU6MR/VoICfSlglyCOqmURmgD+v aqXwgrVYTMsVwgZfB6anOGld7Wf3fXmmQU+WPLqUrl1VWkStXCSXAMYRpu4DxJPIc7+h q8BYI1iGXdb0fv/0arRnLfuED0In83iEqoSK+4vDgfJn0l6bBVqr7f278eINRyGysjz4 3mmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=D4L6rPva; 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 q8-v6si34057296pgh.675.2018.09.24.08.18.56; Mon, 24 Sep 2018 08:19:41 -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=D4L6rPva; 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 S1730636AbeIXVV0 (ORCPT + 99 others); Mon, 24 Sep 2018 17:21:26 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:33869 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729065AbeIXVV0 (ORCPT ); Mon, 24 Sep 2018 17:21:26 -0400 Received: by mail-it1-f194.google.com with SMTP id o72-v6so3963255ita.1 for ; Mon, 24 Sep 2018 08:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gvPXXlrUbVTMwB1tJjvvSiSIV6mZVBmgBtwQQGBgml0=; b=D4L6rPvadMwZ1BF5zDX8gKnYYWUUvePQB7hITGrSa22Een0z7oArBZDou3Pk8/vy3Q EJvzRpGLZDeFFcfftQeYCstBF3QccjS+FtdQLfso6oVHMqHfqWw9kFwMU8mRiC7aZnLi jv5Ybq5H9QFOV/njrsfMqfuQAu0HvW3WeVhjjyQqR/0VxFnaWBF+TBnno5DGRS5rUeYg NMPKSF8L7v3pue9076wQqUBWAm6A/JqTcBfi/LXwuKtDgvV6o9MB8Oy21upNZPySpdxf cotFsjfdGCZBvzPbxzVy4mLsUNyWSruldUz9OaiWHlKRix9psGtQDMjSamaa03ppsHZA MJzg== 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=gvPXXlrUbVTMwB1tJjvvSiSIV6mZVBmgBtwQQGBgml0=; b=Y/xdfbJ+Gty9TXqjHTbb3VpCDhSf+6QssUkdM0CetVtrT7kGjoh0W7NmNvqhnILbk8 ki6Vu6RFV66nGTZccTbGBZjHZiOVeqI3PULDh0I+wzjc9Ljev75Btv94bOdOTgHmY3k6 AoKAxDwHApSgChb+zDkFtWlCtisHjka+ZPVkXTZI1LOv3Ag+TfvKCvw6MiAJTkuSUQiL ZFYl7UFJHR2joVqX8nvjkYWFwnfzcKaLqEloJ2MmQGcJRiFOOTapNw9uztChGI3LuiWL Fi0fUmVfBXdsuWsPyb9vBVjOP4We0MctYaMczjh7bl+CXmPbDagXq7RnZvqmnocXaUB/ 5rew== X-Gm-Message-State: ABuFfog358WXVucMy/rtnVKUQkiHShrFOwsBxZo0TXe4x5Jz5i5QWiR4 GKAbawSJ8ZuIL0yiwbxWNf/6n++wgOdA5eo9+WCR2g== X-Received: by 2002:a24:d286:: with SMTP id z128-v6mr7995835itf.14.1537802326053; Mon, 24 Sep 2018 08:18:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:ab8c:0:0:0:0:0 with HTTP; Mon, 24 Sep 2018 08:18:25 -0700 (PDT) In-Reply-To: <010001660c1fafb2-6d0dc7e1-d898-4589-874c-1be1af94e22d-000000@email.amazonses.com> References: <000000000000e5f76c057664e73d@google.com> <010001660c1fafb2-6d0dc7e1-d898-4589-874c-1be1af94e22d-000000@email.amazonses.com> From: Dmitry Vyukov Date: Mon, 24 Sep 2018 17:18:25 +0200 Message-ID: Subject: Re: WARNING: kmalloc bug in input_mt_init_slots To: Christopher Lameter Cc: Dmitry Torokhov , syzbot+87829a10073277282ad1@syzkaller.appspotmail.com, Pekka Enberg , "linux-input@vger.kernel.org" , lkml , Henrik Rydberg , syzkaller-bugs , Linux-MM 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 Mon, Sep 24, 2018 at 5:08 PM, Christopher Lameter wrote: > On Sun, 23 Sep 2018, Dmitry Vyukov wrote: > >> What was the motivation behind that WARNING about large allocations in >> kmalloc? Why do we want to know about them? Is the general policy that >> kmalloc calls with potentially large size requests need to use NOWARN? >> If this WARNING still considered useful? Or we should change it to >> pr_err? > > In general large allocs should be satisfied by the page allocator. The > slab allocators are used for allocating and managing small objects. The > page allocator has mechanisms to deal with large objects (compound pages, > multiple page sized allocs etc). I am asking more about the status of this warning. If it fires in input_mt_init_slots(), does it mean that input_mt_init_slots() needs to be fixed? If not, then we need to change this warning to something else.