Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2973926imm; Sun, 10 Jun 2018 05:57:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJMQImuPpex0Bro9Ut531PMtgR7HRrI7EgM9SbSziWWOzMRDrWOdFmKwCRzqF8I9p3o7iu4 X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr14310444plb.274.1528635478477; Sun, 10 Jun 2018 05:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528635478; cv=none; d=google.com; s=arc-20160816; b=ML+6V6kM7LDssTdx1nBNWSWKxsjOeKHjDY/ow5SgyLKoolwkkGe/XjUgotzsqgy/Wa qCV6WHiPz6CJyFSQKsSlUpg1okhIYkyBnrIxOGn+MIUL+vWz1fIBtcDpCzrLPF3eKNka IsrJBhojOrCm5ZxC8S5Jh41F++7ot4w/MneiPXb0McbCiik2pYn6WI3lxnw24Ir31GFK OFRPgWJZWepPUw3Q1DsHSKGMOZtGHAO8aULwEjnYrY++D8R3czG49NfsCnqhtzsvb6w0 aFiZ1iJqOKf4LhILdX+LscFGVacHzNCYDDVKjA2H8FYJXTQkqEm+IVcHYqoQybD4zdlI UzeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=EYWAXvXClqE8BrK7i40KMLk8Z/6/HEQHXiOecnPC1Fo=; b=j6Ca/lkhy6WR0FpAxDTeJZfV4BXMsuOc3SsE6vpGGMPFVtBTNAYjCilVsnOkI1Q2MP DK/kxnt/LfZGs13y6EL9DFbv2FvbAc9K3QZsgq3D8ndlHvHsO9i6Ao+Y0z+HUJp8BbXE 6DwSnV2a5P9kfIIketdNAec0viacm0uDvazb3dYdPplXDk/vQC52ZKsd+foRX6Dcdadh UI1H0FNgfPLi4ql/SB5J+ZTXsc/oDOimxnAkKd0IycEwWDOXSZ2PHQexPkdIaFUf9oXn Dldy1iTsnBdOcUlC9EW0jid0cXKjx+0tkHgdKkEw3evLYKpoTN2CjI1p5vRt3CfYbUHB XPww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g61-v6si40119199plb.169.2018.06.10.05.57.43; Sun, 10 Jun 2018 05:57:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753700AbeFJMx3 (ORCPT + 99 others); Sun, 10 Jun 2018 08:53:29 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:57958 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753443AbeFJMx2 (ORCPT ); Sun, 10 Jun 2018 08:53:28 -0400 Received: from fsav304.sakura.ne.jp (fsav304.sakura.ne.jp [153.120.85.135]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w5ACrC9a094886; Sun, 10 Jun 2018 21:53:12 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav304.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav304.sakura.ne.jp); Sun, 10 Jun 2018 21:53:12 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav304.sakura.ne.jp) Received: from [192.168.1.8] (softbank126074194044.bbtec.net [126.74.194.44]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w5ACr6AJ094853 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Jun 2018 21:53:12 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: WARNING: kmalloc bug in xdp_umem_create To: Dmitry Vyukov Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , syzbot+4abadc5d69117b346506@syzkaller.appspotmail.com, =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "Karlsson, Magnus" , David Miller , LKML , Netdev , syzkaller-bugs References: <00000000000092de58056e3d4b96@google.com> <10d6b170-b820-3077-8737-c9d06e98d0fb@I-love.SAKURA.ne.jp> From: Tetsuo Handa Message-ID: <13f6777a-2170-d0cc-1066-1b48a27ec981@i-love.sakura.ne.jp> Date: Sun, 10 Jun 2018 21:53:07 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/06/10 20:52, Dmitry Vyukov wrote: > On Sun, Jun 10, 2018 at 11:31 AM, Björn Töpel wrote: >> Den sön 10 juni 2018 kl 04:53 skrev Tetsuo Handa >> : >>> >>> On 2018/06/10 7:47, syzbot wrote: >>>> Hello, >>>> >>>> syzbot found the following crash on: >>>> >>>> HEAD commit: 7d3bf613e99a Merge tag 'libnvdimm-for-4.18' of git://git.k.. >>>> git tree: upstream >>>> console output: https://syzkaller.appspot.com/x/log.txt?x=1073f68f800000 >>>> kernel config: https://syzkaller.appspot.com/x/.config?x=f04d8d0a2afb789a >>>> dashboard link: https://syzkaller.appspot.com/bug?extid=4abadc5d69117b346506 >>>> compiler: gcc (GCC) 8.0.1 20180413 (experimental) >>>> syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=13c9756f800000 >>>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16366f9f800000 >>>> >>>> IMPORTANT: if you fix the bug, please add the following tag to the commit: >>>> Reported-by: syzbot+4abadc5d69117b346506@syzkaller.appspotmail.com >>>> >>>> random: sshd: uninitialized urandom read (32 bytes read) >>>> random: sshd: uninitialized urandom read (32 bytes read) >>>> random: sshd: uninitialized urandom read (32 bytes read) >>>> random: sshd: uninitialized urandom read (32 bytes read) >>>> random: sshd: uninitialized urandom read (32 bytes read) >>>> WARNING: CPU: 1 PID: 4537 at mm/slab_common.c:996 kmalloc_slab+0x56/0x70 mm/slab_common.c:996 >>>> Kernel panic - not syncing: panic_on_warn set ... >>> >>> syzbot gave up upon kmalloc(), but actually error handling path has >>> NULL pointer dereference bug. >>> >> >> Thanks Tetsuo! This crash has been fixed by Daniel Borkmann in commit >> c09290c56376 ("bpf, xdp: fix crash in xdp_umem_unaccount_pages"). > > Let's tell syzbot about this: > > #syz fix: bpf, xdp: fix crash in xdp_umem_unaccount_pages > > Excuse me, but that patch fixes NULL pointer dereference which occurs after kmalloc()'s "WARNING: CPU: 1 PID: 4537 at mm/slab_common.c:996 kmalloc_slab+0x56/0x70 mm/slab_common.c:996" message. That is, "Too large memory allocation" itself is not yet fixed.