Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp239790imu; Thu, 10 Jan 2019 22:55:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN7EQG6xyNKWhF54THo/MlfpdQ+tbs+vBNSuAc0u4oOdgqNeGOnvskfNPAuUtjFXrrzLv8re X-Received: by 2002:a17:902:34a:: with SMTP id 68mr13790120pld.268.1547189722161; Thu, 10 Jan 2019 22:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547189722; cv=none; d=google.com; s=arc-20160816; b=Ba9sMgDqVYG1wFlUCwcMHc6CejfU8DAPC24eFL3/LUJz9iED2tLyLSU6Fxw9aoXQwD 4T04D2d4Ibg/DrGtviovj7VQeZRX0Z3B6JnQfmrCdIq3fxoIclnPkh2JXvQmbkvGCxXA 9u9vfQKV59C0JUScJze14ZIxRZjaj5HPz1uvbq7uW03yU98eZSn8++DWcKPnPeOvm2wR Keyjg/gtGZ/xl+X2Nh9dDLaoa9h7kikhqG9z2g7Q5akpT2m714fhwxn8oNtGs7vrNME6 X2b0aA2DVHkmtz5vuvbSJVLSPTU1bp/+w73cTkReBRB2yuqAUTGc74cg6M8RJ4+CbP/R jGdw== 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:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=7VC0IcuU5rcqD2aAf8k0ASK6x4ymbI2VV5F+1/feSA4=; b=vrSXCVXa/US4h+GQLZtSad4IHQoU0GRVHmCOMLXb3JQ+pcyoZYqnWZY1MWJT1Hjb39 NllEy8pW+pJ7HRlDKtR5Hwe/dq6jx0xVac0ZVhytYl7dU5nhboDYE0iXocPwuAs5LRtL j9dTWahEKiR0GShwL4V1Zjj7QS6wxtffHj+rzCeOPZjXJShzICRQWOhAXsvGSZWri8PQ heBceNVb9BSK3awvU8kE1U7AgIrwM2KMrNbkD/dub+6Fel4PVcEs0BN/KrUipcNhF0br zSj1ppGFLCq07rxBqjTzX202++RYOYvzQpRQcAhokUP56TTaUnGLXwr/LBU0qe3QC5/Y fX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=uOWwTQ+M; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si7538146pgl.570.2019.01.10.22.54.51; Thu, 10 Jan 2019 22:55:22 -0800 (PST) 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; dkim=pass header.i=@protonmail.ch header.s=default header.b=uOWwTQ+M; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725747AbfAKFBm (ORCPT + 99 others); Fri, 11 Jan 2019 00:01:42 -0500 Received: from mail-40135.protonmail.ch ([185.70.40.135]:63123 "EHLO mail-40135.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbfAKFBl (ORCPT ); Fri, 11 Jan 2019 00:01:41 -0500 Date: Fri, 11 Jan 2019 05:01:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=default; t=1547182897; bh=7VC0IcuU5rcqD2aAf8k0ASK6x4ymbI2VV5F+1/feSA4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=uOWwTQ+MkvExMr2iI4ZoaE5DqZlcy8rqniM/sTMDySZ+3iDKUzh22gXKUh2BuD4FE HWWGfmcfou24FCHcQrWqw3eHbXQd9W3woLDspBx8olNjixJmwIoK5yXcIdtKUzwf1N TgvRtLVHzcHYNA4lQ0LJknne/xfQQ/99BK35W+EQ= To: Qian Cai From: Esme Cc: James Bottomley , "dgilbert@interlog.com" , "martin.petersen@oracle.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Reply-To: Esme Subject: Re: PROBLEM: syzkaller found / pool corruption-overwrite / page in user-area or NULL Message-ID: In-Reply-To: <3b3184e0-d913-6519-0f9d-2f01ef795650@lca.pw> References: <4u36JfbOrbu9CXLDErzQKvorP0gc2CzyGe60rBmZsGAGIw6RacZnIfoSsAF0I0TCnVx0OvcqCZFN6ntbgicJ66cWew9cOXRgcuWxSPdL3ko=@protonmail.ch> <1547154231.6911.10.camel@lca.pw> <1547159604.6911.12.camel@lca.pw> <7416c812-f452-9c23-9d0c-37eac0174231@lca.pw> <3b3184e0-d913-6519-0f9d-2f01ef795650@lca.pw> Feedback-ID: pQGzDYT_k6dzic_kf3kwsxmTXzjnqMJxtC9J3KGyZBepPHdXRBM0BHuwPfpm1pFdJLAMwtJT5KKNaGlRVnFRQw==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Thursday, January 10, 2019 11:52 PM, Qian Cai wrote: > On 1/10/19 10:15 PM, Esme wrote: > > > > > [ 75.793150] RIP: 0010:rb_insert_color+0x189/0x1480 > > > > > > What's in that line? Try, > > > $ ./scripts/faddr2line vmlinux rb_insert_color+0x189/0x1480 > > > > rb_insert_color+0x189/0x1480: > > __rb_insert at /home/files/git/linux/lib/rbtree.c:131 > > (inlined by) rb_insert_color at /home/files/git/linux/lib/rbtree.c:452 > > gparent =3D rb_red_parent(parent); > > tmp =3D gparent->rb_right; <-- GFP triggered here. > > It suggests gparent is NULL. Looks like it misses a check there because p= arent > is the top node. > > > > What's steps to reproduce this? > > > > The steps is the kernel config provided (proc.config) and I double chec= ked the attached C code from the qemu image (attached here). If the kernel = does not immediately crash, a ^C will cause the fault to be noticed. The re= port from earlier is the report from the same code, my assumption was that = the possible pool/redzone corruption is making it a bit tricky to pin down. > > If you would like alternative kernel settings please let me know, I can= do that, also, my current test-bench has about 256 core's on x64, 64 of th= em are bare metal and 32 are arm64. Any possible preferred configuration tw= eaks I'm all ears, I'll be including some of these steps you suggested to m= e in any/additional upcoming threads (Thank you for that so far and future = suggestions). > > Also, there is some occasionally varying stacks depending on the corrup= tion, so this stack just now (another execution of test3.c); > > I am unable to reproduce any of those here. What's is the output of > /proc/cmdline in your guest when this happens? console=3DttyS0 root=3D/dev/sda debug earlyprintk=3Dserial slub_debug=3DQUZ