Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2864920pxb; Tue, 19 Jan 2021 07:57:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB9yXFKWyEXrzsiOaapaHisXJR2rwj9BJlOT8VT6oP919vq9c1Xc16B25bVit4fH4XzQc+ X-Received: by 2002:a17:906:708f:: with SMTP id b15mr3421263ejk.267.1611071847670; Tue, 19 Jan 2021 07:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611071847; cv=none; d=google.com; s=arc-20160816; b=DdIslMzdQ0WzhgM82VSk+WDV6OnFx4xCMsooxtVMft7LkoGHz4mvyJslN8C8K9sjVh Adm0wvD6lI8xuGHxk69PvgH7UjyAwXfRDxeOmWyxlSDjDNHt88HyxNTDtDVtyHfvjmLO 1vYIiRgeRJfKNlZMDaatIPjGUsmFzls8rXiaLxxbECoh9oK1S/GtTYx3vYjdGEzZENoq iOPKDewSaX2a3kfcHGF/57KAE1PfBYZ649pDGnRQMFhEvqcpzbYYwZn4il4fCbroGibp DjpyYms7Zx8u+Bks3l/fFUQ8lc90DZHKjCS8/+6uT+IueCl6lHM0QQnjQXVXSgZFtIx8 su5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=VYACcfGzZPxHrEEqOWzMUVoTOjkUNX7WxZAkqGZV6wQ=; b=XeKoqE13AlWyKMH6ZSn/nv3qfSHbPs05sEomZ3hsOzsgwA1dcAwWPQ7/XbXhQ+r46m L/ssLXXdJOMhFG9fLP6nMsVfHeUh2a7LcwIKyGEkQpvfNt++NvczGnvfrIwj9VVJn5SA ciwmyvqmp7whAs7zIbNxyzOhW0p9AUMKRIVxXjVGZw1evcDCkuQmLtHK0rStAn4YMHMa g7qHq2FQuoaeEoCDcn9I1GbpDA2EX07iR8ZZ/Nq0dbiAqW/FiB5jNfxcpE1EnCMND75V UQB2EOrEm+HylLUv2ULv0ANaSpPZaeEoS6YhTroXDJqj9/jSjKR1fVHgEI9JlFLV+j9m jtSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AHpmAeWH; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si6718329ejm.29.2021.01.19.07.56.52; Tue, 19 Jan 2021 07:57:27 -0800 (PST) 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.org header.s=k20201202 header.b=AHpmAeWH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391602AbhASPys (ORCPT + 99 others); Tue, 19 Jan 2021 10:54:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:55550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391626AbhASPyN (ORCPT ); Tue, 19 Jan 2021 10:54:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B90E20780; Tue, 19 Jan 2021 15:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611071612; bh=Iur7PMN12GFuotDbIDuqkaf5UvK7lDumrhI+4zfetYU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=AHpmAeWH1iRfEAre195nrrwKW2FWRvOUYavb2LdUrJeOVydXT2dlzWLitC8B9OTtr Hq1/usVFKSxPStEojtv1ZZ2TeWp1HlwZCMSOu7us9yjnprUH87/DdY7TMH8urRy7hv ns8gAKX9oRpRYLHt/xurKoxLbLmbxaf1AYx7BpUQSLqVkMIWe8nPLGI4A6kVNEvcDr hAmbcBI/WtffU1qZ8FCqEKEos8ahWvYDQjsgeo6oYqlaB57gxdwD7Kna/2zkszJFvQ ZWJKoDle1JMvJbU4WwD2YkxlB8tr0/PH8jIOZPpSJQ/DQNMPF16Q9Vtf5+RlB4Vgx2 DHGT/L5AmKisg== Date: Tue, 19 Jan 2021 16:53:29 +0100 (CET) From: Jiri Kosina To: Jens Axboe cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Wim Osterholt , Denis Efremov Subject: Re: [PATCH RESEND] floppy: fix open(O_ACCMODE) for ioctl-only open In-Reply-To: <9c713fa8-9da1-47b5-0d5d-92f4cd13493a@kernel.dk> Message-ID: References: <20160610230255.GA27770@djo.tudelft.nl> <20160614184308.GA6188@djo.tudelft.nl> <20160615132040.GZ14480@ZenIV.linux.org.uk> <20160615224722.GA9545@djo.tudelft.nl> <9c713fa8-9da1-47b5-0d5d-92f4cd13493a@kernel.dk> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Jul 2016, Jens Axboe wrote: > > From: Jiri Kosina > > > > Commit 09954bad4 ("floppy: refactor open() flags handling"), as a > > side-effect, causes open(/dev/fdX, O_ACCMODE) to fail. It turns out that > > this is being used setfdprm userspace for ioctl-only open(). > > > > Reintroduce back the original behavior wrt !(FMODE_READ|FMODE_WRITE) > > modes, while still keeping the original O_NDELAY bug fixed. > > > > Cc: stable@vger.kernel.org # v4.5+ > > Reported-by: Wim Osterholt > > Tested-by: Wim Osterholt > > Signed-off-by: Jiri Kosina > > Added for this series, thanks. [ CCing Denis too ] Let me revive this 4 years old thread. I've just now noticed that instead of my patch above being merged, what happened instead was commit f2791e7eadf437633f30faa51b30878cf15650be Author: Jens Axboe Date: Thu Aug 25 08:56:51 2016 -0600 Revert "floppy: refactor open() flags handling" This reverts commit 09954bad448791ef01202351d437abdd9497a804. which was plain revert of 09954bad4 (without any further explanation), which in turn reintroduced the O_NDELAY issue, and I've just been hit by it again. I am not able to find any e-mail thread that'd indicate why ultimately revert happened, instead of mergin my fix. Jens, do you have any idea? Thanks, -- Jiri Kosina SUSE Labs