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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4398C43334 for ; Mon, 13 Jun 2022 08:04:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 503278E0002; Mon, 13 Jun 2022 04:04:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4B1AD8E0001; Mon, 13 Jun 2022 04:04:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A0158E0002; Mon, 13 Jun 2022 04:04:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 2B44B8E0001 for ; Mon, 13 Jun 2022 04:04:36 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 74428353B9 for ; Mon, 13 Jun 2022 08:04:34 +0000 (UTC) X-FDA: 79572475668.06.352A3F6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf28.hostedemail.com (Postfix) with ESMTP id CD900C009D for ; Mon, 13 Jun 2022 08:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655107473; 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=yG4TXPIUpzu5JrpFoncCij2pFS/fRyC7T4T0EvjrJIw=; b=U5c80HCjuORchfSRleskrTH9kkBsBCMEyGJ3d5Ly5eH7Mtg8ID75cScIp5fOYiu0DjHG15 mm3LgF/fpLXWLjgVvFPNkT0+kFt909XwpSSkuMkMwgzDdrkpP8mTiVcVKmsNZRB7dr//tK j0khV9uxQjcxJj4s7hT7EqGAmBJnDjw= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-140-j21314Q-NV25jy2IwiyMUw-1; Mon, 13 Jun 2022 04:04:31 -0400 X-MC-Unique: j21314Q-NV25jy2IwiyMUw-1 Received: by mail-qv1-f69.google.com with SMTP id jz2-20020a0562140e6200b0046e0d7df2e9so3378190qvb.13 for ; Mon, 13 Jun 2022 01:04:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yG4TXPIUpzu5JrpFoncCij2pFS/fRyC7T4T0EvjrJIw=; b=5CCnR4AbLhfFWMqj7oBzWhQ4HxzstwFdRcfDIqOzgR/990TSVJ6sy4y6LIFmBag022 b9P2DhyBARkc8d+cVtWOAqfrAzAo3fJNbGh8XaRji/hbkZ0+ou96nKZ8HfjUib2F6BBg YYqjCiSVQwf9slOeb8ApUwIBszRbi3pFDJu4+ipds+I/7HTkhsBMQO4Fz2C7jBkB1N01 NY8VUFBcVm8EfOPEmzW3ioCf+HxkQeDWHWcZlT0AHtYQHG+wXm3lXDuGgnso8ZwHs7AE ZcjJIxvy0N2L9qNjoHYiTpW+R3ZVSoSKNSfeI5KkaMQQG2l4JwOdo6aJdhYVJFT/pWQ5 xPTQ== X-Gm-Message-State: AOAM530VCAzV/FkRnSggoKsehQ7ZU5zynEJA7NrC5/cnelRMvpg3pnAh /bnmoAaQkUjUDEIKkSF+8jHU9/t/iKjpvcByq3udY/yfuwD9bQptLddXDFtRhraKwzJubMvnQgn WH3+igBSgJ3Q= X-Received: by 2002:ac8:75c5:0:b0:304:ffea:c434 with SMTP id z5-20020ac875c5000000b00304ffeac434mr21835013qtq.170.1655107471478; Mon, 13 Jun 2022 01:04:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyK9pDfdt2ahRKvrZUBXZLqk04TKP9jpVIYJWgt4s4IShRDLBAZDAcAbWT6DSNOcl4fM1ceg== X-Received: by 2002:ac8:75c5:0:b0:304:ffea:c434 with SMTP id z5-20020ac875c5000000b00304ffeac434mr21834999qtq.170.1655107471225; Mon, 13 Jun 2022 01:04:31 -0700 (PDT) Received: from zlang-mailbox ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id x14-20020a05620a448e00b006a711bb74b6sm6631173qkp.87.2022.06.13.01.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 01:04:30 -0700 (PDT) Date: Mon, 13 Jun 2022 16:04:24 +0800 From: Zorro Lang To: "Matthew Wilcox (Oracle)" Cc: Kees Cook , linux-mm@kvack.org, Uladzislau Rezki , linux-xfs@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 0/3] Fixes for usercopy Message-ID: <20220613080424.gkfn3v3crjjbgxyb@zlang-mailbox> References: <20220612213227.3881769-1-willy@infradead.org> MIME-Version: 1.0 In-Reply-To: <20220612213227.3881769-1-willy@infradead.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655107473; a=rsa-sha256; cv=none; b=xhkJLjTxETZz8TcN7RgzSZYN1XJSDUZka7mijeykKyULIVkKEv1Myw3xXwXQEVnwA28iMt zfwsWkqUe9xaZFJp03LIj6juKQF2ddJEFcULZhNOYjC5q5BARb8vEaoLxCSPMYZ8znNeoz sQaS4q03zahh6+nUMgXouHoFLWpzaqo= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=U5c80HCj; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf28.hostedemail.com: domain of zlang@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=zlang@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655107473; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yG4TXPIUpzu5JrpFoncCij2pFS/fRyC7T4T0EvjrJIw=; b=ZNMN2MNH31lcHdDjJdB0/aDK1WVtFYyHsRdAzzByCyQHo2cGaz9aufF/0A6Vt0MqZvDIPS deFckqO8JOsbYA+JB3UVFs0KUMgNnctqRBCeE6zz5CS7IK++/TnXpFQxguiCDQhBlRbx9x u8fZP5QalrdiaFo7YyQGZtrIAIX8pTU= X-Stat-Signature: kyir5kagu76bka47yhm161dspgkdcb9k X-Rspamd-Queue-Id: CD900C009D X-Rspam-User: X-Rspamd-Server: rspam10 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=U5c80HCj; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf28.hostedemail.com: domain of zlang@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=zlang@redhat.com X-HE-Tag: 1655107473-763490 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Jun 12, 2022 at 10:32:24PM +0100, Matthew Wilcox (Oracle) wrote: > Kees, I'm hoping you'll take these through your tree. I think they're > all reasonable fixes to go into 5.19. The first one is essential; > it fixes two different bugs that people have hit. > > Matthew Wilcox (Oracle) (3): > usercopy: Handle vm_map_ram() areas > usercopy: Cast pointer to an integer once > usercopy: Make usercopy resilient against ridiculously large copies Hi Matthew, [Quick response] ... After merging this patchset onto linux v5.19-rc2, I can't reproduce bug [1] anymore. I'd like to keep the test running, if it find other issues I'll feedback. Thanks, Zorro [1] https://bugzilla.kernel.org/show_bug.cgi?id=216073 > > include/linux/vmalloc.h | 1 + > mm/usercopy.c | 24 +++++++++++++----------- > mm/vmalloc.c | 2 +- > 3 files changed, 15 insertions(+), 12 deletions(-) > > -- > 2.35.1 >