Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp975759ybh; Mon, 13 Jul 2020 06:18:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmeZRUR81Ja95N2by76Uchg+LsnCeVDPzQRUKPGoBGbtlSUUeH2K2crSh7qxJATQGj9TMY X-Received: by 2002:a17:906:f98e:: with SMTP id li14mr73232635ejb.174.1594646335814; Mon, 13 Jul 2020 06:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594646335; cv=none; d=google.com; s=arc-20160816; b=cfnuVLjHuVJG6WkKP/qvIAh0+Ta7lAmESZ6NvWD6cS+uovT+UT+ByJxjP+60bPXAJ1 xbsEM0Ob3U+6KlCf1pskASkF2D2/oeCl8chzc5Xx4fQePbfCC6tAcppqNU8CCveEpl/t kSkSGuWnTOLq8n1qdgMkcUVGxYUHLT/dNQFU+VJgR+Aoa1mfsVmbgN2gwWeFSqDHKe1j VruKYSdwIRsFfX2WlLi0Qd+osTVialC2aRyztJhSvOjZ2gIeWlVu2F8HxAyLMWhgnm+D UZCaYNLEpgLeGYLy+nyxeHMq3r7w5yb4SqdsQGYtiQsUyLQZrODCsujFGtDMGUuK86wQ awAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ea2osoQwX1ejef3BLpPHoBzJxBD//aiNwIZhSlZpIl4=; b=gyqNuzcuSZvC22l7WB7v2HzYg2l4q81ElWPbNGrH7VjH3OBBKF7leXwTvDZe9lUNtj wq6QpLUSQzG1I+MqcYNHUV7VS4BdWpFjN8qnW2/CZqjgKdU9FOjA3HU9pZ4vT5o5BRGo MGZxNCrlvjA8t8sbiyU1YJg10+GLfcbKyXH7nF/oxFBDWMsN0UC1Bky3Qvg8dZV8jOCA 5Pm2NSf9w113wxylZ8vji2rY/QRcth5/RT1hcoKERDNvTX9kgNLCl8q6g0N7PE3Q7oVR 4esYlv/mO5lwR8U8/VyfTqif6VT5R5x8CZpurCik3ufxY/2FACFXvX3jugCefdlX+rj2 xZpw== 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 f1si8717492eje.610.2020.07.13.06.18.32; Mon, 13 Jul 2020 06:18:55 -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 S1729756AbgGMNPL (ORCPT + 99 others); Mon, 13 Jul 2020 09:15:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:53270 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729523AbgGMNPL (ORCPT ); Mon, 13 Jul 2020 09:15:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F3B45B58E; Mon, 13 Jul 2020 13:15:11 +0000 (UTC) Date: Mon, 13 Jul 2020 15:15:09 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: Bruno Meneguele , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, Jason@zx2c4.com Subject: Re: [PATCH v2] doc:kmsg: explictly state the return value in case of SEEK_CUR Message-ID: <20200713131509.GC20226@alley> References: <20200710174423.10480-1-bmeneg@redhat.com> <20200713022558.GC491026@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713022558.GC491026@jagdpanzerIV.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2020-07-13 11:25:58, Sergey Senozhatsky wrote: > On (20/07/10 14:44), Bruno Meneguele wrote: > > The commit 625d3449788f ("Revert "kernel/printk: add kmsg SEEK_CUR > > handling"") reverted a change done to the return value in case a SEEK_CUR > > operation was performed for kmsg buffer based on the fact that different > > userspace apps were handling the new return value (-ESPIPE) in different > > ways, breaking them. > > > > At the same time -ESPIPE was the wrong decision because kmsg /does support/ > > seek() but doesn't follow the "normal" behavior userspace is used to. > > Because of that and also considering the time -EINVAL has been used, it was > > decided to keep this way to avoid more userspace breakage. > > > > This patch adds an official statement to the kmsg documentation pointing to > > the current return value for SEEK_CUR, -EINVAL, thus userspace libraries > > and apps can refer to it for a definitive guide on what to expect. > > > > Signed-off-by: Bruno Meneguele > > Looks good to me, > Reviewed-by: Sergey Senozhatsky The patch is committed in printk/linux.git, branch for-5.9. Thanks for v2. Best Regards, Petr