From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 169D8C433ED for ; Tue, 11 May 2021 07:15:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E19CD61926 for ; Tue, 11 May 2021 07:15:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbhEKHQs (ORCPT ); Tue, 11 May 2021 03:16:48 -0400 Received: from mail-vs1-f49.google.com ([209.85.217.49]:33642 "EHLO mail-vs1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbhEKHQm (ORCPT ); Tue, 11 May 2021 03:16:42 -0400 Received: by mail-vs1-f49.google.com with SMTP id x17so5398423vsc.0 for ; Tue, 11 May 2021 00:15:36 -0700 (PDT) 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=8UzqGBEnMFGPXHaRr6PfDxH2kRj2bejhyjTaWq+GqQo=; b=ry0LNwzkmTCbUDuOFyo3vsuh6y259DrrFxr9aOlgrG7oH8RiRDMcdvNNy5xNVDz2uj jGXs+HzIfgT9HZDyYQmtnbALxm9JABMOuLTGDB5dPE/VtQsqlghqqNyPnf6Fx1iRZPff wlfIqvAPvgxmTcQ+dIVaLEcifAwOviMbJt1J09Mg8cCXMGGh4QpQHReEMckdypBb/E/j MVeKaBgSRuMzuG6WvaFnSSCW20mYwrlckxNcHC8CDQSIdnLmeoDaq9CM7KYNnwkawy+2 clV/Aw8B99Jv5YFi1dq84RqOoPG6VMK9SNYzsNDx1BGynz0FSAPUqVAp1oZpZnuRjEG0 SiLw== X-Gm-Message-State: AOAM531YT+Gs7xMJFYsa3THMb3xbT0CwVxtwoSTm+nrIHXQ9+HrWnMss tHew7UnBsYo2AGBMjgrHF3re06cg4N+zmS7+ALQ= X-Google-Smtp-Source: ABdhPJxVsF1sOuRSPzrf3UBF75hf4R7rdt7jGNl25prcZyh14Bv8oTFBMR2uDPDLfIhHo1EZP7Yi9mZbpj4Gz9F3MQo= X-Received: by 2002:a67:3113:: with SMTP id x19mr17588832vsx.40.1620717335728; Tue, 11 May 2021 00:15:35 -0700 (PDT) MIME-Version: 1.0 References: <20210510165839.2692974-1-Liam.Howlett@Oracle.com> <20210510165839.2692974-9-Liam.Howlett@Oracle.com> In-Reply-To: <20210510165839.2692974-9-Liam.Howlett@Oracle.com> From: Geert Uytterhoeven Date: Tue, 11 May 2021 09:15:24 +0200 Message-ID: Subject: Re: [PATCH 08/22] arch/m68k/kernel/sys_m68k: Use vma_lookup() in sys_cacheflush() To: Liam Howlett Cc: "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Song Liu , Davidlohr Bueso , "Paul E . McKenney" , Matthew Wilcox , Laurent Dufour , David Rientjes , Axel Rasmussen , Suren Baghdasaryan , Vlastimil Babka , Rik van Riel , Peter Zijlstra , Michel Lespinasse Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 7:04 PM Liam Howlett wrote: > Use vma_lookup() to find the VMA at a specific address. As vma_lookup() > will return NULL if the address is not within any VMA, the start address > no longer needs to be validated. > > Signed-off-by: Liam R. Howlett Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75F92C433ED for ; Tue, 11 May 2021 07:15:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DC52461926 for ; Tue, 11 May 2021 07:15:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC52461926 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3C6986B006E; Tue, 11 May 2021 03:15:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3756E6B0071; Tue, 11 May 2021 03:15:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 216016B0072; Tue, 11 May 2021 03:15:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0171.hostedemail.com [216.40.44.171]) by kanga.kvack.org (Postfix) with ESMTP id 029856B006E for ; Tue, 11 May 2021 03:15:36 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id AC1188249980 for ; Tue, 11 May 2021 07:15:36 +0000 (UTC) X-FDA: 78128089872.02.3B009AF Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) by imf27.hostedemail.com (Postfix) with ESMTP id 485B98019382 for ; Tue, 11 May 2021 07:15:35 +0000 (UTC) Received: by mail-vs1-f51.google.com with SMTP id j13so9725184vsf.2 for ; Tue, 11 May 2021 00:15:36 -0700 (PDT) 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=8UzqGBEnMFGPXHaRr6PfDxH2kRj2bejhyjTaWq+GqQo=; b=sZtPc2HRRcxoMabBrr+Mzp0P2GsfPdDbrTsHI7xNGSojQSsodPSKAJ6S/46RGSzRbU eDm0GGDdza7h5rCkoPSMkBH7naiWqlfbsLVoVPOqaCtTZYv2bvK38iMdxIDeW9pWMzEq S48HYI6pTyfPdyr0D6onsEz4gjHG+7JpeXhzudITHKiYCPgcZN/XzDVY7OocoWijq/FH MiQz0/cTJmNpgu7422EPlP1fpwsKHcBUmSygIUHwOldetyfc+bIh24pmLsZ564Kveo3z NlqNXwWTljwUuLd1LH3taV9mFfPkXRAg0AHRL3WFdRWWdJbf9W0mn63mG+k7i1nvjDO5 nMJw== X-Gm-Message-State: AOAM531lQQuV4dTZrAW6Zq50tMmynv2JZg2QHF+en8DmTuDTp9YGyaUG sc2YfhPLwwZ7NtvkgF7spm/s7AkNyHs1/m5zHrg= X-Google-Smtp-Source: ABdhPJxVsF1sOuRSPzrf3UBF75hf4R7rdt7jGNl25prcZyh14Bv8oTFBMR2uDPDLfIhHo1EZP7Yi9mZbpj4Gz9F3MQo= X-Received: by 2002:a67:3113:: with SMTP id x19mr17588832vsx.40.1620717335728; Tue, 11 May 2021 00:15:35 -0700 (PDT) MIME-Version: 1.0 References: <20210510165839.2692974-1-Liam.Howlett@Oracle.com> <20210510165839.2692974-9-Liam.Howlett@Oracle.com> In-Reply-To: <20210510165839.2692974-9-Liam.Howlett@Oracle.com> From: Geert Uytterhoeven Date: Tue, 11 May 2021 09:15:24 +0200 Message-ID: Subject: Re: [PATCH 08/22] arch/m68k/kernel/sys_m68k: Use vma_lookup() in sys_cacheflush() To: Liam Howlett Cc: "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Song Liu , Davidlohr Bueso , "Paul E . McKenney" , Matthew Wilcox , Laurent Dufour , David Rientjes , Axel Rasmussen , Suren Baghdasaryan , Vlastimil Babka , Rik van Riel , Peter Zijlstra , Michel Lespinasse Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.hostedemail.com: domain of geertuytterhoeven@gmail.com designates 209.85.217.51 as permitted sender) smtp.mailfrom=geertuytterhoeven@gmail.com X-Stat-Signature: nu7b5d8ubkw4ptoufz8uym4e1shebh85 X-Rspamd-Queue-Id: 485B98019382 X-Rspamd-Server: rspam02 Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf27; identity=mailfrom; envelope-from=""; helo=mail-vs1-f51.google.com; client-ip=209.85.217.51 X-HE-DKIM-Result: none/none X-HE-Tag: 1620717335-440677 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, May 10, 2021 at 7:04 PM Liam Howlett wrote: > Use vma_lookup() to find the VMA at a specific address. As vma_lookup() > will return NULL if the address is not within any VMA, the start address > no longer needs to be validated. > > Signed-off-by: Liam R. Howlett Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds