Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp443020imm; Wed, 3 Oct 2018 19:58:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV63s01bRZMHuhBucMRA33MYXWa9C7Eb8XhVD+jIcGiqDx2b140p9KiOVe3N17FrUeji8QfY2 X-Received: by 2002:a62:cc4:: with SMTP id 65-v6mr4577522pfm.127.1538621900442; Wed, 03 Oct 2018 19:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538621900; cv=none; d=google.com; s=arc-20160816; b=R+V2f1W/1UdjI2Nky5xPUqnferp7ZxaDgFRhYTmpINIW6N4y2rkXSfOxqSXGthTKUT VN0GFJ2PNplbbLH7HkyGoFK7QpLDI12mOQN5tbcovI/N24jADJ3Yxaeu+mazDeJQ1RvM Wnw/Sqe1NsqeUIX7K1qrocA7iizVKZzdKf676mk9HnLpSzzTR2tD1NxrnTbqTEXcrt+a gHKDXaCNv2r7o3tZKkXDWRCSulBsNd/PiVNA8vfAvm7GgWOnG2kwY2lLoyd73kduRs78 sfR5UJHjuBbUwr2xVIDWgicOBDGzOpRiwDgps205z42lkFBc0LvhUOzLnLptE7lm+K6J utxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:smtp-origin-cluster:cc:to :smtp-origin-hostname:from:smtp-origin-hostprefix; bh=WJazkUKQIH+1q2YZlmju8imxUfwapzZ+6lyPv8tKaIw=; b=vUoQKskbrWUiVP+e0jQhDmS2cDT41SNxzPUQ1HMrUHP/SI1/39cdDzFjhjJeFru8Kg IcCOV4wrtiXNyjQAwV8AmM272oFT1PZOYxsCFdFdtDEzWTI4rV852WgMxLTATTrY8f4X Z3/cjwEyPm39YRu0dbVHo4NaqA6VoNVWrogRjI7OyFoo8DCptTVphJpnfrs54jwRX1lF WFqTZeupoNpZWMjtM30eIaRO6TrWGQjrdo0U9KHLNFhGZumaXWM5NMXUa8iLyyIOMF0x a+7fYeqOgHd1xnW1QicklgvARbw0aQ1wnk2f6ZviDj0fACTqH8mF1ObRBb1f8+SOsbmn 57+Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17-v6si2927683pgi.132.2018.10.03.19.57.59; Wed, 03 Oct 2018 19:58:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727131AbeJDJtC (ORCPT + 99 others); Thu, 4 Oct 2018 05:49:02 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:54942 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbeJDJtC (ORCPT ); Thu, 4 Oct 2018 05:49:02 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w942qJtH008245 for ; Wed, 3 Oct 2018 19:57:54 -0700 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2mw7708g4a-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 03 Oct 2018 19:57:54 -0700 Received: from mx-out.facebook.com (192.168.52.123) by mail.thefacebook.com (192.168.16.13) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 3 Oct 2018 19:57:54 -0700 Received: by devbig007.ftw2.facebook.com (Postfix, from userid 572438) id 232C5760B5C; Wed, 3 Oct 2018 19:57:51 -0700 (PDT) Smtp-Origin-Hostprefix: devbig From: Alexei Starovoitov Smtp-Origin-Hostname: devbig007.ftw2.facebook.com To: "David S . Miller" CC: , , , , , Smtp-Origin-Cluster: ftw2c04 Subject: [PATCH bpf-next 4/6] trace/bpf: allow %o modifier in bpf_trace_printk Date: Wed, 3 Oct 2018 19:57:48 -0700 Message-ID: <20181004025750.498303-5-ast@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181004025750.498303-1-ast@kernel.org> References: <20181004025750.498303-1-ast@kernel.org> X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-04_01:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow %o modifier in bpf_trace_printk() helper Signed-off-by: Alexei Starovoitov --- kernel/trace/bpf_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 08fcfe440c63..b993efef1a4b 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -233,7 +233,7 @@ BPF_CALL_5(bpf_trace_printk, char *, fmt, u32, fmt_size, u64, arg1, i++; } - if (fmt[i] != 'i' && fmt[i] != 'd' && + if (fmt[i] != 'i' && fmt[i] != 'd' && fmt[i] != 'o' && fmt[i] != 'u' && fmt[i] != 'x') return -EINVAL; fmt_cnt++; -- 2.17.1