Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp563711rdb; Mon, 15 Jan 2024 06:26:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpC797wIGTQTBBd0S7Dlgkc4HFCi+HYsRBNrHfcHxHod0T5+AQW6UGTINVftfzMJcxR+XG X-Received: by 2002:a17:902:d485:b0:1d4:dddc:d38d with SMTP id c5-20020a170902d48500b001d4dddcd38dmr7871920plg.57.1705328818875; Mon, 15 Jan 2024 06:26:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705328818; cv=none; d=google.com; s=arc-20160816; b=GFYSq2943K4UR7Rclc3+as9zI5QVNg9Po/6ALvPCeFV8Fk/MYGjuHgOpi+v2Wy4/Sk ZzU5ZVPbrHXY7oBiOuAO0FMAEbfdUeTv9Eh9k5k3P6k1HZSZekMCrrQ3sklgueQkjjq3 F4ROo7ZF5Ykt+oviGwgJNqsKkfiBzJWlQnhipzQhKy7asledcvfnpJObFuZAhKfhDLed q/wsF5GByBSF43AjPpnYYcCnR4BPTMQ8HJQVOaP1RoIfP11VjirR2lC0uhZc7iP5nHJA 6nsB91qgr80zLIlLgT3RMe7BwWip/TV9NIYAIPXhs3/Qru6VBkWDHJ9XapLMiHkAm5ez rtxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=c+AgqPT1yRF7nplxdLHxfTFfqV6C8yg9/yypQbcOtfU=; fh=FZjLjqnW2b9bmLkzOXUuRECSkQYyuwxLNwbamFXYM6Y=; b=k9zcFfB+b3End1KD3NtbxXiap8XfGC3hhik57+99ea7l7YhuOSBYfD1fLfmaZmBH7j BxXwaGZMgEYIPEjDuZ4bZbM2jisb6WY4+Alyqaf23BtEhVO7D/yvzWPQjTsKKIZxc8H4 kNhwSXMNpHaDx/E3DVcyosxpWAG8rD/9bLJYUZXi+dlGTQIHVQSHnfg+VXbRhnLVpD+N hmdU8VFZyG84jf/Bfv0utNCYJb3kc+iEQfg/sc9DYEvm3Tk2Wux0H6+5UdGDaF3cP5pq aRdHK6bCdB66S9Lki0OXAiDZChbSe2gHu/o2XeDU2m/cj3oxZqk9EoLrL6u2Ai49oDfC xyuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jBD40SBc; spf=pass (google.com: domain of linux-kernel+bounces-26085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d18-20020a170902aa9200b001d4e2bc88d0si8997020plr.203.2024.01.15.06.26.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 06:26:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jBD40SBc; spf=pass (google.com: domain of linux-kernel+bounces-26085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 585D7281718 for ; Mon, 15 Jan 2024 14:26:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF3B6175B2; Mon, 15 Jan 2024 14:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jBD40SBc" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95F1A175AB for ; Mon, 15 Jan 2024 14:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705328798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=c+AgqPT1yRF7nplxdLHxfTFfqV6C8yg9/yypQbcOtfU=; b=jBD40SBcxIurAasvGc/2G4Z3QIfMhiNRIpBZeKgek4TayOc67pLyLUhL5uVGf5bVkEMP4I nhttUCx8EKF/R7M11c4E+dSTcPQFiDgi2u28tOqalqX1LkC5okdmaEMW1a6hVoXfmpBy01 1IY2MihoGlE9xQLIZrULSkGsyujW0Js= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-645-XIHLj4hcNSWG5cYndluMWw-1; Mon, 15 Jan 2024 09:26:35 -0500 X-MC-Unique: XIHLj4hcNSWG5cYndluMWw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 769BC1025887; Mon, 15 Jan 2024 14:26:34 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.7]) by smtp.corp.redhat.com (Postfix) with SMTP id 007421C060B2; Mon, 15 Jan 2024 14:26:30 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 15 Jan 2024 15:25:22 +0100 (CET) Date: Mon, 15 Jan 2024 15:25:18 +0100 From: Oleg Nesterov To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Ryan Roberts , Andrew Morton , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Namhyung Kim , Ian Rogers , Adrian Hunter Subject: Re: [PATCH v1] uprobes: use pagesize-aligned virtual address when replacing pages Message-ID: <20240115142517.GB18072@redhat.com> References: <20240115100731.91007-1-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240115100731.91007-1-david@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On 01/15, David Hildenbrand wrote: > > --- a/kernel/events/uprobes.c > +++ b/kernel/events/uprobes.c > @@ -537,7 +537,7 @@ int uprobe_write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm, > } > } > > - ret = __replace_page(vma, vaddr, old_page, new_page); > + ret = __replace_page(vma, vaddr & PAGE_MASK, old_page, new_page); Acked-by: Oleg Nesterov