Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1756152pxu; Thu, 8 Oct 2020 21:36:52 -0700 (PDT) X-Received: by 2002:a17:906:8248:: with SMTP id f8mr12673676ejx.292.1602218211242; Thu, 08 Oct 2020 21:36:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlA3tfIhi2zKx1v1hn0SE8WGhgNIm1ByM6QeT65qQAAnAmd3eH4WeMRg1wH6emnU36w+TU X-Received: by 2002:a17:906:8248:: with SMTP id f8mr12673586ejx.292.1602218210327; Thu, 08 Oct 2020 21:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602218210; cv=none; d=google.com; s=arc-20160816; b=GT/5nINYhbbQ9jJlVxnSpLuGxFhpaZldX/QvxbrIOwVv9R7LC7PTaKY03/OykvBpzY Uio1ighNc+CpIgG2ZkUMfu0kfRQCfklQc2qhtSxWb6ZLpv2l9znGa1Hy20z4Hlo6YLwg UksCyBN6gq0uv4EcAWjQjBd91qYhW32dmh0O3T9Ltuh8LHqqIeVvIUupflbYQYVlz40y 7hu7amj9TpisC5AKsfJ2LTB7uzHsbIIWiRboNJ3YJTcDC3D/gIlDwITV7UxcTOd47aJ8 SrJXnFaApTosbiq3WALk0bq7xvSqkcCg2X6TToKOlPM7ZvM788h5qiwVt6KSrxcJ1GoC GZcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0LJZLfN1evxEALdYZ+iKwkAO+jzveYCVlDmJws2G9/M=; b=dG0oN5LdspGMgOmB/1oj1GBNbtGwxMnEXwnyw0HHHGM8jrzs7nZYPyylMYtYplj2fd vssddW7Q7PkW4aCPB6+oUbq788HOS7glMNqVvdkbIqbvGs7wuSivTw2eyUPsvw8MyLlu NgFf9YbPC2X/lHO7DdyqbnL8tOjGK4MZcMn5dheipImLSlaWLvVvm3P/IOC+xRg/56lk bMCMZVpYNRNgemeaJYaGzHk7yTqtHx7Hfj6QDe0vy22+6r31C7iCJQaA7cpI/5bGSiT7 RsOWZTxC6T+6t7qTf1aFY4xkKkDKimmschOrpKdOphf6T4R7rB6FaFKCvqOOWHlzUe/D fmkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gshiYZyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw5si5108607edb.108.2020.10.08.21.36.26; Thu, 08 Oct 2020 21:36:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gshiYZyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbgJIEFq (ORCPT + 99 others); Fri, 9 Oct 2020 00:05:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:35510 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgJIEFo (ORCPT ); Fri, 9 Oct 2020 00:05:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602216343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0LJZLfN1evxEALdYZ+iKwkAO+jzveYCVlDmJws2G9/M=; b=gshiYZyB/VenNcMmQITYFdsQHpyK09ZlZvlZ0Y8oFLOHQrdQoKbw09oOBZonaMNqA7phY+ kBEQ2tb+O0ASjV0iUKdtfC1fdi4c5VldfGnKdoYoWEyVPW97pSC37mg3XVRNAB0SXY7Mra OWTguRg+7tG8tGFjNHHe8/mnQb8PA74= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-456-xglw9SF9NZWwo7f1JWlwBg-1; Fri, 09 Oct 2020 00:05:39 -0400 X-MC-Unique: xglw9SF9NZWwo7f1JWlwBg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 299D457083; Fri, 9 Oct 2020 04:05:37 +0000 (UTC) Received: from T590 (ovpn-13-88.pek2.redhat.com [10.72.13.88]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 851FC10013C1; Fri, 9 Oct 2020 04:05:29 +0000 (UTC) Date: Fri, 9 Oct 2020 12:05:25 +0800 From: Ming Lei To: Jens Axboe Cc: syzbot , bcrl@kvack.org, hch@lst.de, linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tj@kernel.org, viro@zeniv.linux.org.uk, vkabatov@redhat.com Subject: Re: general protection fault in percpu_ref_exit Message-ID: <20201009040525.GB27356@T590> References: <000000000000b1412b05b12eab0a@google.com> <165db20c-bfc5-fca8-1ecf-45d85ea5d9e2@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <165db20c-bfc5-fca8-1ecf-45d85ea5d9e2@kernel.dk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 08, 2020 at 07:23:02PM -0600, Jens Axboe wrote: > On 10/8/20 2:28 PM, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit 2b0d3d3e4fcfb19d10f9a82910b8f0f05c56ee3e > > Author: Ming Lei > > Date: Thu Oct 1 15:48:41 2020 +0000 > > > > percpu_ref: reduce memory footprint of percpu_ref in fast path > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=126930d0500000 > > start commit: 8b787da7 Add linux-next specific files for 20201007 > > git tree: linux-next > > final oops: https://syzkaller.appspot.com/x/report.txt?x=116930d0500000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=166930d0500000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=aac055e9c8fbd2b8 > > dashboard link: https://syzkaller.appspot.com/bug?extid=fd15ff734dace9e16437 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=119a0568500000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106c0a8b900000 > > > > Reported-by: syzbot+fd15ff734dace9e16437@syzkaller.appspotmail.com > > Fixes: 2b0d3d3e4fcf ("percpu_ref: reduce memory footprint of percpu_ref in fast path") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > Ming, this looks like a call of percpu_ref_exit() on a zeroed refs (that > hasn't been initialized). Really a caller error imho, but might make sense > to be a bit safer there. Hello Jens, The fix is sent out as: https://lore.kernel.org/linux-block/20201009040356.43802-1-ming.lei@redhat.com/T/#u Sorry for making the trouble. Thanks, Ming