Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1961318rdf; Sun, 5 Nov 2023 23:37:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjVc++Q6gkuTSq0Sg/RtxhsKWFSznTnaXsQhdT2W2bzcoYDNoFc+zlT0mR1tI8mijBAYci X-Received: by 2002:a05:6a20:1594:b0:159:d4f5:d59 with SMTP id h20-20020a056a20159400b00159d4f50d59mr12445105pzj.12.1699256238569; Sun, 05 Nov 2023 23:37:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699256238; cv=none; d=google.com; s=arc-20160816; b=mG/mro8AeSiX+/jpCYlDlDeUBKlhWaQLhCJ9VaG96C9Cw0Ot5xXi476C8MWKbuk3gH EwPyLkNdVGglXRdDZH6J0/nH90/Ns/6bEpwhjauPPh7gkGs7iCQi0fMPUgR1s2yY7/77 dT2CQkbpB/tiCIkVCtzHqLJMv8JTHKmUD4HJzv8eqorCVvwsJlYDnYth1lDK6CLZjfgM 2lJZItYhltJIWhHJgEwTxgI8sdb24ZcdBP82311MLwUWVaVKgDm1Hj0ejMgp4GbyFlnU 4rqknvakSp80VbXNWoGfqwmcYyd9tvxgRgYh1b4TKBw/R3Y5gcHeptixUZahTLhdEg3x dl4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=J5Y2aGthN1YDrgbuoXhH81nEgX3ffno/slnIsK/Qu8E=; fh=YKPj7/9H0bmbaYlTHFS6Sod2Vl93s2JJZlaI7Ncq+qE=; b=Ct2RiNf3SqjK8D3IoMgJJb+X2IGXMvvy44X6JJAtjkRnZY3mSIFf/9+FC6qsNu0fNl /qCSQ3jmm32439NABBxlHHRvSts0iH/gu9OK2XRPc+sVeggdZ1jjBcECvkpL0+E+oZOi jxImcwEppmGPDPAxSCNsRVyeuXdZiFSApu+7q11Jddu407oEeWTRXw4WwChT9i0ncEyg wsScmj1pKLi7vosll1oC6LTm2sF7H4mmXUevNAQO8aLeKpVZatXnXXJlf3P1J7XM327H Curm3Ssn7L6ldubJjlmjOTLjTlwRRzRrOc0GA5Fw/Hyq7tR9jpH8ZnmQ7VBL3R+KBtra fXIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riscv-rocks.de header.s=google header.b=WM1bujhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ay29-20020a056a00301d00b006c3211608adsi7580557pfb.80.2023.11.05.23.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 23:37:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@riscv-rocks.de header.s=google header.b=WM1bujhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 39713805C147; Sun, 5 Nov 2023 23:37:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbjKFHg7 (ORCPT + 99 others); Mon, 6 Nov 2023 02:36:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231158AbjKFHg5 (ORCPT ); Mon, 6 Nov 2023 02:36:57 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F191A134 for ; Sun, 5 Nov 2023 23:36:52 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5435336ab0bso6994168a12.1 for ; Sun, 05 Nov 2023 23:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscv-rocks.de; s=google; t=1699256211; x=1699861011; darn=vger.kernel.org; h=organization:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=J5Y2aGthN1YDrgbuoXhH81nEgX3ffno/slnIsK/Qu8E=; b=WM1bujhhHfdMll9lUCNd1LAebpINkmiT+/j6ENA0WjAcyOE77yYokL1fE2uT8VY2Fr kg3x2AgYyNTrINlniYHLeLVIk0n96eopDHX7m135BzNDoR5PZOsbDs9BucKu1KEQGtgo KhpVhSlrfAFB06vBOvlIuh2Q6CqY0QoxHc3BAxw050IpNivKMfdu4xwz2GSQ3IuC2fiS zefTpHpwMLetDC8phsP9DFSiTdjwF4A7RIt/r57nftmihlX5YbPstEIKkGAKM+3OND/N D/ZE0WaktzZm7jQKJvzGq7Po+jTifwhQC+oDbd8V1Hex6V0qKRzkUzzvho5Egrdyo0aZ JsuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699256211; x=1699861011; h=organization:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=J5Y2aGthN1YDrgbuoXhH81nEgX3ffno/slnIsK/Qu8E=; b=roO4Bk3KMwwu0VVSoC6orpl5LgGYI00B/xjMY/MNy2XomUJF36jbvBxOfWpacvz+bq AzgqaWdnQO1Xfs1KnZcvbwyw17YUn1QW/Z1PTxakNfgjo4p1iwvWmOfOq0VI18GsO4tg WkA2ivSuHZ8g2aNi2jLYfUlh8lDQl3arJYPLMaXQHDCYNfCLBdvses8rGevvns90CyNT RHiGWAeFZRtDNlUmR9CCttLGgUQODnrdPTQOmILvqrTjh8bLfw6Un0wZgkKWOq2mVCVh CrnUEcSH9aj1wSvwn96uICwAngl4wRAgx1vkJZpguMQYpMWt1gRNSkPxpm0p2TV7G/7U xa/w== X-Gm-Message-State: AOJu0YwPF7K7Mhyr8mSEXXUv+Dk83SKVeHcQps1nTlMk3wRKV3vvpEdL MoOMxohBn3SHUEoLeXdaoch54A== X-Received: by 2002:a17:907:1def:b0:9d6:d78f:cdd9 with SMTP id og47-20020a1709071def00b009d6d78fcdd9mr10689622ejc.35.1699256211299; Sun, 05 Nov 2023 23:36:51 -0800 (PST) Received: from fedora.fritz.box (p5494469c.dip0.t-ipconnect.de. [84.148.70.156]) by smtp.gmail.com with ESMTPSA id a9-20020a170906190900b009a5f1d15642sm3794096eje.158.2023.11.05.23.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 23:36:50 -0800 (PST) Date: Mon, 6 Nov 2023 08:36:48 +0100 From: Damian Tometzki To: Eric Biggers , dhowells@redhat.com Cc: Steve French , Damian Tometzki , John Sanpe , CIFS , Namjae Jeon , Paulo Alcantara , LKML Subject: Re: smb cifs: Linux 6.7 pre rc-1 kernel dump in smb2_get_aead_req Message-ID: Reply-To: Damian Tometzki Mail-Followup-To: Eric Biggers , dhowells@redhat.com, Steve French , Damian Tometzki , John Sanpe , CIFS , Namjae Jeon , Paulo Alcantara , LKML References: <20231022183917.1013135-1-sanpeqf@gmail.com> <20231105193601.GB91123@sol.localdomain> <20231105201516.GC91123@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231105201516.GC91123@sol.localdomain> User-Agent: Mutt X-Operating-System: Linux Fedora release 39 (Thirty Nine) (Kernel 6.6.0) Organization: Linux hacker X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 05 Nov 2023 23:37:13 -0800 (PST) On Sun, 05. Nov 12:15, Eric Biggers wrote: > On Sun, Nov 05, 2023 at 08:40:03PM +0100, Damian Tometzki wrote: > > On Sun, 05. Nov 11:36, Eric Biggers wrote: > > > On Sun, Nov 05, 2023 at 11:05:30AM -0700, Steve French wrote: > > > > maybe related to this recent crypto patch? > > > > > > > > https://git.samba.org/?p=sfrench/cifs-2.6.git;a=commit;h=783fa2c94f4150fe1b7f7d88b3baf6d98f82b41b > > > > > > > > On Sun, Nov 5, 2023, 10:32 Damian Tometzki wrote: > > > > > [ 83.530503] CPU: 7 PID: 4584 Comm: mount.cifs Tainted: G W > > > > > 6.6.0 #61 > > > > > [ 83.530508] Hardware name: LENOVO 20XWCTO1WW/20XWCTO1WW, BIOS N32ET86W > > > > > (1.62 ) 07/12/2023 > > > > > > The above suggests that this warning occurred on 6.6, not on 6.7 pre rc1. > > > > > > - Eric > > Hello, > > > > is little bit missleading but it is 6.6 from linus mainline git with all > > the pull request. > > > > Damian > > > > Okay, next time please mention the actual commit ID. Anyway, the warning is > 'WARN_ON_ONCE(user_backed_iter(&rqst[i].rq_iter))', so maybe take a look at > changes from > > commit f1b4cb650b9a0eeba206d8f069fcdc532bfbcd74 > Author: David Howells > Date: Mon Sep 25 13:03:03 2023 +0100 > > iov_iter: Derive user-backedness from the iterator type > Hello Eric, the revert of f1b4cb650b9a0eeba206d8f069fcdc532bfbcd74 solved the issue of the kernel dump. diff --git a/include/linux/uio.h b/include/linux/uio.h index b6214cbf2a43..02a8e5e6c458 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -43,6 +43,7 @@ struct iov_iter { bool copy_mc; bool nofault; bool data_source; + bool user_backed; size_t iov_offset; /* * Hack alert: overlay ubuf_iovec with iovec + count, so @@ -139,7 +140,7 @@ static inline unsigned char iov_iter_rw(const struct iov_iter *i) static inline bool user_backed_iter(const struct iov_iter *i) { - return iter_is_ubuf(i) || iter_is_iovec(i); + return i->user_backed; } /* @@ -358,6 +359,7 @@ static inline void iov_iter_ubuf(struct iov_iter *i, unsigned int direction, *i = (struct iov_iter) { .iter_type = ITER_UBUF, .copy_mc = false, + .user_backed = true, .data_source = direction, .ubuf = buf, .count = count, diff --git a/lib/iov_iter.c b/lib/iov_iter.c index de7d11cf4c63..a077c15727b2 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -168,6 +168,7 @@ void iov_iter_init(struct iov_iter *i, unsigned int direction, .iter_type = ITER_IOVEC, .copy_mc = false, .nofault = false, + .user_backed = true, .data_source = direction, .__iov = iov, .nr_segs = nr_segs, > and the pull request that contained it: > > commit df9c65b5fc7ef1caabdb7a01a2415cbb8a00908d > Merge: 3b3f874cc1d07 b5f0e20f444cd > Author: Linus Torvalds > Date: Mon Oct 30 09:24:21 2023 -1000 > > Merge tag 'vfs-6.7.iov_iter' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs > > Pull iov_iter updates from Christian Brauner: > "This contain's David's iov_iter cleanup work to convert the iov_iter > iteration macros to inline functions: