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 95CFAEBE for ; Mon, 12 Jun 2023 11:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686570646; 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=5wUlRIN/HwO1xdhYncu3uXAkl7B7mbUxrP89n8g32/0=; b=d891FRl1EOXarrXOtkmJ8sCOygX4maOn6vXsNDwLaDPRwyqZR4I0T6JzOmQ61FM2hol22d sl+uuS4kXecUZXx/022DUsP2jZqafkRpMQ+h+x7ZiPDrYvbevZyq5/ec3y3rFSjBJl/b1U gRoQoQg9Io3mNFDWko4GpaXJ7OmaJps= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-473-1HOjYs9mNxGJ0xZgOYRgng-1; Mon, 12 Jun 2023 07:50:42 -0400 X-MC-Unique: 1HOjYs9mNxGJ0xZgOYRgng-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B695980027F; Mon, 12 Jun 2023 11:50:41 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id EAC382166B25; Mon, 12 Jun 2023 11:50:37 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <63868def-9a92-3b0f-4369-160a18b447ee@redhat.com> References: <63868def-9a92-3b0f-4369-160a18b447ee@redhat.com> <202306120931.a9606b88-oliver.sang@intel.com> To: David Hildenbrand Cc: dhowells@redhat.com, kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, Jens Axboe , Christoph Hellwig , Lorenzo Stoakes , Andrew Morton , Al Viro , Matthew Wilcox , Jan Kara , Jeff Layton , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , Linus Torvalds , Christoph Hellwig , linux-fsdevel@vger.kernel.org Subject: Re: [axboe-block:for-6.5/block] [block] 1ccf164ec8: WARNING:at_mm/gup.c:#try_get_folio Precedence: bulk X-Mailing-List: oe-lkp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <104416.1686570637.1@warthog.procyon.org.uk> Date: Mon, 12 Jun 2023 12:50:37 +0100 Message-ID: <104417.1686570637@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 This reproduces the problem. It can probably be simplified still further. Make a UDF filesystem and mount it: fallocate /mnt2/udf_scratch -l 1G mount -o loop /mnt2/udf_scratch /xfstests.scratch ./the_program_below /xfstests.scratch/foo David --- #define __USE_GNU #include #include #include #include #include # define O_DIRECT 040000 static char buf[256 * 1024] __attribute__((aligned(512))); static char *filename; static void cleanup(void) { if (unlink(filename) == -1) err(1, "unlink"); } int main(int argc, char **argv) { size_t page = 4096, big = 2 * page; int fd; if (argc != 2) { fprintf(stderr, "Format: %s \n", argv[1]); exit(2); } filename = argv[1]; fd = open(filename, O_RDWR | O_CREAT | O_EXCL, 0666); if (fd == -1) err(1, "%s", filename); atexit(cleanup); if (pwrite(fd, buf, page, 0) != page) err(1, "pwrite/1"); if (pwrite(fd, buf, big, big) != big) err(1, "pwrite/2"); if (close(fd) == -1) err(1, "close"); fd = open(filename, O_RDWR | O_DIRECT); if (fd == -1) err(1, "%s", filename); if (pread(fd, buf, big, big) != big) err(1, "pread/1"); if (pread(fd, buf, big, 0) != big) err(1, "pread/2"); if (pwrite(fd, buf, big, 0) != big) err(1, "pwrite/3"); if (close(fd) == -1) err(1, "close"); return 0; }