From patchwork Sat Apr 22 10:03:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 1772246 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=t-8ch.de header.i=@t-8ch.de header.a=rsa-sha256 header.s=mail header.b=azqNgrWT; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q3RnH1cfKz23s0 for ; Sat, 22 Apr 2023 20:04:01 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqA5o-0003lB-TU; Sat, 22 Apr 2023 06:03:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqA5l-0003hh-DI for qemu-devel@nongnu.org; Sat, 22 Apr 2023 06:03:41 -0400 Received: from todd.t-8ch.de ([159.69.126.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqA5i-0000ev-6W for qemu-devel@nongnu.org; Sat, 22 Apr 2023 06:03:40 -0400 From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1682157813; bh=DtV9DcukIMSnEFBWQBePVNYBJufLt1ovfV5qTUzfrEM=; h=From:To:Cc:Subject:Date:From; b=azqNgrWTIjBPKB4Hb/wFK15vmRR/9datiSloV8KNXA1NjCXu0MB3ErMpm+WgeXdT5 yt7Z//Rco3Pnn8143heQ/PVt7HLnVPWxpumSFtQRErfHbnPHwjecgbEr0ag+TyJGuO a1C9kWFimueBeMX4hUHOabe5bTw8zAB+/XXppErg= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , "Laurent Vivier" Subject: [PATCH v2 0/2] linux-user: Fix mincore() with PROT_NONE Date: Sat, 22 Apr 2023 12:03:12 +0200 Message-Id: <20230422100314.1650-1-thomas@t-8ch.de> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Received-SPF: pass client-ip=159.69.126.157; envelope-from=thomas@t-8ch.de; helo=todd.t-8ch.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The kernel does not require PROT_READ for addresses passed to mincore. v1: https://lore.kernel.org/qemu-devel/20230416195103.607948-1-thomas@t-8ch.de/ v1 -> v2: * Introduce symbolic flag VERIFY_NONE instead of hardcoding "0" Thomas Weißschuh (2): linux-user: Add new flag VERIFY_NONE linux-user: Don't require PROT_READ for mincore linux-user/qemu.h | 1 + linux-user/syscall.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) base-commit: 1cc6e1a20144c0ae360cbeb0e035fdee1bd80609 Reviewed-by: Philippe Mathieu-Daudé