Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp876258pxf; Wed, 7 Apr 2021 13:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztPb3hdstTLIqzLEWWFr2bUlVzajxE5l5Nm/wJkTSPXQ7uigYQuGeVbTAFxtTjMD9NJNMG X-Received: by 2002:a17:906:2dda:: with SMTP id h26mr5896940eji.163.1617828933782; Wed, 07 Apr 2021 13:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828933; cv=none; d=google.com; s=arc-20160816; b=GaZg+CfnAMJYH9rPURXOQg3IFjjkdROTiuOBUuTCUEpbUFTFzhJKATxhPdArrp1x5j ptwWzRfC8lNcJ9B3/Yrqe10sGY+3H2azuyC12BQBd7VHQrsWpQIzGUMX/WykpQAh4CDk YCm9+kaV+I0dK0Z9AVPRACeBW3v64SsHWskEA9TZqrWRYhB/EkC8CTWvlw9DltJLAl4v ew4ITok4oFUOvFi6TAjl4AgIrcJNok2CAt+X2WUWq5WnDJL/3HNDDr7/vAKw7lbioZMh msWl5P/iQd4qXhXAJb+xMUXISqZDUNi5ZQ62yGJp+GKYp/n0NbMocG1Cyom+Fn0oTywp Fr8A== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VqbVAAfX4V5u9uV4mD3+a0N36MP2gzxJzdG97T1Vp+I=; b=p+CcmSdyugbPUWOIk+aeXNtpXX14dDHBINZU3iSiR/21XFUWct3Drt1c/9+BLPnDM0 dJqTLxdIeoomKBiaINLPZoyHhAC3HSEFVi4GXRAbbV/u0B2cnBozMTjmsy3L7ZgKZLnx O/juB+prM0XEAOkpESY034sQMCTunDC5O+/dkP6wBRuQT+xMe4ZqBjpq9kMrV7A3t0RM LPpsfSGx36yQGE91WnNMZ4E3P4VG6+1aGseJn8JbN3mwbzhcf38dy4i5WuWO129C2IlE b35HJJudDjeV0BZIKQDyyMIiRRh8i/cV6ReWIwdxDz/QBTKVKjwhau374066IuFsnTM/ c4MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ckP6pwJ+; 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 z20si199704edl.294.2021.04.07.13.55.10; Wed, 07 Apr 2021 13:55: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ckP6pwJ+; 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 S245723AbhDGL0F (ORCPT + 99 others); Wed, 7 Apr 2021 07:26:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:38018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245698AbhDGL0E (ORCPT ); Wed, 7 Apr 2021 07:26:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D30DE6102A; Wed, 7 Apr 2021 11:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617794753; bh=fp9e7C8temPHioHnfMeuShTqKsHUij0RHUo6TqZrCNs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ckP6pwJ+dw5GZcDOONZJTO3eldsrYzYtzmpJWlUFJYYiPkWVV5P3gltO1FyyMr4Ha mCUF4kKyPhoRYLKfhzNwA3T4TFSKmJK5IWx13/OcXybWG1/pREvOYr1xoQRsktUZml z4wlxd5MfDC+nFo3f5vOdQX6k19Q5W0yZtECoV/VmdyT21cBR26bWkUU83PsQhr5FX newpyk6G3e39jleTDs2NzyOwRPtiJ9MjJP/kQewANJxZWkhHnRdJspyDoVHVR2TYBS zvAsV9tWufIh0ikwGEl1u6yN0VZO7pqcIOgICoEFYr67fHhGIBGe3gYtDgpGXGQwZy JhbbphEYNBDUw== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lU6Jd-0000Sv-Dv; Wed, 07 Apr 2021 13:25:45 +0200 Date: Wed, 7 Apr 2021 13:25:45 +0200 From: Johan Hovold To: Anthony Mallet Cc: Greg Kroah-Hartman , Oliver Neukum , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/3] Revert "USB: cdc-acm: fix rounding error in TIOCSSERIAL" Message-ID: References: <20210407102845.32720-1-johan@kernel.org> <20210407102845.32720-2-johan@kernel.org> <24685.37311.759816.776098@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24685.37311.759816.776098@gargle.gargle.HOWL> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 01:04:31PM +0200, Anthony Mallet wrote: > On Wednesday 7 Apr 2021, at 12:28, Johan Hovold wrote: > > With HZ=250, the default 0.5 second value of close_delay is converted to > > 125 jiffies when set and is converted back to 50 centiseconds by > > TIOCGSERIAL as expected (not 12 cs as was claimed). > > It was "12" (instead of 50) because the conversion gor TIOCGSERIAL was > initially broken, and that was fixed in the previous commit > 633e2b2ded739a34bd0fb1d8b5b871f7e489ea29 Right, so this patch is still just broken. The missing jiffies conversion had already been added. > > For completeness: With different default values for these parameters or > > with a HZ value not divisible by two, the lack of rounding when setting > > the default values in tty_port_init() could result in an -EPERM being > > returned, but this is hardly something we need to worry about. > > The -EPERM is harmful when a regular user wants to update other > members of serial_struct without changing the close delays, > e.g. ASYNC_LOW_LATENCY, which is granted to regular users. You're missing the point; -EPERM will *not* be returned -- and this patch was never needed. Johan