Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1777292pxu; Thu, 8 Oct 2020 22:19:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxksEsjplcxQYUVn/PVOfsPipOnonhIEw58rm6bKHo9jLtmDA+utt9B3ZN2CFFRuwVffZxp X-Received: by 2002:a50:9e6a:: with SMTP id z97mr13299169ede.32.1602220783058; Thu, 08 Oct 2020 22:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602220783; cv=none; d=google.com; s=arc-20160816; b=I2I4ydEyHP191QD8sb2u9I5XhOsl740IDg7750BuIKnQQiR+O8FtSzY/G9nEEfYEBU uMQlh+fBWl/XROtFBgOJeJ3vcnTalt/vsIVVWrBDIa4QZCzbphLfsZqU+ET45Y6iVCo1 pSqNmSB8oK325Tc3rPTqmxxTXEnfvqYw1AGhOAbeUc0IoD+uSFZtK2Ykt2pe3F0K6My8 yL8RZ6BIR2FeFMZjX51CkTkbIBS0w5bPNPTHI1I5tNLhI6PVhkyWkOPe6mGu+94oBqWL aEOVkyP5z892OKrFiRxDNc497klc5c/EMWeK8aHJuBrpNSYCSgs5JGmj9s/VuQetlmXG tXTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=/sJCsgPrmvx1zlBU6M8v4TR3AdDB8zcW7pSVcNMUnJ0=; b=oaSDBoMuA5411417SubYP49wJZazCGUU522eJuprLgkgPJG+gJwKVllV3wEuR14e/b pCH798fdMqT0KQTvW6cl94VWEaxfJ2XIZsssYEYN4CKO/c5F8AtxiJZoP0neKqLN328p 7F9zVmn3KY9q25Z7BvXvrACo38nQlrGbTu0EJCEdE4Tr+iHJnr+IZ4XPoql0NMcEycZJ WsHbkpjXTL/hJU/AoNK9WxwXmEW9rcrvdec9MlL6p73tnICBygxmA6/RE5Z61rbLt6pP +oNZ+hivGnLvCN1JHqv2+U9hkXZcX9XWzQMMZ1zd29h+O493tpJXhuG4j+6QOhX8dGm7 K8Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=LBsf8Ytl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si3516171edi.294.2020.10.08.22.19.03; Thu, 08 Oct 2020 22:19:43 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=LBsf8Ytl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730130AbgJIBXH (ORCPT + 99 others); Thu, 8 Oct 2020 21:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgJIBXG (ORCPT ); Thu, 8 Oct 2020 21:23:06 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 490B1C0613D2 for ; Thu, 8 Oct 2020 18:23:06 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id 34so5796930pgo.13 for ; Thu, 08 Oct 2020 18:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=/sJCsgPrmvx1zlBU6M8v4TR3AdDB8zcW7pSVcNMUnJ0=; b=LBsf8YtlE4fcauqSKGpZKwD9r8ECebVGEfAlSm/bRt1yPNFgX3hIUoIC81ZytrW9Iq tZekgCxrAQ2MSidZR20ENUi6vIvxL2AkbWEx7t72yrpvXHbnxDhkg1m+MW4qnXvTvh4C V6akNy1+c8+zrjI3Co7+aJVhUansdLSbbSjoXmHdnntRmh1VNCk2CpSqNw0OUecyRjip yYdNGEnHJFX3M1iSdLUlgPGnWC54KKr6InLvEqlnlp7+WsJ6lbm9ISfnFGefmZ9M2v1C IPCbAdJ8qrFak8bZVlkuqUXSLQj6iGPWDTbmKKl2DxffIFGTkaVAa4nWLyTKXg2ebQ7U 8L7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/sJCsgPrmvx1zlBU6M8v4TR3AdDB8zcW7pSVcNMUnJ0=; b=Y3p3bJbJx2/CCmqNwgH3Jdyij2g9j6GuXKecSXLeYryF2NA7Xgq3nPIt+vT19r5QID U/cUgyL40yIbvu4fZtY/YUF+HPtWJ3n7szeq73i2GOanlD1vFPZHl34CJcIDRkY6OseK CWgxcXN68f4jxnblIl4DBQFkqIziieySCk8x9+xUlw8wAHIkyC3Cq4wTiPAvR1RLYbiU C98JEAUZViILAlQO7klcQBs8G6kbFHw/dG9Fv+MwPy9mtCzZW4tvj1ebzKVKjB7ENcWg N7tjItZIw0C8nTDIY5ntSwSb+WQ3HMbgHwMUPImDN6womfxfKnZWV9drA3RDwHP2Mb1W YGZQ== X-Gm-Message-State: AOAM533Kc7QWQ6pnaX8Y89qDtrN1gJQQxVibkrGJCEIf4xmdAkk4VouN vJ20nmpw3fb7FVjGjTBFkPBcqQ== X-Received: by 2002:a63:5a11:: with SMTP id o17mr1323955pgb.287.1602206585774; Thu, 08 Oct 2020 18:23:05 -0700 (PDT) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id w5sm8999927pgf.61.2020.10.08.18.23.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Oct 2020 18:23:05 -0700 (PDT) Subject: Re: general protection fault in percpu_ref_exit To: syzbot , bcrl@kvack.org, hch@lst.de, linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ming.lei@redhat.com, syzkaller-bugs@googlegroups.com, tj@kernel.org, viro@zeniv.linux.org.uk, vkabatov@redhat.com References: <000000000000b1412b05b12eab0a@google.com> From: Jens Axboe Message-ID: <165db20c-bfc5-fca8-1ecf-45d85ea5d9e2@kernel.dk> Date: Thu, 8 Oct 2020 19:23:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <000000000000b1412b05b12eab0a@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Jens Axboe