Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1166215rdb; Fri, 22 Dec 2023 18:04:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtXDT+aKFqoDzEJizM/brCBSSNh3M0MqgTt101WNDlphBooiCLTro99KU6y6sqaOMuwKyz X-Received: by 2002:a05:6871:5228:b0:1fa:dac9:1cd2 with SMTP id ht40-20020a056871522800b001fadac91cd2mr2521970oac.27.1703297054214; Fri, 22 Dec 2023 18:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703297054; cv=none; d=google.com; s=arc-20160816; b=orIBzbnZI6HcxNsofx9MAizghes64PR0aM2cqMMA+8d+Zntt0q7pfCbTE4TulqX/mU E7khbDWDrTvWwh4JcYp/AwUIxDeVdFcWtjo7GpcRXMxhmfAy6ZGKXgtOeX2rb1v0mHGj IXtPdE52RN+HrEmadSwBnZJbhkPupo+sP8TRbloe+iLXIsh5Jr/mIyLXLFt/Dx3v+qZn dzeiI2KMXWc/I9A0hkJj+wRvnNV+plS0ZZW0l7cCDhtB1OcLTVLPvFtSbQI78j0V4LH5 dyFwbqEzOn4s3dRQ3qME15MH7Q8KNX1O1hkN8g83PCRJMxBRC/Ndv9AWkYOZD8yqSzOU 0fBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xohLWD0UNw7E4CxloMtBQln7aiOr7P7dbQQwHRMmxi8=; fh=pC62+Xzu9rWxP3EwkFQHy3M37dHcdVo9RRC56IjE3s4=; b=kYQYkfzY+Sj9pZ+gjwEjn+y5GJMdP98yvlqCAwAgjqebCXeOYbdmk4ZdtzD9HigFZH ZppLNh/m4oVFW+U8yu8x723VRyXpQ2I/D5jG4Jx+4DqUyNcICkcWkrNzh6AYiMEfm7jq Krp1W5WdiA6sMwq8n7kR2Z2SlSrP6eINaUnZdTolzf20YCY0W2tY0D3rFdNzdqyAH6gr VKGCRw3ci7tpAqMjXlYX9KXLkuS+p5CXzSHpbFAizC8pU+j6qgpaSne7JW4shShczf4F PFeI6spH/ISetkkJ1gfiP0Y1rmIPHsbFJrOwZKxigDs8LF/+FynvJlLk+tF0m49ZhtQ9 EDPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=EDm945XR; spf=pass (google.com: domain of linux-kernel+bounces-10182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g11-20020a056a00078b00b006d830a53029si4083665pfu.163.2023.12.22.18.04.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 18:04:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=EDm945XR; spf=pass (google.com: domain of linux-kernel+bounces-10182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DD6412872A2 for ; Sat, 23 Dec 2023 01:57:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2844B2C1A6; Sat, 23 Dec 2023 01:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=semihalf.com header.i=@semihalf.com header.b="EDm945XR" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0D6728DAB for ; Sat, 23 Dec 2023 01:52:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=semihalf.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=semihalf.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5532b45c286so2621170a12.0 for ; Fri, 22 Dec 2023 17:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1703296346; x=1703901146; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xohLWD0UNw7E4CxloMtBQln7aiOr7P7dbQQwHRMmxi8=; b=EDm945XRmNr/HPVgFV3Sj7sIYTtzGZI2mSOz1z05HoVgMF7Q+PWUQhghPc/FsjMiWq rZ39EEUApZE7aHBiLad1pMtw5HtGd1w0TB/hKznlYgdjjTX/Bou/Kdm5goPyIjOpqHrw OulcXELxcQJWyOF3oNij+I7brx9zBQhpCazmwsGprT8Ddk4LsLakscaLHi/6H1GSNFpO 7vu/jD9jjNZyWhMLYM60p1iA1nVVdyNi/vS8/yX1BiFXhGKxewKarGph88REPHGgRGdq R5lY/0I7yN1FYshqxtXR/o6TTQty2SKJYZdCB6xItWtsqp1VbOTe6S1nLCqtZpJt71pl G0Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703296346; x=1703901146; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xohLWD0UNw7E4CxloMtBQln7aiOr7P7dbQQwHRMmxi8=; b=PYnpn7e+4ah5rH7RPAiODn7G9VGEqwncGVBFHSlexSk2873/LUAttHHJgB4y7bo02T CX10mEGUXycwrCZbtp5Xjcat1kL3OdCzGSakQsuYCqKSHdQ8QptTrQaCJ+Sw5HkUxux5 zhSXCZYkv5JsRyrtC0P1JqihB4xtAM0wQtnl6QhQaQtlILEjmJ7S+IWBeeYgyKmqfThY 1ubnEmg6nOexNw6Uo81gbpgAfnYIkaZVbETuvNqSukBgX1Ry9+iN1frvRPxSAT06t97A qslxcOVo82fRfCTQsAVYMVnxzd/ltJ3MdI+8gwlrko3ldS9ezKMYfKKB/Hw7gUZQO+Kd qy+A== X-Gm-Message-State: AOJu0YzdQeYZecBNbIfZ5BA24VGE9QguLSkVxU9DQfuvpd8f05abRfNq qjG2Y9paWDuwjHsVxrdzhf+fYS7VLa8E X-Received: by 2002:a50:e719:0:b0:553:a3ec:3be1 with SMTP id a25-20020a50e719000000b00553a3ec3be1mr551571edn.163.1703296346266; Fri, 22 Dec 2023 17:52:26 -0800 (PST) Received: from ukaszb-l.semihalf.net (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id h2-20020a0564020e8200b005532a337d51sm3288494eda.44.2023.12.22.17.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:52:26 -0800 (PST) From: =?UTF-8?q?=C5=81ukasz=20Bartosik?= To: Jason Baron , Jim Cromie , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , Simon Ser , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v3 22/22] dyndbg: id the bad word in parse-flags err msg Date: Sat, 23 Dec 2023 02:51:31 +0100 Message-ID: <20231223015131.2836090-23-lb@semihalf.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231223015131.2836090-1-lb@semihalf.com> References: <20231223015131.2836090-1-lb@semihalf.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jim Cromie If ddebug_parse_flags() rejects user input, identify that input value in the error message. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 4718e8faa719..d834581c785b 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -936,7 +936,7 @@ static int ddebug_exec_query(char *query_string, const char *modname) /* check flags 1st (last arg) so query is pairs of spec,val */ if (ddebug_parse_flags(words[nwords-1], &modifiers)) { - pr_err("flags parse failed\n"); + pr_err("flags parse failed on word-%d: %s\n", nwords-1, words[nwords-1]); goto err; } -- 2.43.0.472.g3155946c3a-goog