Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2472877rdb; Wed, 4 Oct 2023 02:09:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKFIyyJhNr20dRxbWezj+78On1eAkozItM07IciBl2VI/xz6jVjYXaSh/dvBgdLxeQsLy2 X-Received: by 2002:a17:90b:38c7:b0:268:2164:dc93 with SMTP id nn7-20020a17090b38c700b002682164dc93mr1570454pjb.13.1696410577114; Wed, 04 Oct 2023 02:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696410577; cv=none; d=google.com; s=arc-20160816; b=hEhiLcxh/cANSqSyWOzn1Ax3cds5ct62CUOteByTdYajR5OPbw4dBpVfFQDidB+emi H63IuReyRufA1C4iHVemQ3bgp2wDvm6fOj9SeCMvZluuDbMgeZlWx5c6c1INnT+aJgBP LXLiKf4Q9nQIP7P+Pu8Q/0wopqMk7PzWRh2rt4PGROZ1q6dgTMR0+jwNlNHcgIbI4zHy Ieh9GFZJq5AlbWGz2wz0GVKO3avQbNLX5bRq/R7UaXz73QX7pOUWL4XYtp/nBUjfPdDy J07ENFYJYsRB86ZsZoZLx6TUij23dTstvo/jNZxKGWTMbgAN8oMD8iSlLUs0EX+H4kQe cpOg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Yx87oawZJ9i0TOGVXVmBy4aZtZ4bds/o0lWvhxfF4YY=; fh=OabIJe1AYnVSdxUUhDo+lzqWSJxt0S2XMFhWFOAsYCk=; b=AkOVTwNLvpiXobsYcK3esLCwQCT6dMgNNt9bPxdaUwYaZOso5SukxwZeE4xrtz7Tia ysPrTqtvASBR0KO3OOUiday5p/HzHQhQ7icWoV6hvlh99iqIzWG9omIh4mDNYpmTXL3x rQUegg8Wqby1ZKVgobGr3w+0ksUvK5Xewg/sPOGtrDeO7Ah/BS6P86zDjWIUj98TIf9g wG6Dbq5/pG011If9ghNA749O35EEQmt5oXuxEgWVXvnmCAJ03ppeLZcrN1gAulh/XOVX NcgmtpzN0M7xld8O8RZxjPe/1xAesCb9hfFHddGajMohu4tQc+m1LyPs9H4L4H3fxaeR 2COw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gXvdvHjx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e10-20020a17090ac20a00b00262f937bf93si1147232pjt.77.2023.10.04.02.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gXvdvHjx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8B0CE81F3314; Wed, 4 Oct 2023 02:09:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241920AbjJDJJ3 (ORCPT + 99 others); Wed, 4 Oct 2023 05:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241927AbjJDJJ2 (ORCPT ); Wed, 4 Oct 2023 05:09:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78506C1; Wed, 4 Oct 2023 02:09:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A003C433C8; Wed, 4 Oct 2023 09:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696410563; bh=ufMtvYvvQgkyw9RvRHyKltaHjdLBCYf+0zaRKd0TqL8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gXvdvHjxG3tNYMTHGFImOSbzdtDpSQJp3lEmYva6FCKXusK0fv2FvtiQmRkx13s76 luwasFC+IzT0q7CeccmYwUdrwApCeEPNepFsXOKhyMZoWB5dDSmJNV5U5IeSVdLgR6 7+vhaahd2Prrg+t/bc7fnkg6KqxVKEgiuapcsm/btOJjWw8B5lsq2Lt1Rw3AD7ZvFS PBRB8oJsqRWRKyJpNw6yjKP/Ns0N/SnmebICcxTL8EO9IS4t+UpBbJ4OZDI5A9eMVX VjOzfF8fNCwqeV86pAiL+PJ/DonAYc6T/X1pl19MquWsodcdhm5Km3B1xQ7t08HEvH 0ypsa6d14Oe0A== Date: Wed, 4 Oct 2023 10:09:18 +0100 From: Lee Jones To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Daniel Starke , Fedor Pchelkin , Jiri Slaby , linux-serial@vger.kernel.org, syzbot+5f47a8cea6a12b77a876@syzkaller.appspotmail.com Subject: Re: [PATCH 1/1] tty: n_gsm: Avoid sleeping during .write() whilst atomic Message-ID: <20231004090918.GB9374@google.com> References: <20231003170020.830242-1-lee@kernel.org> <2023100320-immorally-outboard-573a@gregkh> <20231003185500.GD8453@google.com> <2023100457-entail-freefall-06fd@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2023100457-entail-freefall-06fd@gregkh> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:09:34 -0700 (PDT) On Wed, 04 Oct 2023, Greg Kroah-Hartman wrote: > On Tue, Oct 03, 2023 at 07:55:00PM +0100, Lee Jones wrote: > > On Tue, 03 Oct 2023, Greg Kroah-Hartman wrote: > > > > > On Tue, Oct 03, 2023 at 06:00:20PM +0100, Lee Jones wrote: > > > > The important part of the call stack being: > > > > > > > > gsmld_write() # Takes a lock and disables IRQs > > > > con_write() > > > > console_lock() > > > > > > Wait, why is the n_gsm line discipline being used for a console? > > > > > > What hardware/protocol wants this to happen? > > > > > > gsm I thought was for a very specific type of device, not a console. > > > > > > As per: > > > https://www.kernel.org/doc/html/v5.9/driver-api/serial/n_gsm.html > > > this is a specific modem protocol, why is con_write() being called? > > > > What it's meant for and what random users can make it do are likely to > > be quite separate questions. This scenario is user driven and can be > > replicated simply by issuing a few syscalls (open, ioctl, write). > > I would recommend that any distro/system that does not want to support > this specific hardware protocol, just disable it for now (it's marked as > experimental too), if they don't want to deal with the potential > sleep-while-atomic issue. n_gsm is available on all the systems I have available. The mention of 'EXPERIMENTAL' in the module description appears to have zero effect on whether distros choose to make it available or not. If you're saying that we know this module is BROKEN however, then perhaps we should mark it as such. > > > And Lee, you really don't have this hardware, right? So why are you > > > dealing with bug reports for it? :) > > > > 'cos Syzkaller. > > Ah, yeah, fake report, no real issue here then :) Ouch! The way I see it, the present issue with Syzkaller is that we do not have the resources to remedy all of the issues it flags. Passing off all reports as 'not real issues' is going to make engineers who decide to work on them feel undervalued and is likely have a detrimental effect overall. As an ambassador for young and new people trying to get into Kernel Engineering in general, is that really the outcome you're after? -- Lee Jones [李琼斯]