Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2748941pxb; Mon, 31 Jan 2022 03:32:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpY4NqRrAnKIWXpbPX01/zHJcefua8j6SHPHpw+x0LRbLCepVxGzzV7ybwSUQDuUJTUTlj X-Received: by 2002:a17:90a:c250:: with SMTP id d16mr23976537pjx.244.1643628760972; Mon, 31 Jan 2022 03:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643628760; cv=none; d=google.com; s=arc-20160816; b=0ytELJ6aNHcaW9C3X2vsY81VBvZJDTPY3VnVTU1+tf8vxnzD9MhjBPn5cFHTllNNYU NpzdB6z5gBDEf+EXSVhIDIOCRITpauHTyzPfn+JTACKX/gQz0lllylW1A0DjAb1kUz/G 231++ArZZoA81bMULCKDGJdwVLe9o7zfAOtocdfXcuu4uba0J5SKky5CI/mg4Z7iDTU7 G7rm/1W16m11gUiTEmxiro5ojlw4LdkWzN2D3UsA5GZ58qC3qqdDf2C7l8pTueYB+edz sAb3wxsNMkwWt0Jbx38GiF9i1yaq5ENUuXu2ok+aOY8D4jretyPjatdqrzVKtXgyEo+7 FmUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=T4a5KiY8p3lf+sYRjGTOPjI2GfTLwWhFSBlDjZQ9Nw8=; b=U/ckep5/QlYHkClysJDNzTVuNCgcrZXg8/rAToNpbFDWS57aZZnIiE7Vhm+mmMWlIu EwUFJV7EDFVK7r0jMuLmmYgMBgFBCEGKpu//nbTbV4hMM0vaymjcAk4mcHTAPQ94autO qtDQ1oVfNuJQInf99GJbOZ/QUHEW6K3nEtrZ+MeC69crSSqSmEyxkQcRUIdcsP/SajnC v2Zg7Tpx/E7Luvxm4cz9nBzDxOmmVM5LoBfBS5SGHPYLe83gc9PPWtEHOyhlJxjYu8Gd eSvuBk7uQMI8uIvZ6xtYJC8HSBrCG+6DZW8VQDBCWNNcz3tQT2iqA/zTGsHkQWEVjNuK 8Epg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BCTQcKWi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si12211554pfh.70.2022.01.31.03.32.29; Mon, 31 Jan 2022 03:32:40 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BCTQcKWi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351090AbiA1UId (ORCPT + 99 others); Fri, 28 Jan 2022 15:08:33 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:40502 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236700AbiA1UIc (ORCPT ); Fri, 28 Jan 2022 15:08:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D7E3C61DBF for ; Fri, 28 Jan 2022 20:08:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4558C340E7; Fri, 28 Jan 2022 20:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643400511; bh=XR312gwwkivjOFnJoiBOcc/U2tYDpRKzm7K0DpQ3Z0A=; h=From:To:Cc:Subject:Date:From; b=BCTQcKWigd8Rxzn5KOYKibnWXQLFBytmNn/CuqbEq4wN3u8yEf/lOsc4su1x2uyl5 QXkIbD2+6eIjcLUBL/upExq7+4zBxiQmLsV0RITBRj716wkDW4ptUi0J5MXHkrYF7r ZaSJMUfrLJeErDWRN+DUaO1kzv3u45jFL//ogfhXjnM23Ots2DWekXq3ypYGpPNkc5 flNuDz+lX7lCEPjd58L4hBNkX8i+Y+0SxnGJPiXvBDcIGGc8M0EnieXgAFo6TKFKuS kocC67YVeAa1KadNDZ7hTOHZzp81MhjY3gmOPcCfHDjgVCXX5r5JEv30hsBW/MFink NrJsaPygOwwnQ== From: Tom Zanussi To: rostedt@goodmis.org Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, Tom Zanussi Subject: [PATCH v2 0/2] tracing: Misc bugfixes Date: Fri, 28 Jan 2022 14:08:25 -0600 Message-Id: X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There were 2 patches in v1 that were flagged by the 0day robot for strncpy off-by-1 warnings: tracing: Remove size restriction on hist trigger cmd error logging tracing: Remove size restriction on synthetic event cmd error logging warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] This v2 patchset consists of just those two patches with the fix for those warnings. Tom v1 text below Hi Steve, This is an assorted bunch of bugfixes addressing a bugzilla bug, smatch warnings, and related things I found while fixing those. In particular, when looking at the bugzilla bug, https://bugzilla.kernel.org/show_bug.cgi?id=215513, I noticed that the err_log output looked truncated and looking further into it found that it was, because the hist trigger command was very long, exceeding the 256 character limit. Obviously that's too short, and the final 3 patches remove that limitation. Tom The following changes since commit ca965f23256b350ebd94b3dc1a319f28e8267f5f: tracing: Remove size restriction on tracing_log_err cmd strings (2022-01-27 15:38:28 -0600) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git ftrace/misc-bugfixes-v2 Tom Zanussi (2): tracing: Remove size restriction on hist trigger cmd error logging tracing: Remove size restriction on synthetic event cmd error logging kernel/trace/trace_events_hist.c | 30 +++++++++++++++++++++++------- kernel/trace/trace_events_synth.c | 17 ++++++++++++++--- 2 files changed, 37 insertions(+), 10 deletions(-) -- 2.17.1