Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1548494rwl; Wed, 5 Apr 2023 19:59:46 -0700 (PDT) X-Google-Smtp-Source: AKy350b8/nq1IlucwcIokbsNkE60Yju2bP0U2QyLaX8YXT/KGkwOAo9ePy5Hb1RAO9iC3gJEAbPf X-Received: by 2002:a17:902:e542:b0:1a1:ee8c:eef8 with SMTP id n2-20020a170902e54200b001a1ee8ceef8mr10160330plf.2.1680749986470; Wed, 05 Apr 2023 19:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680749986; cv=none; d=google.com; s=arc-20160816; b=QaAvrkJw5YnHcmVZJBOVsGHi72kcHFi5RWy4Hhmh76KcgtF4q6woEI5sPKOdffBATi gnyHzbPvVQcGHrg7Ynzig/3KqqaQ6uptjvr2fZWmB7g1oq75Q076tCRVYIBn7pcvyxcg /M4eIwkxwa2stec9jYU+ueuK7N0rkJGW52CLXIocYQB84Xywefmz+XLZ2nXv1TD/HBh6 bOBo68Ol3raIPkvvePnnudhTZyX8oFx3lMTkisOO8T3wR4GAq1T7na2kjSVgjsXlssQC CEqfqAZRe5HjTurD4YJ8vIHt7PBV/7Bd4pGPV2rT1rz64RsHzDMb24WAxRHd2ifN2ppr jpdw== 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 :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=hhJfeFuitOeln/rho+zfeBHPlN3/ivv4bIKsaHYSkRA=; b=YbjJgz3UQYpYrSo6+jBqaW8loL8L4WkZZfnd1qIJZZWsHQJYdvg3N7MTUtCnUCpq1e Zy5d+qYhIJrHynhB3CAdxvNdgax0zER7FaJw7piS6iQp9dZPCz/nNgfMau0L6t5MRZie KK7V+SyEL4cAgv/z+9VLrH1Pf2/vvdQipEZ9OPSJ0jf8TJrJWzjXmrcN5b9VvF96K8LO t9A/tswoWfmXAMPhJTeXaii7nnYgmI5Hlp7ZA8G/ByWJkEZV75Jl750YtUWxXMJz4hlF P7dqElYNgtAHrXC68jMcv2vD1PjD0FqHVs0CpqHIXnB31zEIzgc7R5yRv/MvixIb2Sqa Jp2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sh8jz2Dh; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x16-20020a170902ec9000b001a1b238d1c0si522617plg.636.2023.04.05.19.59.30; Wed, 05 Apr 2023 19:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sh8jz2Dh; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S234707AbjDFC6p (ORCPT + 99 others); Wed, 5 Apr 2023 22:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234554AbjDFC6n (ORCPT ); Wed, 5 Apr 2023 22:58:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2285BA9; Wed, 5 Apr 2023 19:58:42 -0700 (PDT) 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 B800164174; Thu, 6 Apr 2023 02:58:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D88EC433EF; Thu, 6 Apr 2023 02:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680749921; bh=AwNKZCoYNd9/YP0f3fwLMwmGowD98qoCr8vn5oD6464=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=sh8jz2Dhf+RNZdqkp2D3by0mDvHPrh5wn5Z3yWg7pHjeZq7R3N3tBIhDQQ5P2Sv94 bqmPUw+vKrz4LIbZ8t8xF2pjN9CUeFYEp8Z3sXtmZuIqPd4pRPcFCOAJioO6bS6QKC X2v24E+ZiOI7+vHikKrwFJRGTG88wZgUFOrgdjGT36ejgGYCXp+LZ7T+/cKxirhjvO HBUGAC3/rVWNpHCNvQPHxO4ltUMT4b12OdRcIaoA4/s7XEZiodPeuoKAqi6QN/4Av+ Nf6scwmZOUKHGNwSvUmAihxgtk0aqkG62/ZCIyks/lANllGyAFFJOelhSr1DUUk/mA iA8NpGwLilr9Q== Date: Wed, 05 Apr 2023 19:58:40 -0700 From: Kees Cook To: Andy Shevchenko , Greg Kroah-Hartman CC: Kees Cook , Cezary Rojewski , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Theodore Ts'o , Jan Kara , "Rafael J. Wysocki" Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v2_0/3=5D_lib/string=5Fhelpers_et?= =?US-ASCII?Q?_al=2E=3A_Change_return_value_of_strreplace=28=29?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20230323123704.37983-1-andriy.shevchenko@linux.intel.com> <2023040523-unworthy-uncured-1eab@gregkh> Message-ID: <47D8878A-1108-4AC3-BF7F-507F90F6970A@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On April 5, 2023 7:38:40 AM PDT, Andy Shevchenko wrote: >On Wed, Apr 05, 2023 at 04:24:42PM +0200, Greg Kroah-Hartman wrote: >> On Wed, Apr 05, 2023 at 04:34:31PM +0300, Andy Shevchenko wrote: >> > On Thu, Mar 23, 2023 at 02:37:01PM +0200, Andy Shevchenko wrote: >> > > It's more convenient to have strreplace() to return the pointer to >> > > the string itself=2E This will help users to make their code bette= r=2E >> > >=20 >> > > The patch 1 kills the only user of the returned value of strreplace= (), >> > > Patch 2 converts the return value of strreplace()=2E And patch 3 sh= ows >> > > how it may be useful=2E That said, the series can be routed via fs = tree, >> > > with or without the last patch=2E >> >=20 >> > Since there are no comments, who can apply this (patches 1 and 2)? >> > Greg, are you fine with the kobject change? >>=20 >> Sure, want me to take them all through my driver-core tree? > >Fine by me! Dunno about others=2E Kees? Yeah, that's cool by me=2E :) --=20 Kees Cook