Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 125B5C433F5 for ; Wed, 5 Jan 2022 22:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245314AbiAEWxN (ORCPT ); Wed, 5 Jan 2022 17:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245244AbiAEWvl (ORCPT ); Wed, 5 Jan 2022 17:51:41 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C756C034005 for ; Wed, 5 Jan 2022 14:51:25 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id k15so2215429edk.13 for ; Wed, 05 Jan 2022 14:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ex7w8HcbpnD772/tbtITSyn/vheu68eRRqBswHSSKrI=; b=fSyfYTkUPYz+3jTngF7GUBGzyvhqqZNom7Kf6iML9n/fbaxlTB8pins4rMAgiEaWZy fsbLdancp+snTegRa/ALD6Oo6aSLUdUiqNs2GKMX7UmkDIEaOnGkeKfv/uqkqqRDJ3OI MkZuGFG3vnIxcPGkqIBzptIj1+pTTb3precp8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ex7w8HcbpnD772/tbtITSyn/vheu68eRRqBswHSSKrI=; b=mZ1zNEQ1aQ0EADMF3BWYBeGYHlkz0f08sl/C/5K/aWEIFVkkSVTvVj/x/fFvr+bCAs J6NS19LvXt5c2pDJQjgnf4YNt4xukvDLH4JIlzTWk4nfzLq2nIsLoWwv07QuK/zYphjz zRIUOg36sDbv2dR2YHs+XhalRbfLm+Vq6LafZmNkvQsDOOUxfj0BQVcBCgM9JhMc8Umr GACgGZ2bmjM5GRJHv1peFVLNqCuwzUBZ4uNXcb8nLKr4CEpBp3U5b7d3YHdEWAQIRBNj UbgQH7it970y6keAwit5ANHz825jfs7VS5SV/4u9mvaGywBd88XOokovUJtnwLs6VCnr Rv5Q== X-Gm-Message-State: AOAM531MGQAAZrYZGsEl4bCqTpfRnJerjNUrGejaEZP8f81OSOkJMh5J 75No8yaYqHRsOMZpInstv71VO/m/HQULbgaBFmE= X-Google-Smtp-Source: ABdhPJz3/UsTQxG+xwySs6k0aIuQLMBKxLzZ66MTfjBE5Cg1rAcdiAnv5pKKJ/b0COnOaXvrz5TSvA== X-Received: by 2002:a17:907:9086:: with SMTP id ge6mr318918ejb.332.1641423083363; Wed, 05 Jan 2022 14:51:23 -0800 (PST) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com. [209.85.221.44]) by smtp.gmail.com with ESMTPSA id ne31sm54593ejc.48.2022.01.05.14.51.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 14:51:22 -0800 (PST) Received: by mail-wr1-f44.google.com with SMTP id o3so1130312wrh.10 for ; Wed, 05 Jan 2022 14:51:21 -0800 (PST) X-Received: by 2002:a5d:6c68:: with SMTP id r8mr47342739wrz.281.1641423081626; Wed, 05 Jan 2022 14:51:21 -0800 (PST) MIME-Version: 1.0 References: <87a6ha4zsd.fsf@email.froward.int.ebiederm.org> <20211208202532.16409-2-ebiederm@xmission.com> <871r1l9ai5.fsf@email.froward.int.ebiederm.org> In-Reply-To: From: Linus Torvalds Date: Wed, 5 Jan 2022 14:51:05 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/10] exit: Add and use make_task_dead. To: Al Viro Cc: "Eric W. Biederman" , Linux Kernel Mailing List , linux-arch , Alexey Gladkov , Kyle Huey , Oleg Nesterov , Kees Cook , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexander Gordeev , Martin Schwidefsky , Chris Zankel , Max Filippov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 5, 2022 at 1:53 PM Al Viro wrote: > > On Wed, Jan 05, 2022 at 02:46:10PM -0600, Eric W. Biederman wrote: > > > > Being in assembly it did not have anything after the name do_exit so it > > hid from my regex "[^A-Za-z0-9_]do_exit[^A-Za-z0-9]". Thank you for > > finding that. > > Umm... What's wrong with '\'? Christ people, you both make it so complicated. If you want to search for 'do_exit', just do git grep -w do_exit where that '-w' does exactly that "word boundary" thing. I thought everybody knew about this, because it's such a common thing to do - checking my shell history, more than a third of my "git grep" uses use '-w', exactly because it's very convenient for identifier lookup But yes, in more complex cases where you have other parts to the pattern (ie you're not looking *just* for a single word), by all means use '\<' and/or '\>'. Linus