From patchwork Thu May 9 10:01:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 13659612 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57D91C10F1A for ; Thu, 9 May 2024 10:02:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D1D0E6B0088; Thu, 9 May 2024 06:02:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CCD516B008C; Thu, 9 May 2024 06:02:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B959B6B0092; Thu, 9 May 2024 06:02:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 9A0C46B0088 for ; Thu, 9 May 2024 06:02:11 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 3AFB441124 for ; Thu, 9 May 2024 10:02:11 +0000 (UTC) X-FDA: 82098416862.04.BDF86F5 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by imf05.hostedemail.com (Postfix) with ESMTP id 0AF94100014 for ; Thu, 9 May 2024 10:02:08 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=X61WZRV0; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=moWPaWSz; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=0fc2yEPa; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=MKKTvpef; spf=pass (imf05.hostedemail.com: domain of osalvador@suse.de designates 195.135.223.130 as permitted sender) smtp.mailfrom=osalvador@suse.de; dmarc=pass (policy=none) header.from=suse.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715248929; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=q4ITZ+sf/JwnbGDnpuG6vOZrXVPF0TDChnwNG2SVvhU=; b=n2ZSWumQ+k8+IpQ81fAKNU6SMuraMWDqJnqJa+j7QFVc9ZE9PKkKZYhLR+Evekpix/EqZQ XfgH2ra1LKArpc4MydK+O4CPtXqWnCaNYKUk7oQkHl04BTnZyP3EpkCO4AHEbif3VwF+d4 pNi6LJ0vmI6JUOKHrYvvCSpJs7wZzHk= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=X61WZRV0; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=moWPaWSz; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=0fc2yEPa; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=MKKTvpef; spf=pass (imf05.hostedemail.com: domain of osalvador@suse.de designates 195.135.223.130 as permitted sender) smtp.mailfrom=osalvador@suse.de; dmarc=pass (policy=none) header.from=suse.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715248929; a=rsa-sha256; cv=none; b=h7OlvEUJZiKRZDmjOGRCrQs/WxptWkfC+2koT9y43jQReGinN2HH9wWcdmSs3yCjJzRb0L TJjPcABRQpaMGqlT3lwUbO4aSopo4lSk1dfjYvwLRcG2lgbcrV8U+nA10U+jcl/0Yqdmwy FPVt7ILUTZSsTgPrQYkvoG0iItCXdkI= Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0B48F3822A; Thu, 9 May 2024 10:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1715248927; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q4ITZ+sf/JwnbGDnpuG6vOZrXVPF0TDChnwNG2SVvhU=; b=X61WZRV0CKSDBsLkJCU1jgxEIEFUZd6o3iouhCS+xgeQON/SlFZauvl64PZV7H5qKnWVXR 6EX7eLnRl6RoTJpH3oJ6/xYMvR9rev6dok9BUqcIaQN3tLPux/EKeJeWyu36gPfAJbm/IV iCdv5eqhJTarsgAzNwaZF4uZufNKdLw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1715248927; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q4ITZ+sf/JwnbGDnpuG6vOZrXVPF0TDChnwNG2SVvhU=; b=moWPaWSzl/Vn4H/v5T6Iwv1EK6RSCvvSjdu/WUcfhK+WBUlVX0j0ged05gB5ovEsSyjvpe yBnbwHYFrEslU3CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1715248926; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q4ITZ+sf/JwnbGDnpuG6vOZrXVPF0TDChnwNG2SVvhU=; b=0fc2yEPaajFsfFMJZeDnTNAi+U7z911meFzu73a8rD//CpGmvMf4/o0mLPefMvMm6znEkp ymrmY4hfbYz26DTExcwqUWLnBptp7bdQEHikCPUHJJYjlbHT42LxPZ/t+jxygMbrQ6VNF5 FT5Fe965C/0DlquICRPmlXV6ceCEXMg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1715248926; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q4ITZ+sf/JwnbGDnpuG6vOZrXVPF0TDChnwNG2SVvhU=; b=MKKTvpefJlIk4r+NpcWeF7RgFkCoP6fz+VQtdk9KlUv9W1mhMRqZ2XELwN5sd6e0jSssjs 1uumZlChYXBsEWAQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 0978D13941; Thu, 9 May 2024 10:02:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 642wOBufPGZbOAAAD6G6ig (envelope-from ); Thu, 09 May 2024 10:02:03 +0000 From: Oscar Salvador To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Muchun Song , Peter Xu , Axel Rasmussen , Liu Shixin , Oscar Salvador Subject: [PATCH 0/2] Minor fixups for hugetlb fault path Date: Thu, 9 May 2024 12:01:46 +0200 Message-ID: <20240509100148.22384-1-osalvador@suse.de> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Action: no action X-Rspamd-Queue-Id: 0AF94100014 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: inzq3q6yy7we4ju5c66wtrqcub3onqyp X-HE-Tag: 1715248928-698658 X-HE-Meta: U2FsdGVkX1/3kvx+skOv6y2Ucy4zEnXdtBGXAZtQnJP28kuPh5AZxjbJBp3YJ2tLLcSBW0RP9fAI61omogVZ7ExX8S2YSV01RIqbexmUXqES4W2OCixE7r5TWjb1efj1Ofph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5HIzi+D8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000231, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi, this series contains a couple of fixups for hugetlb_fault and hugetlb_wp respectively, where a VM_FAULT_SET_HINDEX call was missing. I did not bother with a Fixes tag because the missing piece here is that we will not report to userspace the right extension of the faulty area by adjusting struct kernel_siginfo.si_addr_lsb, but I do not consider that to be a big issue because I assume that userspace already knows the size of the mapping anyway. Oscar Salvador (2): mm/hugetlb: Add missing VM_FAULT_SET_HINDEX in hugetlb_fault mm/hugetlb: Add missing VM_FAULT_SET_HINDEX in hugetlb_wp mm/hugetlb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Acked-by: Peter Xu Acked-by: Axel Rasmussen