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=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 065D7C56201 for ; Tue, 24 Nov 2020 14:53:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 96A0920757 for ; Tue, 24 Nov 2020 14:53:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="m+fHAbRX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389309AbgKXOxi (ORCPT ); Tue, 24 Nov 2020 09:53:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388166AbgKXOxh (ORCPT ); Tue, 24 Nov 2020 09:53:37 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB10C0617A6 for ; Tue, 24 Nov 2020 06:53:37 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id t21so17697627pgl.3 for ; Tue, 24 Nov 2020 06:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=woDq3Idd77JT8bUgO/7z+pbsn29k605P65KY3W0bDLw=; b=m+fHAbRXPX3B24JmOeqgROjKJU7sN2nSfF1m7Whk6xqMJmODIEqkjQr8BpUg1LGSr9 vb2UoOn5abU6oyg6XJ4sCYP4ZlBkv+4oanZYJiwkqBvQcjmvkZ2f+zxZH7AjC6vxtkrC JFJgrwAOreM8jm9kUKEBYmaNdh0IOOLsukeALtC9C940XuFN1LP1LcOJxBPOsmHnxQX5 gYFWlOHT7DhMUFvH5rTWbuTY+I6jf4i885cMsS6g/pYYFVfoysRZJiSE5lygXMlW5YpG FtiEZT9yndzfl42PutmKDMi12/ybYlsdQpGZiUXNI/qf5sHEhFKT9Hq+I0CEmfEHje8g U2ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=woDq3Idd77JT8bUgO/7z+pbsn29k605P65KY3W0bDLw=; b=VI6e3mApPhDgVN0Ngxi0tW3BT9oMN2x/H9jgSrY8D5+ated11I26VGynmVzZR1soZv Q34d1M6i19Mzl4OnwbqPy1BAKfXgRtbaiCjtAmrI07hkC00V+gX02bBgNo9MtBOt5hAM Jjokb82R6sSrJ9S620CE8d4uilESgWFJYelp3JeDy/TAvOFrr2F/Rn20Xv3tqNiBFRI/ YmFKKbfLfElb8evaMnNm3XQ8t1XJqH3GeOZHDnKosTy7dy92IOJDXMa5pvPFS8FflYWO WsuW0gtPguROlqQkDG6LiTzj9IDvS2hei2kr4UhSI+TT10aFUYYCLYa3eyqguJHUmm3A +H8w== X-Gm-Message-State: AOAM532/l2x02YU0eoVdI4MUKNS9pRDz1Cmk3VO4S/LKHo8AuzFWYAIs 3hWn3yWDjsnNuCO9jMvCsBar47d2jJg48w== X-Google-Smtp-Source: ABdhPJz11qnukyjV3uaiIZNHAHkAKJQXYCr7OCY6IwFY8VyZVKEnR6ZQx2+qnStHaLnkpCSaj7AjiA== X-Received: by 2002:a63:389:: with SMTP id 131mr4080904pgd.128.1606229617169; Tue, 24 Nov 2020 06:53:37 -0800 (PST) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id y81sm15808065pfc.25.2020.11.24.06.53.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 06:53:36 -0800 (PST) Subject: Re: [PATCH 5.10] io_uring: fix ITER_BVEC check To: Pavel Begunkov , io-uring@vger.kernel.org Cc: stable@vger.kernel.org, David Howells References: <26e5446cb6252589a7edc4c3bbe4d8a503919bd8.1606172908.git.asml.silence@gmail.com> From: Jens Axboe Message-ID: Date: Tue, 24 Nov 2020 07:53:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <26e5446cb6252589a7edc4c3bbe4d8a503919bd8.1606172908.git.asml.silence@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 11/23/20 4:20 PM, Pavel Begunkov wrote: > iov_iter::type is a bitmask that also keeps direction etc., so it > shouldn't be directly compared against ITER_*. Use proper helper. Applied (with fixes added), thanks. -- Jens Axboe