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=-18.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=unavailable 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 117FEC48BDF for ; Thu, 24 Jun 2021 06:17:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB6DE613EA for ; Thu, 24 Jun 2021 06:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbhFXGTx (ORCPT ); Thu, 24 Jun 2021 02:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbhFXGTw (ORCPT ); Thu, 24 Jun 2021 02:19:52 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F040BC061574 for ; Wed, 23 Jun 2021 23:17:32 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id q190so11652608qkd.2 for ; Wed, 23 Jun 2021 23:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gpCoMJNcwo6BKQ1tLaUlLybi9fJgrUjAD4JF+W4r3lg=; b=sNr3SNpmAo1kxL1IKJAIsx/vaGJNMJ+BN+8n+0MOxiF1CEd3Qf+nV9+q8tSr9Hd02l xdK5UkMUTrMW6imUhODbCsht8K0hT8ez4nSJfgcuZNKK9FURaoSgVXSF4yg4syBiKvgC GvGxPsRacmv6tT4ZId31zIBn+h8ClmmSvA/2CzBRSd+mKoxLbAO1igqm96SPU9Yikj5Q /eqSQXqP5X99erLLJ+i1yIJiy0f+2UQH7MdTTcyqsEPC6uZQYI/DCTNyoZGIQe79Hh0V rPsj15Qf37Oh+sLCrdVCdrmgCKCNqFXGAj6hZ6MbxGwDiZhRkKKrGYStQIMVEt1npki8 ltYg== 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=gpCoMJNcwo6BKQ1tLaUlLybi9fJgrUjAD4JF+W4r3lg=; b=R54GDWcz4UOkAiUFANHyJoKC6hEgmI1vzHUi/ysvBWOWP4zyEPZz3NIj+1CvsNxIzM 61l7V+f2vD/UrK1Dq2Y+kLCzCEe2d8Qdq+gxDpAhschDGxwZFAO/19ULMhtZdoRogwP/ GIdngffXqQzwGLez6JaHwXdJCGbhzx6U30pW/oxZQGgeekoeFwpqPFK5IWtyVlekoHdH HrpOKmC68X29MhYVQziQ0myPVaHVcgYssiC570LT+DPcc950faCnZL/wg4jtRb2lxOnA tkeCrO/b7EU+cuzn6SuoH7Kl0Jkcv8Aeub6cFXRPwsmOmS2Z3nARbwnHvkZxe+0J47IM mEtA== X-Gm-Message-State: AOAM5301Apzr9mv9/XaV3oc/glSOhIFKgPXEeFrDb5JXnhtppOzWLmNi 2nuUJDvEVTBbBaYDuBSi3+6bFNrL370P8ckHh/wbbQ== X-Google-Smtp-Source: ABdhPJzJm0Vd4Kck8UenE+ylHTWGX8ozBrgBq4586l62wheY8gYTHLERpu4nbaeHlpd4gJW3e4mB+XNZW7iB6BkXTJE= X-Received: by 2002:a25:e911:: with SMTP id n17mr2742830ybd.48.1624515450316; Wed, 23 Jun 2021 23:17:30 -0700 (PDT) MIME-Version: 1.0 References: <20210623192837.13792eae@gmail.com> <0000000000008a8f9c05c571668c@google.com> In-Reply-To: <0000000000008a8f9c05c571668c@google.com> From: Dmitry Vyukov Date: Thu, 24 Jun 2021 08:17:18 +0200 Message-ID: Subject: Re: [syzbot] WARNING: zero-size vmalloc in corrupted To: syzbot Cc: Pavel Skripkin , akpm@linux-foundation.org, coreteam@netfilter.org, davem@davemloft.net, dsahern@kernel.org, fw@strlen.de, kadlec@netfilter.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, pablo@netfilter.org, syzkaller-bugs@googlegroups.com, yoshfuji@linux-ipv6.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 6:28 PM syzbot wrote: > > > On Wed, 23 Jun 2021 19:19:28 +0300 > > Pavel Skripkin wrote: > > > >> On Wed, 23 Jun 2021 02:15:23 -0700 > >> syzbot wrote: > >> > >> > Hello, > >> > > >> > syzbot found the following issue on: > >> > > >> > HEAD commit: 13311e74 Linux 5.13-rc7 > >> > git tree: upstream > >> > console output: > >> > https://syzkaller.appspot.com/x/log.txt?x=15d01e58300000 kernel > >> > config: https://syzkaller.appspot.com/x/.config?x=42ecca11b759d96c > >> > dashboard link: > >> > https://syzkaller.appspot.com/bug?extid=c2f6f09fe907a838effb syz > >> > repro: > >> > https://syzkaller.appspot.com/x/repro.syz?x=14bb89e8300000 C > >> > reproducer: > >> > https://syzkaller.appspot.com/x/repro.c?x=17cc51b8300000 > >> > > >> > The issue was bisected to: > >> > > >> > commit f9006acc8dfe59e25aa75729728ac57a8d84fc32 > >> > Author: Florian Westphal > >> > Date: Wed Apr 21 07:51:08 2021 +0000 > >> > > >> > netfilter: arp_tables: pass table pointer via nf_hook_ops > >> > > >> > bisection log: > >> > https://syzkaller.appspot.com/x/bisect.txt?x=13b88400300000 final > >> > oops: > >> > https://syzkaller.appspot.com/x/report.txt?x=10788400300000 console > >> > output: https://syzkaller.appspot.com/x/log.txt?x=17b88400300000 > >> > > >> > >> This one is similar to previous zero-size vmalloc, I guess :) > >> > >> #syz test > >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > >> master > >> > >> > > > > Hah, I didn't notice that this one is already fixed by me. But the > > patch is in the media tree, it's not upstreamed yet: > > > > https://git.linuxtv.org/media_tree.git/commit/?id=c680ed46e418e9c785d76cf44eb33bfd1e8cf3f6 > > > > So, > > > > #syz dup: WARNING: zero-size vmalloc in dvb_dmx_init > > Can't dup bug to a bug in different reporting (upstream->internal).Please dup syzbot bugs only onto syzbot bugs for the same kernel/reporting. I think we can say: #syz dup: WARNING in __vmalloc_node_range https://syzkaller.appspot.com/bug?id=3c558412597cc402fd7fbb250ca30d04d46c8c60 as that was the original bug report. 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=-18.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=unavailable 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 9E32EC49EA5 for ; Thu, 24 Jun 2021 06:17:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2C88D613EC for ; Thu, 24 Jun 2021 06:17:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C88D613EC Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E3C3F8D000D; Thu, 24 Jun 2021 02:17:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E150C8D0008; Thu, 24 Jun 2021 02:17:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB5078D000D; Thu, 24 Jun 2021 02:17:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0101.hostedemail.com [216.40.44.101]) by kanga.kvack.org (Postfix) with ESMTP id 84B418D0008 for ; Thu, 24 Jun 2021 02:17:31 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 917B81E09D for ; Thu, 24 Jun 2021 06:17:31 +0000 (UTC) X-FDA: 78287610702.03.D5EA54A Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by imf05.hostedemail.com (Postfix) with ESMTP id 4B82FE000249 for ; Thu, 24 Jun 2021 06:17:31 +0000 (UTC) Received: by mail-qk1-f170.google.com with SMTP id w21so11569189qkb.9 for ; Wed, 23 Jun 2021 23:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gpCoMJNcwo6BKQ1tLaUlLybi9fJgrUjAD4JF+W4r3lg=; b=sNr3SNpmAo1kxL1IKJAIsx/vaGJNMJ+BN+8n+0MOxiF1CEd3Qf+nV9+q8tSr9Hd02l xdK5UkMUTrMW6imUhODbCsht8K0hT8ez4nSJfgcuZNKK9FURaoSgVXSF4yg4syBiKvgC GvGxPsRacmv6tT4ZId31zIBn+h8ClmmSvA/2CzBRSd+mKoxLbAO1igqm96SPU9Yikj5Q /eqSQXqP5X99erLLJ+i1yIJiy0f+2UQH7MdTTcyqsEPC6uZQYI/DCTNyoZGIQe79Hh0V rPsj15Qf37Oh+sLCrdVCdrmgCKCNqFXGAj6hZ6MbxGwDiZhRkKKrGYStQIMVEt1npki8 ltYg== 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=gpCoMJNcwo6BKQ1tLaUlLybi9fJgrUjAD4JF+W4r3lg=; b=HU4ZmTTG0Blxvqbt6XJ+4GXyTjGtgYlS4ee299mkbqVWrmJU96w1HJwwAIvSxWFHbR Mlrwsb+fpBXMJVdSs0yDVQknCw+j0lfS3Wvw3WbTabjUlQy6doooSqur0tGOwRvhkRxz wVbweEfYspht+1XujCtZweyzdhv9VHGl/fKtFoWOigJqPexCA+YWDq8D2iOTyk9rPhxc HuTfuMOqfKTpkCTL6aQH9CrpsVl+TL0GrAFytQR068MtPVoQdxLtIN8jM2tGFiHZ8K4V hmXGdPfu111k4w2GDQ5ory4hL4eeHolXEO3fTMbENjKdnkUsN+dtkB8LsnNVZlE4BNjT kSyg== X-Gm-Message-State: AOAM531CKvyesTuSWfBlNXokf17cvWize1caBxLR36sXsER5oyWn5co2 PZk+PmKu1MTDCL0eMjmFd2+Q97uo/fDrItp99lybpA== X-Google-Smtp-Source: ABdhPJzJm0Vd4Kck8UenE+ylHTWGX8ozBrgBq4586l62wheY8gYTHLERpu4nbaeHlpd4gJW3e4mB+XNZW7iB6BkXTJE= X-Received: by 2002:a25:e911:: with SMTP id n17mr2742830ybd.48.1624515450316; Wed, 23 Jun 2021 23:17:30 -0700 (PDT) MIME-Version: 1.0 References: <20210623192837.13792eae@gmail.com> <0000000000008a8f9c05c571668c@google.com> In-Reply-To: <0000000000008a8f9c05c571668c@google.com> From: Dmitry Vyukov Date: Thu, 24 Jun 2021 08:17:18 +0200 Message-ID: Subject: Re: [syzbot] WARNING: zero-size vmalloc in corrupted To: syzbot Cc: Pavel Skripkin , akpm@linux-foundation.org, coreteam@netfilter.org, davem@davemloft.net, dsahern@kernel.org, fw@strlen.de, kadlec@netfilter.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, pablo@netfilter.org, syzkaller-bugs@googlegroups.com, yoshfuji@linux-ipv6.org Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20161025 header.b=sNr3SNpm; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf05.hostedemail.com: domain of dvyukov@google.com designates 209.85.222.170 as permitted sender) smtp.mailfrom=dvyukov@google.com X-Rspamd-Server: rspam02 X-Stat-Signature: 67mcqmfqs4pmk1e1z4s1ja979axbknay X-Rspamd-Queue-Id: 4B82FE000249 X-HE-Tag: 1624515451-586333 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: On Wed, Jun 23, 2021 at 6:28 PM syzbot wrote: > > > On Wed, 23 Jun 2021 19:19:28 +0300 > > Pavel Skripkin wrote: > > > >> On Wed, 23 Jun 2021 02:15:23 -0700 > >> syzbot wrote: > >> > >> > Hello, > >> > > >> > syzbot found the following issue on: > >> > > >> > HEAD commit: 13311e74 Linux 5.13-rc7 > >> > git tree: upstream > >> > console output: > >> > https://syzkaller.appspot.com/x/log.txt?x=15d01e58300000 kernel > >> > config: https://syzkaller.appspot.com/x/.config?x=42ecca11b759d96c > >> > dashboard link: > >> > https://syzkaller.appspot.com/bug?extid=c2f6f09fe907a838effb syz > >> > repro: > >> > https://syzkaller.appspot.com/x/repro.syz?x=14bb89e8300000 C > >> > reproducer: > >> > https://syzkaller.appspot.com/x/repro.c?x=17cc51b8300000 > >> > > >> > The issue was bisected to: > >> > > >> > commit f9006acc8dfe59e25aa75729728ac57a8d84fc32 > >> > Author: Florian Westphal > >> > Date: Wed Apr 21 07:51:08 2021 +0000 > >> > > >> > netfilter: arp_tables: pass table pointer via nf_hook_ops > >> > > >> > bisection log: > >> > https://syzkaller.appspot.com/x/bisect.txt?x=13b88400300000 final > >> > oops: > >> > https://syzkaller.appspot.com/x/report.txt?x=10788400300000 console > >> > output: https://syzkaller.appspot.com/x/log.txt?x=17b88400300000 > >> > > >> > >> This one is similar to previous zero-size vmalloc, I guess :) > >> > >> #syz test > >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > >> master > >> > >> > > > > Hah, I didn't notice that this one is already fixed by me. But the > > patch is in the media tree, it's not upstreamed yet: > > > > https://git.linuxtv.org/media_tree.git/commit/?id=c680ed46e418e9c785d76cf44eb33bfd1e8cf3f6 > > > > So, > > > > #syz dup: WARNING: zero-size vmalloc in dvb_dmx_init > > Can't dup bug to a bug in different reporting (upstream->internal).Please dup syzbot bugs only onto syzbot bugs for the same kernel/reporting. I think we can say: #syz dup: WARNING in __vmalloc_node_range https://syzkaller.appspot.com/bug?id=3c558412597cc402fd7fbb250ca30d04d46c8c60 as that was the original bug report.