Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5156130pxv; Tue, 20 Jul 2021 21:34:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1gJBviABQtLm4JzGyFPE9uLkMu7+MJNuXn2i3IrF/2V1f/y1wrvJn0GDZ6Jeg6EnDDLMW X-Received: by 2002:a17:906:4e15:: with SMTP id z21mr36926394eju.333.1626842073833; Tue, 20 Jul 2021 21:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626842073; cv=none; d=google.com; s=arc-20160816; b=GSHgDGo1FtICEy4CzdaXhaY9eDEHPKlNIafbiNRPo6h8ubRZtlMUELQKC6GLJhUiwc RUoU3HE6g+66L3MzAfO3RiFRtRgne8CtpbpMz1jfD1nZnlLeeet2n5DTBd8DHpYdjGDR 62P9viGAMiUXK1/dVxdql9IjhmxfavBArNlTdHChB1ETM7jNvFKYMfWqFyUpbAOU1Aij eu1XRedrbIHAd2sU5FYP6gyBQYzOuUEqtZmh60lxnPB51/DN9ERqzv4NlW0sB9ZzxzBF jcwzQxz5Ox7Ps9C3SdYUyxS2AJDEQklvbUl/Gn/k6nERtxh2NuJmymhniJm6QERYBygr qRzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5RQWrY0WgEWFMLM9Tcav6WiO53/jRatoY6AkX7Y6m8Q=; b=Oms98noDVcwtId7pHZjg9qucaK942QdXRjgUQOaGDUefh39Fr6WFMB8QOOfdAQhjHp l7dAP405iCMQpoGnMPmNTafmo5x6oRLlV1xNPxG+ueDop4G6DeFCRtdoXKf3+KRkHqxk sIMjPyIlWNsrpwSfDlXFdfH+Aex9BrjsXGU4GhN90+huaVQFdNsnQ0xA46bDIWK7Dvby fw+Qytd+Ff2puJYaPXTah1wPFswHkWlXiClp0u79xnQ5lby7jrTo5O1lKpLDAn9USTpp QQzqHeigYUy8b7Ov4A//UQ+T7silkBcfnbbt4I8rGwP49JhnniZj7UFARdkbmaQ72TAH c7MQ== ARC-Authentication-Results: i=1; mx.google.com; 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 p13si1946675edr.88.2021.07.20.21.33.58; Tue, 20 Jul 2021 21:34:33 -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; 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 S232169AbhGUDvZ (ORCPT + 99 others); Tue, 20 Jul 2021 23:51:25 -0400 Received: from verein.lst.de ([213.95.11.211]:57234 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232111AbhGUDuB (ORCPT ); Tue, 20 Jul 2021 23:50:01 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id B215D6736F; Wed, 21 Jul 2021 06:30:34 +0200 (CEST) Date: Wed, 21 Jul 2021 06:30:34 +0200 From: Christoph Hellwig To: Hillf Danton Cc: syzbot , linux-kernel@vger.kernel.org, Christoph Hellwig , syzkaller-bugs@googlegroups.com, Eric Sandeen , Al Viro , Luis Chamberlain , Greg Kroah-Hartman Subject: Re: [syzbot] WARNING in internal_create_group Message-ID: <20210721043034.GB7444@lst.de> References: <000000000000bd7c8a05c719ecf2@google.com> <20210721033703.949-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210721033703.949-1-hdanton@sina.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 11:37:03AM +0800, Hillf Danton wrote: > On Tue, 20 Jul 2021 11:53:27 -0700 > >syzbot has found a reproducer for the following issue on: > > > >HEAD commit: 8cae8cd89f05 seq_file: disallow extremely large seq buffer.. > >git tree: upstream > >console output: https://syzkaller.appspot.com/x/log.txt?x=116f92ec300000 > >kernel config: https://syzkaller.appspot.com/x/.config?x=7273c75708b55890 > >dashboard link: https://syzkaller.appspot.com/bug?extid=9937dc42271cd87d4b98 > >syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15fc287c300000 > >C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178cbf6a300000 > >WARNING: CPU: 0 PID: 8435 at fs/sysfs/group.c:116 internal_create_group+0x911/0xb20 fs/sysfs/group.c:116 > The device_add(ddev) in register_disk() may fail but it proceeds to register > block queue even at the failure ... this falls in the class of known issue > given the comment line. > > * FIXME: error handling > */ > static void __device_add_disk(struct device *parent, struct gendisk *disk, Yes, Luis is working on actually fixing this - but it requires changes to every single block driver. How does a cap on the seq_buf size propagate here, though?