Message ID | 1508343141-31835-8-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WzaM8cc/"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yHHHY3Dgkz9sBd for <incoming@patchwork.ozlabs.org>; Thu, 19 Oct 2017 03:16:23 +1100 (AEDT) Received: from localhost ([::1]:45464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1e4r13-0005bS-8Q for incoming@patchwork.ozlabs.org; Wed, 18 Oct 2017 12:16:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1e4qxx-0003Lt-7y for qemu-devel@nongnu.org; Wed, 18 Oct 2017 12:13:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1e4qxw-000230-8g for qemu-devel@nongnu.org; Wed, 18 Oct 2017 12:13:09 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:48174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1e4qxw-00022S-2b; Wed, 18 Oct 2017 12:13:08 -0400 Received: by mail-wr0-x241.google.com with SMTP id u5so5598328wrc.5; Wed, 18 Oct 2017 09:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=j6snm7Mxl/TR6V0B/Deyl2CRYI3S4gv9UCNboBmntqo=; b=WzaM8cc/V9HHnyQaYXbzoe2GSDwI9edGUweHrDZlQ6B9COE5KHjKh5/1R23kgqwo+d S/pGkfdjVbSnr6eZTW2F4c0n2J/8hBjoVa3d2Gaq81zSefftldGqS9mnO+C4CSMd3fQc 6v7lB+WPuSBKY/pkew0Eo6PoWY0++zH5joa0zXH5Pa7LwamTnMLPfKmRc2dNwQF9EUJj JLsG3Ux2BUGA71RvO08b1HCFAd717f9bV8X3jKTRJhuNioKfoX4J4UgM0ITQGS8PnbKM BEXZoKp0FF8NX3SBuJMn2fIjvGrmi6XpgIov5ypi1Ln4Jx5MviR8tZD0XgcUmp0nv+6S 4+9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=j6snm7Mxl/TR6V0B/Deyl2CRYI3S4gv9UCNboBmntqo=; b=rpPTMFnFkox4yYDgr9XAymmQe8VE3+FF2Nsoc7bHl5FjOOuM2teYSSTuJtKld18Nqc OEwuiNmv5Xoefg9LUQhpD5GnXxRjQe7sz7/v1Viw3VR2BYpsKHM8LDJ23QNLsUPsJB9k p7o6KeLVMQV0jCoxbRpQFqbM5M72nd59kuprr44wYyaZqzDziq9BWq0/mSlzR7LumsrT zwudwlIB7ObMCIcSiB9ciDdw2ihGtxn0mSkMkUdsTJMiDw+mR4Z3l3xX+xNCoobImfPB m8v8GTD9LIGhttxMY3+EmNQN2yZViIwn1VCYjG71rMlz5jb+SH0Bqvy1dvqyXFMZ5r53 AlVA== X-Gm-Message-State: AMCzsaWWALCuYIvlxmC8K1pWs4jsdyZyVCLY4DSvPPvZyOWGVlNowdtX cek0f8Q0mnNspsqXiq22thdwt4qu X-Google-Smtp-Source: ABhQp+S9zXjEYvcNs8jqrNo5lyvDt3emTVp46yVmIg2DE7bJyI7d4Uwkz/NeUuR9OLqWwBTuYA1Plw== X-Received: by 10.223.185.105 with SMTP id b38mr7438382wrg.262.1508343186621; Wed, 18 Oct 2017 09:13:06 -0700 (PDT) Received: from 640k.lan (94-39-155-245.adsl-ull.clienti.tiscali.it. [94.39.155.245]) by smtp.gmail.com with ESMTPSA id 69sm13436794wmm.2.2017.10.18.09.13.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Oct 2017 09:13:05 -0700 (PDT) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Wed, 18 Oct 2017 18:11:59 +0200 Message-Id: <1508343141-31835-8-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1508343141-31835-1-git-send-email-pbonzini@redhat.com> References: <1508343141-31835-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PULL 07/29] memory: fix off-by-one error in memory_region_notify_one() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Maxime Coquelin <maxime.coquelin@redhat.com>, qemu-stable@nongnu.org, Peter Xu <peterx@redhat.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/29] checkpatch: refine mode selection
|
expand
|
diff --git a/memory.c b/memory.c index 5e6351a..b637c12 100644 --- a/memory.c +++ b/memory.c @@ -1892,7 +1892,7 @@ void memory_region_notify_one(IOMMUNotifier *notifier, * Skip the notification if the notification does not overlap * with registered range. */ - if (notifier->start > entry->iova + entry->addr_mask + 1 || + if (notifier->start > entry->iova + entry->addr_mask || notifier->end < entry->iova) { return; }