Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp851599pxb; Fri, 3 Sep 2021 15:23:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/LWZ1e61h/fvuXuD8tCmxpL4gXZyk6dl2NFJzd83JjXM1uZinbYDsxkCR+eNKlHdQfqkP X-Received: by 2002:a17:906:3bc1:: with SMTP id v1mr1122719ejf.182.1630707809995; Fri, 03 Sep 2021 15:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630707809; cv=none; d=google.com; s=arc-20160816; b=G6nQEtEDCYDyifxSeomilbrJYT2OnqNlSY+1TDQtCUVRcCaFQeukkQ6dtpwBm/bFF0 ULqcfmnoRaASmTy6VIJy9kMNaH0tZ5bjS7w5+9bRZVuojC1o3QiNZ4pHeoEg+303R3GL r75yMKyr5JXTB+4DTkJqZNkNQWuq0iULG3KqZNCo52nBihDqVi7cnIxPLiEo65vQYpJO BJCtkeLKywLwZyfn6VCqywRf3dQvzlSBTeTK+IZHpLBaUJu6WgZPo4i7oy0saWdBopqL 7Hrk3NMXM1YFgB1jM8epDXkw9Ug4zy8XGhXP+xqWnOybl+2gN4O/6q6nR9Em52e1gFQ+ od6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V2hoWJQN2mzjm7RN9/wyMT5DuqBSo/d9GUmVSbz0TJw=; b=NAx07b7nL/c6PQ4L7iv1WbGTbMwbPRQSW2OAn6Dfb7hk9QiLDXanD0EUZSvDXWcpdP xa//IdrFIW9BTu7ixfvQTKVOfOgizF/anawhMSKjTU0KV9CWVgmFKa7hSLENOpUO0xeT 4u+JtykP8yQAYukm/m8Qb0WYS0Qzbbe+lyRO/hG5BD8ewaNqe1zHlx4AOjIYEsXhotVi P4J3MIMKWzlQkEeX2G3qe+8chObouIszX190bciPVBO/IQIWv7rXtPhSEx/zRyOuDEvA NuVJvLn43miQX3p/Hrd/LEPOO2Y3rB2gPWiYGqmpLn305o8RYvrlI0msp4qVQ6qEGiaG Hr7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Gc085IJl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si563624eja.373.2021.09.03.15.23.07; Fri, 03 Sep 2021 15:23:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Gc085IJl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237375AbhICWWS (ORCPT + 99 others); Fri, 3 Sep 2021 18:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233620AbhICWWR (ORCPT ); Fri, 3 Sep 2021 18:22:17 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04AADC061575 for ; Fri, 3 Sep 2021 15:21:17 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id h1so977070ljl.9 for ; Fri, 03 Sep 2021 15:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V2hoWJQN2mzjm7RN9/wyMT5DuqBSo/d9GUmVSbz0TJw=; b=Gc085IJlGgq95QEC60AuUrcwKvYlFA0D3Q9sv2Trn1ebudU66LqjDOYUXWMF6gr1sm f8xRaQvwmRs7om4gUhY2vJg1RGYwkIaxmuvcRvolFIg3jtushEc4EYI/RB6CZHJNZNqM jcqt/EJjawnGjgXzGIlHfPVqPxpR0J4DIIWLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V2hoWJQN2mzjm7RN9/wyMT5DuqBSo/d9GUmVSbz0TJw=; b=lohTXqvqcWp2zrId9i2mHJ9sHUlTqSJ6Oi+bmc3lPOeqpCde11FbYqHkEYSNjF+vMb wLvUHHtJPQ1KUNeAQHabwp8Se8VQ5qedGqkFBJKCfBi51Xjaseup0mj7xtqmdFA/5JT3 ATbkXHVJBTLS9pwn3dMRgpT1rt7TeRPTmI+rLkwE4Rh82bTkaSBKGkgZOmdwzozQ3Hzy MoWo0FTFG9iqoxeecfOD1rsKS8M6+mSPkSRU5NsgxBUPTENB/XMipLb+3PRfcRz0WJ6C FlJyk9ZvHeEBADRDsuUyPMhlajzWZRz6dYEbWm2Gj+uGZbyUpufvjfdzl95fyheTPucw 0D9w== X-Gm-Message-State: AOAM530uCKfeMDFzFkGaerPRJjfScLaBvLS5xuTZDe5im0WlBadWfc4K hKnEPfMncKFvmNDRPsdHRjYNdcY90E6/nzAYEbs= X-Received: by 2002:a2e:9852:: with SMTP id e18mr800702ljj.173.1630707674872; Fri, 03 Sep 2021 15:21:14 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id d21sm45768ljo.70.2021.09.03.15.21.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Sep 2021 15:21:14 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id m4so978924ljq.8 for ; Fri, 03 Sep 2021 15:21:14 -0700 (PDT) X-Received: by 2002:a2e:8185:: with SMTP id e5mr785657ljg.31.1630707673799; Fri, 03 Sep 2021 15:21:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Fri, 3 Sep 2021 15:20:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: dozens of sysbot reports To: Eric Dumazet Cc: LKML , Eric Dumazet Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 3, 2021 at 1:44 PM Eric Dumazet wrote: > > I have a pile of (still under triage) sysbot reports coming after one of your patch > > Typical stack trace: > > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 24889 at mm/util.c:597 kvmalloc_node+0x111/0x120 mm/util.c:597 > Call Trace: > hash_ipport_create+0x3dd/0x1220 net/netfilter/ipset/ip_set_hash_gen.h:1524 > ip_set_create+0x782/0x15a0 net/netfilter/ipset/ip_set_core.c:1100 > nfnetlink_rcv_msg+0xbc9/0x13f0 net/netfilter/nfnetlink.c:296 So the real question is mainly just whether those huge allocations actually make sense or not. If they truly are sensible, we can remove the warning. But it would be good to perhaps look at them more. Because no: > Do we want to fix all problematic callers, with ad-hoc patches like Not insane patches like this, no. > ip_set_alloc(size_t size) > { > + if (size > INT_MAX) > + return NULL; > return kvzalloc(size, GFP_KERNEL_ACCOUNT); > } But does that kind of size really make sense? I'm looking at the particular caller, is it *really* senseible to have a 4GB+ hash table size? IOW, I don't think we want that warning to cause the above kinds of ad-hoc patches. But I _do_ want that warning to make people go "is that allocation truly sensible"? IOW, it sounds like you can send some netlink message that causes insane hash size allocations. Shouldn't _that_ be fixed? Linus