Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp612917iof; Mon, 6 Jun 2022 09:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz87pc1e5lYG5vF4kBH7MrxQljOD/wk9eS3Mbr3uEpoIzCScw1zHSagiU2q0Z1qP5O1thVv X-Received: by 2002:a17:90a:930b:b0:1bf:ac1f:6585 with SMTP id p11-20020a17090a930b00b001bfac1f6585mr27113628pjo.88.1654532567043; Mon, 06 Jun 2022 09:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654532567; cv=none; d=google.com; s=arc-20160816; b=H3zv71VzIuFvhVzDFawLGkG3LEWaP1PUkrt0zdhe1RmLuIf0zgDiaJ2gcHod3x3DRZ nWPE7DkZ9QrCAasna9vPZ2FpghyYWRUiakTAmRVI7ZmD8OqCbPqCNisLcwjVlx4mFtiv 3x8+kBDutmAtCBbY7y+HfMg67IvqQziBwD4pQnjyR0eRsMuXR2nxVtlV8XDQB7VE6cAJ 4FppuzJenO1+4I/2H0vU1dKKC5ntbqEqomUagVolnczlhrl5m5ekA4rM6xe16Qxd8QFK qGXxY7lBPTnbTe5d5YD5S2LeUYRZOMR1LFy56yJuojeBD2j+1zKB9miW+bVSzlYYcz14 /PgQ== 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=hkb/bGVyuMqTZRXVw6tHXbfDJb2Rv/dx6ERatAJ2rC0=; b=iLZSlEB9rZRyPgBCEAgIqIij58g+be0LV7rrvkH/O6ZObtqXF50ajCe0kMum26M2b/ Vwkgs8UxK6kkkHfctLCfKX/9XHqobBOQ4Nqwy7f8aZWjfIltc9YHDvomiB6syPqFrcUw mUlAMYbL16HIn8MIbXOAGq3HO9m62bm3Vieqf9wjCI0Eq6OOoM/OrZzKeVBzaWA0p0Vd 4af8Ttth6FKfsNApaU6lXKRRhZhl8wMBflkx16gqNGljC94eY5qq+6NkpvL09B1s4c0M 5pPFduVqkK7p9vlum4Qr9AOjApYR7LQcLlBFkhib8C701adxP/2e72uua3R8EWIM1ebz n9FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sWnen0Qb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cm3-20020a17090afa0300b001df2fa696cbsi22297296pjb.119.2022.06.06.09.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:22:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sWnen0Qb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D81EE19424F; Mon, 6 Jun 2022 09:05:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241460AbiFFQFd (ORCPT + 99 others); Mon, 6 Jun 2022 12:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241446AbiFFQFa (ORCPT ); Mon, 6 Jun 2022 12:05:30 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F672166447 for ; Mon, 6 Jun 2022 09:05:21 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-30fdbe7467cso112520017b3.1 for ; Mon, 06 Jun 2022 09:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hkb/bGVyuMqTZRXVw6tHXbfDJb2Rv/dx6ERatAJ2rC0=; b=sWnen0QbVrpHJrYP5g4e/CpughJv5Xsf8460mMdBKUx4OTmW9Qr3EJjZH24KgWua78 7SO6mkI+7tUe89LfbJsvCFDzlzdNeMw/gz1PVyPzlV50tpFc3IhJK1mSOpN9IJnBXgIg e0zSuMMRoHlevEhKJFjxeieKivjrkcWH3fivpf+3ozagiT6DrvjNMAmWx+uWXx/QH3Yb hKQPIrtydMfIlf4AGKk5CQ8cjr3EG1XPrlTBkEkTQbKjS6zhKIElw0kkgYB+uUipIsRQ qrBsNJCuvIfH2Ro5oe7HsiF7IpkIq6163YEEyjL0hHD0J0b/x/cAuqcGxch9bKP3rKD8 8n9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hkb/bGVyuMqTZRXVw6tHXbfDJb2Rv/dx6ERatAJ2rC0=; b=JKfg88H1Mtn3EuUpSYRjh3l338vIGgyuSr16RpuJYKplkhQeB/uqsAgnRkuBHnUOx3 2U5aODHZ2PETm6q2pzksBXml6MbgzYxrs4Kjlj2CECS9KDW3xa2ZIlTS+aWYMwwzh/3J JM+bnIU2iv8F/9M0ziwZBFoBMHYvJ4+BbMPnaX+UMOvXD+RClrIC+v8EDntv0nNJ3Nxc /y1aeKACAUb8k4f0QJ3tXPhNSaoJklPPebQt7gb1YAgsmHFRqhDDpWm7sxtRUvtFtBLu ltwgUJTe3W4hn70RF9dvM9AqRduH2ed/OcVBp1dqnPKxJIesz54BOSb+NN7+++4QuL3x aXQQ== X-Gm-Message-State: AOAM533WtQ0s1qBX1Y/3uy0OO4uTdhosSGiwpZc9WpDduieeDlxBXsCu C/YzQMoxwWKSFmX6iZY6i8C0Xw2fl8VPtQDsKZVnjw== X-Received: by 2002:a81:4811:0:b0:30c:8021:4690 with SMTP id v17-20020a814811000000b0030c80214690mr26771026ywa.47.1654531520769; Mon, 06 Jun 2022 09:05:20 -0700 (PDT) MIME-Version: 1.0 References: <20220606070804.40268-1-songmuchun@bytedance.com> In-Reply-To: <20220606070804.40268-1-songmuchun@bytedance.com> From: Eric Dumazet Date: Mon, 6 Jun 2022 09:05:09 -0700 Message-ID: Subject: Re: [PATCH] tcp: use kvmalloc_array() to allocate table_perturb To: Muchun Song Cc: David Miller , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , netdev , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 6, 2022 at 12:08 AM Muchun Song wrote: > > In our server, there may be no high order (>= 6) memory since we reserve > lots of HugeTLB pages when booting. Then the system panic. So use > kvmalloc_array() to allocate table_perturb. > > Signed-off-by: Muchun Song Please add a Fixes: tag and CC original author ? Thanks.