Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1208122ybh; Sat, 14 Mar 2020 21:03:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vugooCxBJj/YX+CC7OYq4+93E4DqYweV+bwUOQoFm6cvdoag67G+5dgyk8fFEW5Nn/9QMFX X-Received: by 2002:a9d:4b98:: with SMTP id k24mr16857145otf.26.1584244996166; Sat, 14 Mar 2020 21:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584244996; cv=none; d=google.com; s=arc-20160816; b=md3bCtqjqpoVAiaHA2Bk5UvzwVp0J6wHqi18FN1J3USilMIqArOZHphsxM6PnSds5k TgIq0ey+xiTz2NNw7HGgv6i+rMd8XIJi5oFIBI98dknf6wVgMO2RBKEhxGQIFpaVLMgS NJerTrzzTRk+hj34/sM0rn1QrWgAulR5EzBWgt4b2GGY7XQb3ETVdbGcAF8ZzrGu0QvI BTA1sh2zU5Oa3IZ2/HEZOGaYBoOnSWRppzeXm4dMaVznRI3aR869rdMOSioZkmYr7x3W QJzuTmqcvVH5hPJQS6EqG5On5lW8rtw5MWV7Sgt8Mn5F6ewadQ2ks98C02YoeJRfPtrt tx6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=X1ZyXJoqgShQqehkqNwPppUVvdc9lBwRF5ksfnWy3qM=; b=G/vmCZIz+OlxezXFymbElR/465iVDEGX5GurpEdNE5LVXigTYXyl+f7sIQ+PWfAHAH L7FWzwDL56qCbzugJLI/dCPR4lZdF86l4d+/yEIyqTXzw2JfrqnF4lMIvBEOo0yiaCRa vaDelN7KtvHXaU09fAd9oBaypFn0gj13JXcHAnA1SD2EzbqrY0T8x0AcBGFXzrunFJMH sujyZQMXr74qWcKzvWjzOt2NE4/tiIkpXHdVNnhDn3nX6A96w/orUofcRGJogfSIbWEP ellqpuSauz6zoTVFAlolTSEgM6coZZBnXB2Z8KKitiy5+5Envx9D66NOMa+Yj+5JuQsP kvHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w33si7177575otb.48.2020.03.14.21.03.04; Sat, 14 Mar 2020 21:03:16 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbgCOECr (ORCPT + 99 others); Sun, 15 Mar 2020 00:02:47 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:35276 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgCOECr (ORCPT ); Sun, 15 Mar 2020 00:02:47 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C0CDA15B7526B; Sat, 14 Mar 2020 21:02:46 -0700 (PDT) Date: Sat, 14 Mar 2020 21:02:46 -0700 (PDT) Message-Id: <20200314.210246.1281276055973553805.davem@davemloft.net> To: bmeneg@redhat.com Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, GLin@suse.com, kuba@kernel.org, ast@kernel.org Subject: Re: [PATCH v2] net/bpfilter: fix dprintf usage for /dev/kmsg From: David Miller In-Reply-To: <20200312230820.2132069-1-bmeneg@redhat.com> References: <20200312230820.2132069-1-bmeneg@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 14 Mar 2020 21:02:47 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bruno Meneguele Date: Thu, 12 Mar 2020 20:08:20 -0300 > The bpfilter UMH code was recently changed to log its informative messages to > /dev/kmsg, however this interface doesn't support SEEK_CUR yet, used by > dprintf(). As result dprintf() returns -EINVAL and doesn't log anything. > > However there already had some discussions about supporting SEEK_CUR into > /dev/kmsg interface in the past it wasn't concluded. Since the only user of > that from userspace perspective inside the kernel is the bpfilter UMH > (userspace) module it's better to correct it here instead waiting a conclusion > on the interface. > > Fixes: 36c4357c63f3 ("net: bpfilter: print umh messages to /dev/kmsg") > Signed-off-by: Bruno Meneguele Applied, thank you.