Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1724067rda; Tue, 24 Oct 2023 00:55:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3L6RuwpXlPhbXYt2kWacfxmR7/vgIZDJJpSdjkmz1vv+hdSEOujIdYQdJCT8M2M9o5RcU X-Received: by 2002:a17:902:9f88:b0:1c2:36a:52a5 with SMTP id g8-20020a1709029f8800b001c2036a52a5mr9016016plq.57.1698134149099; Tue, 24 Oct 2023 00:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698134149; cv=none; d=google.com; s=arc-20160816; b=eZ/ihpgI+a14tB7QVo78G3bsluTrG6rPSkoe3AHloo42nrBFSPszBVSKAgiIOUVbtg g4ppZJr//revX2CTldquk+OXyMUkVNnVeDREorpmOmmAa8guOpDJx0nxcrJxZyVs9cvV 9xLOXLGDW4buYUR/wloF6nwHSiPn7yCLANaHrF+iXK7LS1cJXvLyuedchp591bDKlV/o rZ0coGWH+ovFqU4kdZtXVZtuxmNq/EP7bUop0n+kPNAn+xxs4PLQMku29uwDxPRupvn9 Ag1iwDekjMzrsnAKaO8/ygx/hxqEMCuGDKFle70Dz6OX2SrTYVnxVI13qwYunQWq/idg hV0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=rryMd0X9WV6QFu55eyAQUdUJEIXyug/kgmEK9WWRvfQ=; fh=7+ldwOnfI5AWLfMd6eC+isVmRyzAbAQJKz1/2oxdmNc=; b=LuSwCAaYW+T5PSXxiOwtAHtl1KNfz/j8yInhF40VGogg05P2H/IXRkpIjng0gZtt/n Y9c6swpuIoDuUe4Kepx4jCYM7ivUxSSCOy9bG0OS7l3qAK6JcC89AOeOC63Dp994KMZz PgodrW1jNqAfh8CFPSSz5iXupS5B3ij9khPIVEdHoA5IwCKw6xipEk6trEbMOEkzJU+h 2ISTDE/ZsI1ZYM6QuNoScxl4N/uiX33zswSawbdpDrhEFF9aMyx+tk/LdY9pKGsRT6+d KWofW6KOXmsw6XvmtOVWHU3g0QAay6JlME3v0ny75mPIEoLv7UMKXmPPepwRv6DFHEXu /0DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mgPBBOZc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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. [23.128.96.32]) by mx.google.com with ESMTPS id b4-20020a170902d30400b001bbabd5b14esi7493729plc.608.2023.10.24.00.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 00:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mgPBBOZc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 66AC4804A218; Tue, 24 Oct 2023 00:55:46 -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 S233759AbjJXHzj (ORCPT + 99 others); Tue, 24 Oct 2023 03:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232832AbjJXHzh (ORCPT ); Tue, 24 Oct 2023 03:55:37 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8764F9; Tue, 24 Oct 2023 00:55:34 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1c9bf22fe05so25586045ad.2; Tue, 24 Oct 2023 00:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698134133; x=1698738933; darn=vger.kernel.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=rryMd0X9WV6QFu55eyAQUdUJEIXyug/kgmEK9WWRvfQ=; b=mgPBBOZcnFhTdGj94p7wAnxLw9spkHglgm7IgCipSFkZn1vQakLdbiGxdCg3+1yL5j 3zX8UXURqNaVavfpIV1FhZO34DxBC2JsD8W4QSuWhp6AowAcA5o6CtkPWEKzHG0tt7PT +MjdL9kfOOzP5nOiwPBmyX+Lb5eJuhKGFEz5fo0axneyAmtveP22R2/eEmAD1SbAVcsQ DEys1xXGhujhinuo+EYBJMDE/Iid1qeKy6SkBatbNHgfEZBHcMHtmjlRsgwpmVnQ+5Hf xXs7nGW+LYEH6yC+LjVf38loJqN01Vspmpwl4Lh6slE4EmqdaT3z+wrHnt9FrFGsMpa+ 4lOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698134133; x=1698738933; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=rryMd0X9WV6QFu55eyAQUdUJEIXyug/kgmEK9WWRvfQ=; b=w7s1RRXM/9D1f/D2NgXRw1nDKsoRZDB7l8eZfbBHQUCQAjOVDSXKZuD4qMS6aH3177 5xkg/fxqlteUoLxAq/11GEw+tB/44f2kuJb9fqxdP5QQBR2O/vqveftC06FEKLef3lNl UCItewoNytZdbBCnNmXZRtMWzeXcFn/U86obXNQmHsSjQF4x3vOeZMWx8EwRVwqqsH+G 33zmYykTh2OWXXMq14jdPAahUTh6UyUbjmjoaNDjIIiYHwY2x+mPTvMRo9qGmYN4JS5o OoEhN3l4UD/HoKdNuxsUnoo0dG8DvJZQTOBkLNi4Wtcd9z8l2eQn2o/Ew4TaziFwqx45 e8hQ== X-Gm-Message-State: AOJu0YwiPe4GjmMJZp9qJGSdi6+Pq7aFi2TNwlnMVIbe8P3UksDcTv7u QyBtfLwFcYl6sovCdJsCKx6dqRrhX+I= X-Received: by 2002:a17:902:ca0b:b0:1c4:72c9:64ef with SMTP id w11-20020a170902ca0b00b001c472c964efmr7090388pld.40.1698134133184; Tue, 24 Oct 2023 00:55:33 -0700 (PDT) Received: from [192.168.0.106] ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id iy17-20020a170903131100b001ca86a9caccsm7051112plb.228.2023.10.24.00.55.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Oct 2023 00:55:32 -0700 (PDT) Message-ID: <429b452c-2211-436a-9af7-21332f68db7d@gmail.com> Date: Tue, 24 Oct 2023 14:55:27 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linux Kernel Mailing List , Linux Memory Management List , Linux Filesystem Development , Linux Regressions Cc: Chuck Lever , Christian Brauner , Alexander Viro , Andrew Morton , vladbu@nvidia.com From: Bagas Sanjaya Subject: Fwd: Memleaks in offset_ctx->xa (shmem) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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]); Tue, 24 Oct 2023 00:55:46 -0700 (PDT) Hi, I notice a regression report on Bugzilla [1]. Quoting from it: > We have been getting memleaks in offset_ctx->xa in our networking tests: > > unreferenced object 0xffff8881004cd080 (size 576): > comm "systemd", pid 1, jiffies 4294893373 (age 1992.864s) > hex dump (first 32 bytes): > 00 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 38 5c 7c 02 81 88 ff ff 98 d0 4c 00 81 88 ff ff 8\|.......L..... > backtrace: > [<000000000f554608>] xas_alloc+0x306/0x430 > [<0000000075537d52>] xas_create+0x4b4/0xc80 > [<00000000a927aab2>] xas_store+0x73/0x1680 > [<0000000020a61203>] __xa_alloc+0x1d8/0x2d0 > [<00000000ae300af2>] __xa_alloc_cyclic+0xf1/0x310 > [<000000001032332c>] simple_offset_add+0xd8/0x170 > [<0000000073229fad>] shmem_mknod+0xbf/0x180 > [<00000000242520ce>] vfs_mknod+0x3b0/0x5c0 > [<000000001ef218dd>] unix_bind+0x2c2/0xdb0 > [<0000000009b9a8dd>] __sys_bind+0x127/0x1e0 > [<000000003c949fbb>] __x64_sys_bind+0x6e/0xb0 > [<00000000b8a767c7>] do_syscall_64+0x3d/0x90 > [<000000006132ae0d>] entry_SYSCALL_64_after_hwframe+0x46/0xb0 > > Memleak trace points to some syscall performed by systemd and none of our tests do anything more advanced with it than 'systemctl restart ovs-vswitchd'. Basically it is a setup with Fedora and an upstream kernel that executes bunch of network offload tests with Open vSwitch, iproute2 tc, Linux bridge, etc. > > It looks like those may be caused by recent commit 6faddda69f62 ("libfs: Add directory operations for stable offsets") but we don't have a proper reproduction, just sometimes arbitrary getting the memleak complains during/after the regression run. See Bugzilla for the full thread. Anyway, I'm adding it to regzbot: #regzbot introduced: 6faddda69f623d https://bugzilla.kernel.org/show_bug.cgi?id=218039 #regzbot title: stable offsets directory operation support triggers offset_ctx->xa memory leak Thanks. [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218039 -- An old man doll... just what I always wanted! - Clara