Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp888983rbb; Sun, 25 Feb 2024 08:27:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXIT7nG8H4GRWdLQCz+5os7ZuK4AOStAkid2Xm+sF1cYN3o3o7Gt9ZjyQePejjuYYpQo9LgcX1vknqOlNwhetyK0OmY5Qxj7+q74let/w== X-Google-Smtp-Source: AGHT+IGtxwKJQYHpDULqhmFuT+CCdbf4gZW8OQ6p4VbuIjERwx+07XuH54HvBzbYQpzOvUTiM8S7 X-Received: by 2002:a17:906:2844:b0:a3f:adad:9ce1 with SMTP id s4-20020a170906284400b00a3fadad9ce1mr4129654ejc.18.1708878473489; Sun, 25 Feb 2024 08:27:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708878473; cv=pass; d=google.com; s=arc-20160816; b=v6B179pH67lkouYugqN5wDBbEkV/tKdKFoNoRlkZeEIjOEpnWamH/rdXQ70kUTphAk vH+0oerZ6I5XLMCfsFmhhh9hvE1VFtuMPg0q7vUpPmcwDsGw+yyWMmBgULq0kCr51geD pn/3eeZiq5NvR4EPIjeSSXCfRR+uUctgHjC13Gu2pXz7VoDOqTQ94ewP/pa3tYMPfCXJ cSKb6FeOYyORJNOUR0oHwpTDTVa5vSvEwUQJhWFLXORhuEoPOD+FHvE7qcn1s/v+gHwJ E9+N3s/3iWGN64Xh2lhbbzuCz+cT2nRaIJOgEWGUFQeJRNifk0rSNPWlNH6ONDfllT0R yCPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ghE9UsVsRsht5B+PMQ24QOGWHn/KsoHJpuMVm6m8Dp4=; fh=okryF3aMR3LjRDzf7wzrAUkhbXLHmQqDMlR0CZgFEqw=; b=oAO4snCnzHbGLQ13laJE0uLL33dFq4j8xOD/we55bD7y+FkfZZoItXX9JmybmT08Tj 1DlLEDGX4iurS43G1yIboFGWBrm5KK4YwIT/L/I8hWFiEJm9bv9eL+TrcaM2j/kx2oIa PiaiZ2LC8NGaDZuwYWrwsn7gKcYk/3SotAZqBP3IC+MzzpiZC4kMIupB1eoJtgaRW4rZ 8SlAIEk38Ou73+1WQURbBqkqLD+ZN4NHo3bmPAMWYqiHiVIqUh+5kJJyMbLOhq49TYz0 9T+ULqGry/je0Z6tZT5E3r08eZOpzojd2eu454n5Yv0KuLO3BP11CDTYs5P4D3+ttdAn x6jQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iogBR9kG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-80198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p18-20020a170906b21200b00a3e342aa87asi1382420ejz.912.2024.02.25.08.27.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 08:27:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iogBR9kG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-80198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 41ECB1F2179B for ; Sun, 25 Feb 2024 16:27:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B94A17BA6; Sun, 25 Feb 2024 16:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iogBR9kG" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10B1E12B71; Sun, 25 Feb 2024 16:27:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708878461; cv=none; b=d7RzV6hkweEPkup3xup5o+wLIWmD0AGzAvO96gnxFDtpPssP4ph4oqNsBaJarxay2zPKsW90TSX6gGMhbhfrUV4X6jp3eGfvjiKAW3LGkMtUgxISavYmPJYGv+GCg5G6gY34vBUpsr7nXn+CM2b2RXQRfvtyp1gWLXYE3gvqRbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708878461; c=relaxed/simple; bh=gb5bJtceNND73BjHmlyG5x/sd65hla0KFc09jMWSpVA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TL0q8gUvnFuC8EcLD5+V5MhITpsJ6qvr2d2yVHQw4A9yFSN7hd7u3J+JoRMWkMmXgOsHHrgbqoTKtxdfEARCerUFEi3i/QUL9WnKuOTyyofTPmC/bAXY8NZ4OyItSs6/Ppyuk5Z6FlEne8902ejm+O60AbFXI8SyS8YXCWs2xeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iogBR9kG; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a3ed9cae56fso352034166b.1; Sun, 25 Feb 2024 08:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708878458; x=1709483258; 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=ghE9UsVsRsht5B+PMQ24QOGWHn/KsoHJpuMVm6m8Dp4=; b=iogBR9kGlhcx1/ZaEBqSgdrb+xoCbfeQbr5zMrpVOK70yoZx0h5/h0jmpVZSziDpBe VrEkDzP5esCrs9xtRwOH+nNPGuXvcYK4Gtt69e3rZAWMQbR6Mn4H5McQLuvn50jPqNlC iX/RMivTM+l3R9JR+JBjnXsHLNr5z3g+OcYcI4O9/bDpLm6Jl4djbO/R1U4g6YVl6MCt dBw1HVO6KYPEUTdXhACnF+SZmO2Z8Dn8BS6nGaP9yVehNDZ4DAvySQQNY4zXnAdYKlIY NhRfdVVBcrJ4M9r7RtRTBDxC+2VycpDMM9V8PAaUdB87Pd0z8nGKKQVzDG4V9Cb2MPrk JiRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708878458; x=1709483258; 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=ghE9UsVsRsht5B+PMQ24QOGWHn/KsoHJpuMVm6m8Dp4=; b=tS88AZZvxoS0LWXog9VGceCF1HXLkoCh0PCLpSoSc+OTmtgIDAnhnSqonoqBMwX7Hg WF8K5DwaxKl8Fst1G6Fnl8P2AyF8KP8s/Qqk8m9dPxkkhhOsX3URB30YITg2jPNq0XYG rL9AJY/IppvL5KH9q3Vy+c2RPt66VxzwEi4/nesQUxIE2ecPhXRL7pxxm3xCrh+9MdW5 eWQs4n3eo16Fcbjt7yruddC1qAIRZCJAabfYVS4D7wkEPrPKdaaezV6QLWj+jPMB81kU mJ2B9YS1bsi83qzweQOodqUZLzPWkCoTC80BfS+hrGm3sXgv4olPcw+c56qtB9SQOKZI dVxA== X-Forwarded-Encrypted: i=1; AJvYcCW4+CEvemtedzyp4quQh7tSHhI+0njEG3N5CwyBtPsBd6/rGV9FZa6G0MwN7ppMX1ZbB4P4ABG9rllVrhHqEkvwGWFZs+pVdOY113sYVF4VwjScPpW5J+4pr/p+rO3Zd3b//zmbIEo4tf5rnBvPE6Du2PLOOKjHLC13FUIUFiGdfwo8NBIBYjM= X-Gm-Message-State: AOJu0YxfEXkBZYYtB3emM9ohxno8AfQXTbDOBhaFdgIoH7TjJIeChQtN hRZOB2II0Lzt4Z3BSpTnmM0GTVYJRWj2RBE+E58OGWbEnvncAhs= X-Received: by 2002:a17:907:20b4:b0:a3e:599:ae86 with SMTP id pw20-20020a17090720b400b00a3e0599ae86mr4230693ejb.9.1708878458166; Sun, 25 Feb 2024 08:27:38 -0800 (PST) Received: from p183 ([46.53.252.131]) by smtp.gmail.com with ESMTPSA id un6-20020a170907cb8600b00a433f470cf1sm376549ejc.138.2024.02.25.08.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 08:27:37 -0800 (PST) Date: Sun, 25 Feb 2024 19:27:35 +0300 From: Alexey Dobriyan To: Stefan Wahren Cc: Linus Walleij , Bartosz Golaszewski , Kent Gibson , linux-gpio@vger.kernel.org, Geert Uytterhoeven , Linux Kernel , linux-fsdevel Subject: Re: WARNING: fs/proc/generic.c:173 __xlate_proc_name Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Sun, Feb 25, 2024 at 11:47:30AM +0100, Stefan Wahren wrote: > Hi Alexey, > > Am 25.02.24 um 11:37 schrieb Alexey Dobriyan: > > > WARNING: CPU: 0 PID: 429 at fs/proc/generic.c:173 > > > __xlate_proc_name+0x78/0x98 name 'R1/S1' > > proc_mkdir() didn't find 'R1' directory. > > > > In other words, you can't have slashes in irq names. > we already came to the point in the discussion before (link in my last > mail). The problem is no libgpiod user (userspace) is aware of this. Changing '/' to '-' or '.' should be OK. Whatever you do, don't change to '!' because it will make these paths annoying to use in bash. > So the next question is where it should be fixed? libgpiod silently weren't getting directory inside /proc/irq/${irq} and nobody noticed until now. I think returning error may be too harsh but replacing characters is not. > Sorry, i took my original message because posting the last message to > linux-fsdevel without context would be pointless.