Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1147186pxv; Fri, 25 Jun 2021 06:30:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv0eN0EVBKMOEtPb/IlNkCbfRUcmvcIFC5wuCioI+3UlFLJwCGx0kv970n/g0NX/Va7Umu X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr14992386edw.246.1624627809291; Fri, 25 Jun 2021 06:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624627809; cv=none; d=google.com; s=arc-20160816; b=eAJ8DB5xQHcC6BX2Q4bxmt3BaD/SdVZHsNNkihdBTypS6zhZT7zVF2Cw41wRIECFPP z7zSxi/NLX2/045kj5zTo+b/lpwoRLdNQtEjmwYP7UmiEouURZA58n9MjKzjBimVIrQG umbGMv9wZiumk5PFFWTsx2ISYQ3NOn7IRoRs/h14y2+5tK9fOy+r9l8mxctP3vXxL7lg ZRxz1uy/QWDF6es0r2QJLbLlQQk2wM8Hq+Lv35ByP9+LcPiqW5wPwX76TYLP78HQnYf3 s1KfbA1z1wlktU1C6Fqajr8YO+b5p2jDxw9/o3rXrsmV81uWpzP1pyg4pnfHCkOiOMvS Vk3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=/DD5bi9NmrIRgkeDDEXYqkngtDaUdYHbYnzmjKnJKq8=; b=ea7u08MWzP/B11ddZsr41rT0ZpcsHXA7a3GLMJ809urhmL1Tk3LjT+dt621UNnBeaU xF85VvoC+xj2sjiKb9RJDLOQVlD8ijcPO8JRCRhRlOh5RWL8QZV3i4coaXQi+BCUppFK K2T5Nr9J9xbfbdoIshrtgdswGBwz/02E5FoJ9ZMLvNi0YkQN0ivKZ6vBJPzA1M1ls/I0 b5agXCQhs4Ch/iGDhvtAkjhf4DrrgQKeLk8T95mmmWGaqrk/24EjGJyxzOB77wISe9IG ZEWZoNYCtVtakNzd3BEFu8g/zBcie0StTXwhEe/L9eCd6edzr6t22nMHFLpozt+/UPZe JNCg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si6142844ejc.177.2021.06.25.06.29.43; Fri, 25 Jun 2021 06:30:09 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbhFYNaA (ORCPT + 99 others); Fri, 25 Jun 2021 09:30:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:47810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231690AbhFYN34 (ORCPT ); Fri, 25 Jun 2021 09:29:56 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66BBC61976; Fri, 25 Jun 2021 13:27:35 +0000 (UTC) Date: Fri, 25 Jun 2021 09:27:33 -0400 From: Steven Rostedt To: Yun Zhou Cc: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, ying.xue@windriver.com, "Li, Zhiquan" Subject: Re: [PATCH] seq_buf: let seq_buf_putmem_hex support len larger than 8 Message-ID: <20210625092733.63bde998@oasis.local.home> In-Reply-To: <06010fbf-1d46-3313-1545-b75c42f19935@windriver.com> References: <20210624131646.17878-1-yun.zhou@windriver.com> <20210624105422.5c8aaf4d@oasis.local.home> <32276a16-b893-bdbb-e552-7f5ecaaec5f1@windriver.com> <20210625000854.36ed6f2d@gandalf.local.home> <06010fbf-1d46-3313-1545-b75c42f19935@windriver.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jun 2021 15:28:25 +0800 Yun Zhou wrote: > Hi Mr Steven, > > I found that you had ever wanted to enhance trace_seq_putmem_hex() to > > allow any size input(6d2289f3faa71dcc). Great minds think alike. Your > > enhancement will let the function more robust, I think it is very advisable. > > Now we only need modify two lines to solve a little flaw, and to let it > > more more robust. You are still solving two bugs with one patch, which is considered a no-no. One bug fix needs to go back to the beginning. If you want to add the other update, then it could be labeled a fix to that commit. Either way, it requires two patches. -- Steve