Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp282431ybe; Mon, 2 Sep 2019 01:17:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzhHdEKe9YSIjiHZ8hEw9xTExWSmgHFdHX5o8kt2YhkrvIJki5RZHN75x19O1MQmTYniWF X-Received: by 2002:a17:902:9a46:: with SMTP id x6mr5105039plv.162.1567412226998; Mon, 02 Sep 2019 01:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567412226; cv=none; d=google.com; s=arc-20160816; b=nVS3vLu07AVkIi9+AaLm8gOTcYyPCjh2rVCWZo8qZCBfp3/raft+iTTZdt83kKMW16 irQC5/zqruYu5mG2uMWQRCYoUMr+Ijr5vNm/Ofodkm47ch1vM+CvFZ9bKRPmXdzSMroW 7FkrsyTzeVxwq4CmXCShd+pu1sGaCdkXebrRsvp5GPRx7SRZR015yOqZCg9mSbIMD5xh 7yF1bSNuUBdSIwvr59ZOc690KXAebFj96OjuOPgKp9Rs8fN6Qtr2iO+ZFO5WvEnJUQzA vWZLeYhAvdiuhSdxAY8pS+eOujbWVCSt5g6PbONRjRfzWHETrLH/Y5uT+/Vo1PDq/O2M anug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FMzxmnkxNJ25Ubbbpj3fmyVSXQrVBstVeDl3+hULd4I=; b=R9S0vKjn//dQVUqhLXIElWDLFtMBx8kLI030clagdQTssl/hqxUn0sEbBuGY+21jf0 t8FscTWcoIhmIivm5KanR/PJfu+Vb/6q7P5QfW6GUFLFbXRJGpjqhNPP/Z+JRGvCq9x+ KnfFAyjSaLyWKviO5/fTyrlKVYR7FdIqOTI/vyeVw6QIBso/ByPFjVHBEnC7PQcHu6sh OdsCp8l8BBTBW+HDLak5ODP5k8GPIKA9disNw83dlVYXHfU0d4P+JqxgyxDtYjB4TmE9 +KqAsAhsLaNWFREfFTYK+YGqC5ACUbxHJ3CjdF+oi0+ZF9r0bu+prAoP20SRGolOKzfh Zdlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ALTtMzFn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si11113126pgq.282.2019.09.02.01.16.52; Mon, 02 Sep 2019 01:17:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ALTtMzFn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729602AbfIBGsT (ORCPT + 99 others); Mon, 2 Sep 2019 02:48:19 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36315 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729328AbfIBGsS (ORCPT ); Mon, 2 Sep 2019 02:48:18 -0400 Received: by mail-ed1-f68.google.com with SMTP id g24so14647877edu.3; Sun, 01 Sep 2019 23:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FMzxmnkxNJ25Ubbbpj3fmyVSXQrVBstVeDl3+hULd4I=; b=ALTtMzFn01urPW1oTRJx8B8KaMUkx5MsYciorahuYhsXjqCHHMYHNTyPmOlvxbP8H/ 7y34YPgWOWXKI6kZgpy/CbydTQFA6W6oEtPvXdi670yMBN8T59o9xYDh4yrC/jx5wmsq SS20Qct5zUK4wP0LTYZohQqqcZOSgg/aD2qkVkSvaPVAe5s7otwTtVWomLlmjIyLxwL7 ia9wKVWkXkd7b0IWIB3MUucyEN2xttcLijQZsmMl9XOGA9dhKvo2oZIclli1IUkvJAMA GFWhSM3pluYyrWl1n2qUWnt10pZ0F+2uQIrQzM/mZpYz5HkbWfCdU2pKKNajItqKcnhK iUmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FMzxmnkxNJ25Ubbbpj3fmyVSXQrVBstVeDl3+hULd4I=; b=rLGjmciprRP9Z3+NlnL6U/iZXJnAGJfJ7qywqV78cCl1cJrszpL1Uw9WqAEUzxeipT 8+m1d/Pb/d6WBLlAymY2Toy8PC8b/eCzYgZ7DWP4BBWlaJPJb+PaArAlt27KPBDM55k2 9QGvXjXcLkcEz0tQydpanaNAFlM4LREvkbgfkDvMtooRnf7rNNphcd+wfp7AA/kSZdwh x2c5iKjoHRoM2xM9zWZxDH6saUdhp3VVr6a1XYXVcPkveuxoT6BmMWrHS+YrEIop2scl s8hH/9QARklWQyqkrw85STViyxPiu7tXhVuep17MpXRWQxTL8zPZzpudtE5V6bzt0WZ6 4eLA== X-Gm-Message-State: APjAAAW3imAw+H8RckK+TAoIo8iqrn2OOoesLaRoCerDXFYeUBAJ8vbm NB/4+YXkn+oPoB/4Eykk/2AvTaiKSMHIVLJoNvg= X-Received: by 2002:a17:906:4890:: with SMTP id v16mr23423271ejq.296.1567406897106; Sun, 01 Sep 2019 23:48:17 -0700 (PDT) MIME-Version: 1.0 References: <20190729151346.9280-1-hslester96@gmail.com> <201907292117.DA40CA7D@keescook> <201908291652.46E2D65@keescook> In-Reply-To: <201908291652.46E2D65@keescook> From: Chuhong Yuan Date: Mon, 2 Sep 2019 14:48:05 +0800 Message-ID: Subject: Re: [PATCH 01/12] rdmacg: Replace strncmp with str_has_prefix To: Kees Cook Cc: Tejun Heo , Li Zefan , Johannes Weiner , cgroups@vger.kernel.org, LKML , Joe Perches , Laura Abbott , Michael Ellerman , Steven Rostedt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 7:52 AM Kees Cook wrote: > > On Tue, Jul 30, 2019 at 02:39:40PM +0800, Chuhong Yuan wrote: > > I think with the help of Coccinelle script, all strncmp(str, const, len) > > can be replaced and these problems will be eliminated. :) > > Hi! Just pinging this thread again. Any progress on this conversion? > I didn't work further on this conversion since it seems that developers are not very interested in this problem (only half of my sent patches have been responded till now) and I am working on other projects recently. If the Coccinelle script is needed, I can try to implement it next week. Regards, Chuhong > Thanks! > > -- > Kees Cook