From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BAC1C433FE for ; Thu, 10 Dec 2020 19:06:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D8DB923C18 for ; Thu, 10 Dec 2020 19:06:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D8DB923C18 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 18F6B6B005D; Thu, 10 Dec 2020 14:06:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 11B896B0068; Thu, 10 Dec 2020 14:06:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3A456B006C; Thu, 10 Dec 2020 14:06:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0171.hostedemail.com [216.40.44.171]) by kanga.kvack.org (Postfix) with ESMTP id D757F6B005D for ; Thu, 10 Dec 2020 14:06:48 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id A51688249980 for ; Thu, 10 Dec 2020 19:06:48 +0000 (UTC) X-FDA: 77578304496.09.team56_0612a02273fa Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id 92540180AD801 for ; Thu, 10 Dec 2020 19:06:48 +0000 (UTC) X-HE-Tag: team56_0612a02273fa X-Filterd-Recvd-Size: 7864 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Thu, 10 Dec 2020 19:06:47 +0000 (UTC) Received: by mail-lj1-f175.google.com with SMTP id q8so7900925ljc.12 for ; Thu, 10 Dec 2020 11:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZUOCuCMWxecxb+gYxEm4N+p9hLRlHmlOdwCtaauDV0w=; b=Ag5k7pjb4r+06OLl3WSd5qoRF0R0QkPv4A2lQwpEKMfsPqVF7QiZZpF+uh+zTtj9Yp Wi11JH2QU/B9g8crvGHWdE9KvJQyx1jl07JlVvTjy2kg1FrtKKbnkgRxCH0A8PlN0zv/ zP0H01wYr64GNT8yIuCma3fheBCwfqKtRWPSvhpq8ZolgTDGH/IP9NX9rj/XaOJWu5XV XNaggqKR2MlryXWPDHJUMYC7vm1UPO1td2lkaRXXTabDcalcGgm/suA2KafbBAaMnLfY JiAaKwFfh+cBirqbx/LgHAqyDfuQ+wPSE/xp82Lc/lyz280oHauJjUKy7nZrBw1BzKEH 1veQ== 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=ZUOCuCMWxecxb+gYxEm4N+p9hLRlHmlOdwCtaauDV0w=; b=iRCCu8Xo02Ad3SJuFEZaJegnDTiodTompNCV60CfJgtIELdanuNUSROcPkNN1sifkT Uv1sZSVrO11DrsWYktL6A1IlDVhyH83/txYGXoSOmSs6SdeanyAT4nBypEoZQN6vLTTo wXPEDX6stUxKhYwKuSPR0A6AW8imDBQd63+4UCnF/LYHbW2ZLJGxfdjCl/KTh2ONuXMX VD7YxfypTqemJ54ezTLYXrorn6by/sZXGySbOrCEgOqY3VolSdPzej917KdrGVTe54Mh G9bEU8T3jQTLCw9vPO9KRO5M2o94vJkOa/M8Pyt0/z+Th5qoaaNyRKr4oDMu8/RNKS2n 4TCQ== X-Gm-Message-State: AOAM530fNFB5tjTS9wWBIFVakfMjG6gu7o3EmBwsWFla5744nDcQrOW3 gt40cfpTIxOxcMD4/D343Lkw97UEfdRVTHjzQWc= X-Google-Smtp-Source: ABdhPJw56UxC+7hZ+fM3iveBsAz1FHImlrNgo0UX0ODqfsdhFD7QR61XZUg+/VjCtDwE2fEHphTYPCaW3M5ZUZhzYGY= X-Received: by 2002:a2e:b5cb:: with SMTP id g11mr3602131ljn.502.1607627206798; Thu, 10 Dec 2020 11:06:46 -0800 (PST) MIME-Version: 1.0 References: <20201210181252.GZ7338@casper.infradead.org> In-Reply-To: <20201210181252.GZ7338@casper.infradead.org> From: Md Muazzam Husain Date: Fri, 11 Dec 2020 00:36:35 +0530 Message-ID: Subject: Re: Slab bug during skb allocation To: Matthew Wilcox Cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mdakhil2003@gmail.com Content-Type: multipart/alternative; boundary="00000000000097b41f05b620e083" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --00000000000097b41f05b620e083 Content-Type: text/plain; charset="UTF-8" Thanks for the information. Actually this issue is not coming for lab units, but under high traffic where irqs are hit frequently it's coming. Actually i have used GFP_NOWAIT flag, can i use GFP_ATOMIC(Since it uses some emergency pool). Thanks, Muazzam On Thu, Dec 10, 2020 at 11:42 PM Matthew Wilcox wrote: > On Thu, Dec 10, 2020 at 11:25:13PM +0530, Md Muazzam Husain wrote: > > Hi All, > > I have kernel version 3.10.59. So during the allocation for skb > i > > That kernel is over 6 years old: https://lwn.net/Articles/618650/ It's > been out of support since November 2017. The development kernel it was > based on is over 7 years old. It's unreasonable to expect people to > know the answer to this. > > Can you reproduce this problem with a recent kernel? > > > am getting call trace for __netdev_alloc_skb which follows > > till cache_alloc_refill and finally crashes. Please find snapshot below. > > addr2line -e vmlinux ffffffffc114109c shows linux/mm/slab.c:2700 has the > > problem. Is there any existing bug and any patch for this. > > > > Call Trace: > > [] *cache_alloc_refill*+0x1b4/0x848 > > [] __kmalloc_track_caller+0x124/0x1f0 > > [] __kmalloc_reserve.isra.17+0x40/0xa8 > > [] __alloc_skb+0x84/0x1a0 > > [] *__netdev_alloc_skb*+0xdc/0x148 > > [] xlpnae_irq+0x148/0x200 > > [] handle_irq_event_percpu+0x94/0x3f0 > > [] handle_irq_event+0x54/0x98 > > [] handle_level_irq+0xe4/0x170 > > [] generic_handle_irq+0x38/0x58 > > [] do_IRQ+0x18/0x28 > > [] plat_irq_dispatch+0x258/0x490 > > [] ret_from_irq+0x0/0x4 > > [] __r4k_wait+0x20/0x40 > > [] cpu_startup_entry+0xd4/0x2d8 > > [] prom_pre_boot_secondary_cpus+0x0/0x48 > > > > > > Thanks, > > Muazzam > --00000000000097b41f05b620e083 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the information.=C2=A0
Actually this is= sue is not coming for lab units, but under high traffic where irqs are hit = frequently it's coming. Actually i have used GFP_NOWAIT flag, can i use= GFP_ATOMIC(Since it uses some emergency pool).

Th= anks,
Muazzam


On Thu, Dec 10, 2020 at 11:42 P= M Matthew Wilcox <willy@infradead= .org> wrote:
On Thu, Dec 10, 2020 at 11:25:13PM +0530, Md Muazzam Husain wrote:
> Hi All,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 I have kernel version 3.10.59. So du= ring the allocation for skb i

That kernel is over 6 years old: https://lwn.net/Articles/618650/ It's
been out of support since November 2017.=C2=A0 The development kernel it wa= s
based on is over 7 years old.=C2=A0 It's unreasonable to expect people = to
know the answer to this.

Can you reproduce this problem with a recent kernel?

> am getting call trace for __netdev_alloc_skb which follows
> till cache_alloc_refill and finally crashes. Please find snapshot belo= w.
> addr2line -e vmlinux ffffffffc114109c shows linux/mm/slab.c:2700 has t= he
> problem. Is there any existing bug and any patch for this.
>
> Call Trace:
> [<ffffffffc114109c>] *cache_alloc_refill*+0x1b4/0x848
> [<ffffffffc1141854>] __kmalloc_track_caller+0x124/0x1f0
> [<ffffffffc144a930>] __kmalloc_reserve.isra.17+0x40/0xa8
> [<ffffffffc144b644>] __alloc_skb+0x84/0x1a0
> [<ffffffffc144d084>] *__netdev_alloc_skb*+0xdc/0x148
> [<ffffffffc13fb510>] xlpnae_irq+0x148/0x200
> [<ffffffffc10b87ac>] handle_irq_event_percpu+0x94/0x3f0
> [<ffffffffc10b8b5c>] handle_irq_event+0x54/0x98
> [<ffffffffc10bc724>] handle_level_irq+0xe4/0x170
> [<ffffffffc10b7d90>] generic_handle_irq+0x38/0x58
> [<ffffffffc1018a20>] do_IRQ+0x18/0x28
> [<ffffffffc1015ce8>] plat_irq_dispatch+0x258/0x490
> [<ffffffffc1016a00>] ret_from_irq+0x0/0x4
> [<ffffffffc1016ca0>] __r4k_wait+0x20/0x40
> [<ffffffffc109072c>] cpu_startup_entry+0xd4/0x2d8
> [<ffffffffc1014ab8>] prom_pre_boot_secondary_cpus+0x0/0x48
>
>
> Thanks,
> Muazzam
--00000000000097b41f05b620e083--