Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp705008pxk; Wed, 16 Sep 2020 15:06:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXXJfuTAiC3ZcK+tnMvhbbi97kY7LiBwY3JMQ51hzNPytPokQe6/fgMjD28ECKdU6McWb0 X-Received: by 2002:a05:6402:1548:: with SMTP id p8mr30903259edx.65.1600293983162; Wed, 16 Sep 2020 15:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600293983; cv=none; d=google.com; s=arc-20160816; b=CL6/q2OiNuWY/+IGhSCNzk7IDOumIgMKtWcW6vGzFodXXrubWldLIeWxgpLTVPfEG3 5UO3h0Keu8NqPHzyeYYYfqyJmQNqxeJhvHUQ296wn6yB510qzcxeVyMxIuIuCAhZvvC9 FK5JYx45WVmJ8yLr1F7d8mNRXHSSRhFfTOb615TjkvnDRft/gR96ZYVD92KfQ14KFD6p 8qsft1LKziWz9HHmJqcmrO3EA0zir5/o8R4GmnM6JyTIYFNFMf1cmh1WSfj2/yBw59yz u/UDFSy1SnCYXxjZeND/dVG9Nu/NbrSEK3R1WZzJwZ4ffiZQN16uTZAgY2oxqIPcAC0F +5qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=RVdVObv8tbiDVGVAm0SCTZNM8HTzvb9fYiClqlI5+Vg=; b=LoZtZkwK4lkma/R6eprd5fKgbOiNejUnSgdEy7a+PrhZ8QZUEiIqolRrIjZObPsZca EhEMyrKPuZEr0KgZj8ySsQvUYDpWd0KOf5qrpooANILzRSfc2f97yz//J6WJfU4el1DY y/jDiTw2bZjU0NcurbgYTrxSq+m9wIX7XqUsMMQk8Mfhalg9Z3auklwb1RNeqghBrFKQ U19e52gKKQBg/wiyEUxin62g1HLviyV+i0KCcq2h6gSifXm8QRJ1Rx+2sgBMc3EUo3qR PfEVUBtb0ckI2bVx9V2soqd8AMugmyu77eAbTOHaVN+o6ii2wDANHj+xnxVdCWIwHHgI lKfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bI3OVVUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si11978963edq.257.2020.09.16.15.05.27; Wed, 16 Sep 2020 15:06:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bI3OVVUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbgIPVJ7 (ORCPT + 99 others); Wed, 16 Sep 2020 17:09:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:48250 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728334AbgIPVJ4 (ORCPT ); Wed, 16 Sep 2020 17:09:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600290595; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RVdVObv8tbiDVGVAm0SCTZNM8HTzvb9fYiClqlI5+Vg=; b=bI3OVVUD/YsAqBnDeGsooiEkyl0cStEGWYrEg9ZlGJv/IbRSEU3hNfShVkJMMAF4Hhu0Je Mws9029ilAQLbYm8lNq4eIfl6wEdVi8/dnUYDP0H12pI4Kq8SfDazifgd4+yAI3ozMZ9zn 6CyLdQdNtfOc2hntl8GV7E+b+m60ePE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-465-oYobg3TyPaOR4_EN5N2vjg-1; Wed, 16 Sep 2020 17:09:51 -0400 X-MC-Unique: oYobg3TyPaOR4_EN5N2vjg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 93725801ADC; Wed, 16 Sep 2020 21:09:50 +0000 (UTC) Received: from ovpn-66-86.rdu2.redhat.com (ovpn-66-86.rdu2.redhat.com [10.10.66.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id B345C1001281; Wed, 16 Sep 2020 21:09:49 +0000 (UTC) Message-ID: <87ded87d232d9cf87c9c64495bf9190be0e0b6e8.camel@redhat.com> Subject: Re: slab-out-of-bounds in iov_iter_revert() From: Qian Cai To: Al Viro Cc: torvalds@linux-foundation.org, vgoyal@redhat.com, miklos@szeredi.hu, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 16 Sep 2020 17:09:49 -0400 In-Reply-To: <20200911235511.GB3421308@ZenIV.linux.org.uk> References: <20200911215903.GA16973@lca.pw> <20200911235511.GB3421308@ZenIV.linux.org.uk> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-09-12 at 00:55 +0100, Al Viro wrote: > On Fri, Sep 11, 2020 at 05:59:04PM -0400, Qian Cai wrote: > > Super easy to reproduce on today's mainline by just fuzzing for a few > > minutes > > on virtiofs (if it ever matters). Any thoughts? > > Usually happens when ->direct_IO() fucks up and reports the wrong amount > of data written/read. We had several bugs like that in the past - see > e.g. 85128b2be673 (fix nfs O_DIRECT advancing iov_iter too much). > > Had there been any recent O_DIRECT-related patches on the filesystems > involved? This is only reproducible using FUSE/virtiofs so far, so I will stare at fuse_direct_IO() until someone can beat me to it.