Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1018280ybh; Thu, 12 Mar 2020 15:35:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuH7w+FoGtfBBDbT/cROCttg2VNCNxMIkFhdLgXx1A4SMCr+MetpxPxpxFA+hXZ3EihEVsI X-Received: by 2002:a9d:2215:: with SMTP id o21mr8102092ota.113.1584052539472; Thu, 12 Mar 2020 15:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584052539; cv=none; d=google.com; s=arc-20160816; b=sB4zu5q6oKiT9GB6z973yMrTyrnFJZT7k85hl9pb/W1BY1ylObI+IypXo5SFBqA/rl ZiP33wWquMEC/lvhLSVu8bZRzORymKJEyVY7A5P44rsWhdfZInWQ+cxAxqxacz9N9fb+ pnywPkVEnU0R6yK365zfTmDqJfLaoqFnjz8YMQpYCL9xU+lfBGaNTVIEjke3+1rhVWum vAcaMI8UyurExOzgWCUBclKM4PEkqqm3ZZ2ocZSonNB9DL7Biv6tHKvZGVYUDh6DsUly mVID/QHh8CwDjWKNftVT1FQs6reeLGfBTUXZzEPvX5rhRraH9VATOfkMKm6QviYPBIFQ T6vQ== 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=aRrbOOOBhCu9+35d6cA0T4BbUPWOV4wlrXnD11vsW6A=; b=ImeNVSigKdW2PcRy289E2dg4V5q6ujFOdtrAiTMMKYuLzfSXTiU4TSYLRo4wkDmlwt QIN4CUB39NRyvp2CeioMk8nKZdovLR40HAnkC+h9CqBg3Jniptf8LcPRifk4BcUniMk3 ycRSGn24xNiCw4ZUM5f7LyVmsyEpz3ffzxAdK50hFCmmYjlZiYS6hG7VaNI9bAaycfMy tW/4Pk+Md+18sI9+PauLSJMGFDkBkXxVZdLb8fkt96hOEDJYZG17JSdsnBej/BvoLVqs xKjTIhOoLpwh5D6O9Ufvl+fYfQncaEton3uCVuF7JMMCv/dPwIQL608Lvuvcif2asINO jaNw== 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 k6si3560220otn.172.2020.03.12.15.35.27; Thu, 12 Mar 2020 15:35:39 -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 S1726705AbgCLWe5 (ORCPT + 99 others); Thu, 12 Mar 2020 18:34:57 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:35912 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgCLWe5 (ORCPT ); Thu, 12 Mar 2020 18:34:57 -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 D469F15841E9A; Thu, 12 Mar 2020 15:34:56 -0700 (PDT) Date: Thu, 12 Mar 2020 15:34:56 -0700 (PDT) Message-Id: <20200312.153456.472585037753603767.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] net/bpfilter: fix dprintf usage for logging into /dev/kmsg From: David Miller In-Reply-To: <20200312201240.1960367-1-bmeneg@redhat.com> References: <20200312201240.1960367-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]); Thu, 12 Mar 2020 15:34:57 -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 17:12:40 -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. > > Although there already had some discussions about supporting SEEK_CUR into > /dev/kmsg in the past, it wasn't concluded. Considering the only > user of that interface from userspace perspective inside the kernel is the > bpfilter UMH (userspace) module it's better to correct it here instead of > waiting a conclusion on the interface changes. > > Signed-off-by: Bruno Meneguele Please repost this with a proper Fixes: tag. Thank you.