Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp351184rdb; Fri, 6 Oct 2023 05:39:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHik11TP8PkYuixc1jMF9rTOOfG4rLcRBy9dXHdWeFLR4EoUE37vdlIsJWqfj5UcNPZL3KW X-Received: by 2002:a9d:638e:0:b0:6bf:178f:aade with SMTP id w14-20020a9d638e000000b006bf178faademr8370127otk.11.1696595994826; Fri, 06 Oct 2023 05:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696595994; cv=none; d=google.com; s=arc-20160816; b=jV4IdO7xKoksQHni0RlVk95DbBoVOSOSLmTM0bRMv4v8mp+TtpSqD42Q1BM7og3dKh QHh3iKsSB+ikBPeQZ673jSH2rm2pT5qrfpCPqNj01F4lU39oOJ6lVJHoUWrJeBE/eBLZ dl4M9GiMTeDA4EbQqwXXiLsmxeb0+mtxFZJTPxLXRR8Ynw7rUApaOAlSzVDd55XzsA42 GasoJdEpks2xwqdvcYB3ZpoH2KoJ/aHZk8voxhfSbAmvRJe2Kohxa4j1WaxHVWAPAWJ7 wwgMpOg8apYlncKHWjp5LaNzzwMfpKnqHOAG8Pj02CCOp4twqqj3yIpQ0zRYlrSEtyrK 4gMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wFk7IyFRrYSNGWj7a5/E3F905Z280GV53boWUoHFqYI=; fh=PeNQ5gXO7G8fvg4fjPOKArPkyY7oyjxVVHTCkHGgM3Q=; b=a0Sp2dZ0IZ06+3tbKb2vv/Q64inJzfvUx3lXGXNukCsb2nnvOq7E2wNLVfgHy1zTbf +R5CLS5xbqfngaaJ6DvY5JtWHa32jGIDfmw1wyGDGa5xA/ZnW0da8Xuofr1lsI6ZqAi5 /JWo/+OGDlHAKkkc+KkjxD+3NFWmcVitLgMubQo0JJ4WX6dRy3vAi+oddKeVda8P68KD k+YY0jh5LBXqiUSJ/E9NnziY45NHpUdbEJaxK3AGnGqfjkH2DHBZj7TMshq6hRm3g+/2 geDMepGHQt1VjTj8YZ9Qf/kE7i5jhHUaOfYanSWGNJF6AxKoHgBalbmgfiajJ88POz+S kSIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hZ9lz5W7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 136-20020a63008e000000b0057760853700si3742815pga.579.2023.10.06.05.39.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 05:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hZ9lz5W7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A1D0280FE53C; Fri, 6 Oct 2023 05:39:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjJFMjk (ORCPT + 99 others); Fri, 6 Oct 2023 08:39:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231603AbjJFMji (ORCPT ); Fri, 6 Oct 2023 08:39:38 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4278CA; Fri, 6 Oct 2023 05:39:37 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40566f8a093so18637205e9.3; Fri, 06 Oct 2023 05:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696595976; x=1697200776; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wFk7IyFRrYSNGWj7a5/E3F905Z280GV53boWUoHFqYI=; b=hZ9lz5W7jBjNb90GT2L8am5AvS3v9/8QI2zA8/yVxS3Wm50tott8GZ6bcz0cjbFf+D nGjz92LQKAwNnMX4Pqb0PFr+WrkRFlyocMBr6lYlsZUrMxDkRwEDJ+sisTh3lrbk6fME d3qtlPFXcAqdgp3Komm6pn1jMXnPXesC5PG6QYAfpY+ZIBIP35xw4IIpmDFkcP+9M95A 7KF86FhmobnhLjWlokqfAhrz8wVzwVCiYOcqzlkp0tYF8SmZWCAZ+SmKNcGEFNQu27s8 4ZHqLUcLc6zVuTR/r3vPHbNRyNzTKpSGeus4TVSd3c1dTQmxF1AA/0AtseMOZMbaDKKB Ix5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696595976; x=1697200776; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wFk7IyFRrYSNGWj7a5/E3F905Z280GV53boWUoHFqYI=; b=WthEhqYuLDoYMt2ftNX/YW8puSApA3sqacUWT1oL71EBEOsIEe5u8tofKm266W2B+c emj1C//BzYzTFXKqOjmJmLEDn24Kv1pDDpaYYCyK1K3U4sTggnq75ToXF+VBAvnfBNOQ 6UZD8uAKzp7pUQM0NCsMfPHKLxRes3Z48l5F9JgnJET88SJdEUsZetoJ5e/SxTyyCsO0 32DYRIGF0buUf/76uZRgm5qLDTKP4UPq+IpuTkNUrXLpj+hTvsgS8GjF7R9OJEVToEzy hWbY9QqkZjNtcdskPg22hbffVIThu/9VMfgaoPHB0yP3MKWQc19JJHe135nmNSp3OJb3 01Ag== X-Gm-Message-State: AOJu0YzYiHzyxrJS3MuyaKXFfZ0z6bxT3OayYeb6t0/U//Qewk81eobp Cz3DTEeBUJ4suiMeMis3JHKH756G/+c= X-Received: by 2002:a7b:cb8b:0:b0:402:8c7e:3fc4 with SMTP id m11-20020a7bcb8b000000b004028c7e3fc4mr7342096wmi.30.1696595975878; Fri, 06 Oct 2023 05:39:35 -0700 (PDT) Received: from f (cst-prg-67-191.cust.vodafone.cz. [46.135.67.191]) by smtp.gmail.com with ESMTPSA id i2-20020a05600c290200b004063d8b43e7sm5922644wmd.48.2023.10.06.05.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 05:39:35 -0700 (PDT) Date: Fri, 6 Oct 2023 14:39:21 +0200 From: Mateusz Guzik To: Sven Schnelle Cc: Mark Brown , Christian Brauner , Jann Horn , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: Test failure from "file: convert to SLAB_TYPESAFE_BY_RCU" Message-ID: References: <00e5cc23-a888-46ce-8789-fc182a2131b0@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 06 Oct 2023 05:39:52 -0700 (PDT) X-Spam-Level: ** On Fri, Oct 06, 2023 at 11:19:58AM +0200, Sven Schnelle wrote: > I'm seeing the same with the strace test-suite on s390. The problem is > that /proc/*/fd now contains the file descriptors of the calling > process, and not the target process. > This is why: +static inline struct file *files_lookup_fdget_rcu(struct files_struct *files, unsigned int fd) +{ + RCU_LOCKDEP_WARN(!rcu_read_lock_held(), + "suspicious rcu_dereference_check() usage"); + return lookup_fdget_rcu(fd); +} files argument is now thrown away, instead it always uses current.