Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4361292ybl; Mon, 9 Dec 2019 09:31:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyf+TEAA9YGOkMdb3ElKSvAbgKijHLo9eHt8XpVLR5jZTo2ng61nMXPz/NX9trp2kNlyUd4 X-Received: by 2002:aca:d6d2:: with SMTP id n201mr172287oig.112.1575912694539; Mon, 09 Dec 2019 09:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575912694; cv=none; d=google.com; s=arc-20160816; b=bWhS7kP1IjttgQJocoP9xcZvcHy5g0nmNnecDbhzcbWbxy6XqaHIRCfsxJIaqpaWx+ oIzMBO6NNOFTpMtAnA9j3EpDubgsg7qZQFYBbPgE3XFTd3l/Aw4J4sKwxFRn118QBN3D As7QcCfzYSSinsTiCKUVlUYSyKzSwkvBBjqXPAEct0emBZFBn36wOd4H1nZ5ET3d54RS quTV2qvZqW2rLgzxnXswfrFPfIiCktNv4tM1gSI1ttM5zhL/zTaGBJJLGk75Tb/kDLs9 gw5KtFeX/5fUO/Ehst/tyeN4Fomv/XchY8SG2ML5ED0CwrYaaTu36nlm5xJzfujYu3QP SwdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature :dkim-signature; bh=VxSk0kTeowdly7fXn1T+bkV6s+34rC3j1VX5t2hOPBs=; b=Rx6KfU4PT4/6HIaLJ47iNu51NbVLPZ3pgyk8JR21odt7NgBbBb8PaIPGdJMnnxf63A iirvIGVWmsUtcqGW3hnUoEMwo8l19S8ZvGOEfchZh6nzkwXpkJIqfGs8UZ5xjqNWJOI6 Y/edv0XbtujH1hnnWrUuH4s1Q57vq8xsclj4+VEX/pSEqoo2ohb9d57Olp+sh6UZcVNp Id8dcJgGv/QQd5wci6xU0Iz5DFUviUr6qv6ElBq9txnkB37BxrJYjYTug42UjQctVfdK V7mcOrHglPs2Y1DlLLNUZgUcMo4XE6HgCKbNf9Hw4fkhj2X423pMAKnYeGkVQFOFTUtj F3lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@warpmail.net header.s=fm2 header.b=rChYbxSk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pKxWTsqn; 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=NONE sp=NONE dis=NONE) header.from=warpmail.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si159820otk.324.2019.12.09.09.31.19; Mon, 09 Dec 2019 09:31:34 -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=@warpmail.net header.s=fm2 header.b=rChYbxSk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pKxWTsqn; 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=NONE sp=NONE dis=NONE) header.from=warpmail.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726584AbfLIRaZ (ORCPT + 99 others); Mon, 9 Dec 2019 12:30:25 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:56797 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfLIRaZ (ORCPT ); Mon, 9 Dec 2019 12:30:25 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B973FD77; Mon, 9 Dec 2019 12:30:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 09 Dec 2019 12:30:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm2; bh=VxSk0kTeowdly7fXn1T+bkV6s+ 34rC3j1VX5t2hOPBs=; b=rChYbxSkkwzz6Dd7x8jQ9HDYu7oC81Q3AyaZvNsoqY +K8t92AYKsQgcNOZfkp5fnmZemuVkpOWmooRrwBcfqkXqnuQzGkeJfOMrCPGfMjO 2SWLJrFTgOVxBATZvHNbZqiRH0LGHZpCqz+FkEF/AgmNXmB5TNOS4gnJRCOVG6bD WLKA/f93fUtsqzG4Ar/thTF0CJh633vOXGucRMKVHc1ifF1ia4B1eAUdMa+cjmwO Dyzdhq+5OU+UzflEHx7CNoVVhdC0cbVDHBnMwaWEH4Lt9fd0bxwl1MMOd/hu3XgN KaebUjuRw7WXEPPk19shMY1ZtciMUPmJwuRJbA3zeesQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=VxSk0k Teowdly7fXn1T+bkV6s+34rC3j1VX5t2hOPBs=; b=pKxWTsqn1PQxuxfI6p3qCj KQ3+AWwaViFnLNaUG7oLEE4QbHaLcoN4rlGxGKMkLHkmie/6DSXSmAXnwa9xk54N J9W4nKa80XSZYz/MSKwbFLHr0fVyQNu7FirT5BkdM9lONWQt8hE9E8biCzIFeAvo DQHWoi81wAq8hYwfLiBwXKf17b876UrTy0cygNx3UPsfU1qsZGHMq7u68BdrNNLj zv21dpCVAKSxFJ4YazApzq8czVxpUoVzWIctZOnyL/CcQL/0WrQVUBCY14lmFeSr TCJQPWVKNiI6KPqJIJl6PuUSHZyaPG0bxV0L0qsifmMerNAz89kKdSXOD+wVyj4A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeltddguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgesghdtreertdertdenucfhrhhomhepphhhihhl ihhpseifrghrphhmrghilhdrnhgvthculdfrhhhilhhiphcumfdrmdenucfkphepjeelrd dvudelrdduleefrdelieenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpseif rghrphhmrghilhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (p4fdbc160.dip0.t-ipconnect.de [79.219.193.96]) by mail.messagingengine.com (Postfix) with ESMTPA id 012F930600E0; Mon, 9 Dec 2019 12:30:21 -0500 (EST) From: philip@warpmail.net (Philip K.) To: Denis Efremov Cc: moritzm.mueller@posteo.de, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@i4.cs.fau.de Subject: Re: [PATCH] floppy: hide invalid floppy disk types References: <20191208194534.32270-1-moritzm.mueller@posteo.de> <87h82ajzqd.fsf@bulbul> <04f0dfb9-d25a-d9a3-74cd-538165a8bfa2@linux.com> Date: Mon, 09 Dec 2019 18:30:18 +0100 In-Reply-To: <04f0dfb9-d25a-d9a3-74cd-538165a8bfa2@linux.com> (Denis Efremov's message of "Mon, 9 Dec 2019 20:04:32 +0300") Message-ID: <878snle79x.fsf@bulbul> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Hmm, I would say that driver blacklisting is a more proper solution in > this case. I doubt there are people with this issue and real floppy drives > in their setup. Altering the default driver's initialization scheme seems > superfluous to me. As long as major distributions like Ubuntu ship the floppy module, there are enough people who could be affected by this peculiar behaviour. While I agree that blacklisting the module would be more elegant, I still think that a patch that goes in this direction could help more people, especially those who don't want or cannot solve kernel-related issues. > This will force users (if there are ones) who depends on this behavior > to rebuild the kernel. blacklisting doesn't require kernel rebuild. Are there floppy disks of unknown types? Our patch is intentionally conservative: We won't hide false negatives. If the motherboard reports an non-existent disk If you're ready to think about it, we could consider extending the patch to un-register the device if it can recognise that it's (probably) not real. In our case, for example, fdisk reported that fd0 had a size of 4k, something think is a strong indicator that something's not right. Alternatively, we could look into what the comment /* FIXME: additional physical CMOS drive detection should go here */ would imply. This particular bug can only affect fd0 and fd1, so if we spent some more time, we could find something. =2D-=20 With kind regards, Philip K. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEXEVvqaSeWykH0GvsTLppj2Aa7OEFAl3uhKoACgkQTLppj2Aa 7OF9pAgAqWP2tVIcoQy/Ulcz7yj53sm5Owk+EhQWE3AvheRX6y0GKgoISKw3PDHG D+EluFH2strIYikcsEkWzvEGNnafcvHhfT+qNVwg5uj5aN2MfaMHHBzkHsgYYV1n AIYU62vaY2Wvrh2QxGEojUNL8YHBHWLihVxmUPVzztP8KJ7MnPhYhJDi9jZwPZzM bsZzavZL/E8YS4FprpXJ2bLMMHgdn/uG2M0VXQ4ZWowtqKv4Md5wwILpukA0JdpD C8UzNE49oFIGb/WHGLj/fZCM002in9hcsTOBVM5Cl20KbHGUU0M2+S1R3gu0cLR0 spfepi0i9PEPa6b/KB8mmltBvuCQ/A== =bMz4 -----END PGP SIGNATURE----- --=-=-=--