Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4105047rba; Tue, 2 Apr 2024 07:50:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVV8UxX8tDCe0CV6yRLbj5ggFHXi/s0C1tLZ2AFps1Hgn6JlW4nwuuH+r0GEJVVvuZMhupw9oTqd82FHzVSyaKHbQ5KIRSX96gW2i9hlQ== X-Google-Smtp-Source: AGHT+IEfmrtRJQFSwCeu45ONyI1ABSfhg9ze0GFFVBYfvtNze1QF8dGpIjWHTGnVmLNccTyrv18+ X-Received: by 2002:a17:902:8549:b0:1dd:7da:e0a9 with SMTP id d9-20020a170902854900b001dd07dae0a9mr11619149plo.69.1712069407541; Tue, 02 Apr 2024 07:50:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712069407; cv=pass; d=google.com; s=arc-20160816; b=enqCSLmXMyyUS2/OHwCBi01eN2oc8/g9dtwotmMJ1qNFA9MHVHbNsJ8t5XmBVi2r2H uOLZsbRyLo7BJP5puFvIgE/45BW2Sm2yJgNdhsPA2VKyXGbnO1Zncvi+ki+ymq9Kl/2m GkAHfbZzD2II2i6o52WUgXvYEVwOTfqOZWMzRj+9ntkRMPbPfGWyUFDwTcqAqNGk7B06 9JR8qauuL+9TaB4sBT6UVwrRHkpantRF109AH3+tWfgUUV28eCdC2hWOCrkG4DiXN8HZ 6ucnyBcwqwF5DzzuR3+cOAp4JR3jLLK7sk+V8Sg9yOXn9sKaig6RmhN3G7fd9Mvq94ea 0kWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wlCSs1dvO7phEwEbHxz8y4nuHMbuMtpriFYCSddRRjg=; fh=teFNs0PPm6Ds9QwMkGPy4atdefJaTPeA/5VnFmEPG50=; b=c10W9QrwcicGxb05FH3haxPxyGHp1wmVgPTDu1qcFrBrw5VPHsq8KVPn5tx1/YUHvF w3Fc/xj2t/cImIlXfWmU6TA6vWci1zTfEW73yxBRgD7sHePZjfOO06mzkEn4LpgrckjQ fcP7wTob+BTWj0+BhM0u4KCQgszkkqHdzLf3SvfJ3C+TIkv94jKGiYcmOZWUUMsjEa8H 5rKXPSSyxAwI8IlWZoPUNuW1srbq5i/sKmUUh3y+9xOOJJZcH1sUWaxWCI+ZZkDu7373 QoVeW2T8F4c3PLZE24i2+COu8eYRw7HCmz7ujPB09SZuZ1vQMXQon2GIi9gduegnpGq2 CptQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=OHa1spJy; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-127658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127658-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o12-20020a170902d4cc00b001dffc12bd5dsi11575229plg.351.2024.04.02.07.50.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=OHa1spJy; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-127658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127658-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 98548284850 for ; Tue, 2 Apr 2024 09:49:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D34F59173; Tue, 2 Apr 2024 09:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="OHa1spJy" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 43D575915C for ; Tue, 2 Apr 2024 09:48:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712051320; cv=none; b=E8iYmHCXKc51i21+ZiPK+OjIAAJrAGHrh3DwGSVeklaRaTifujAEaWi/jyxpuhDX72wVFTwvAqw+B+IYuJ7AqsoHehIhmWXGT6/wID2zoN2NsyDuRY6VFF8Ki5tFSq6MHrxOq1ullJMPURpeMM5INUHOvB/TA+v/CLz1OZK5iUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712051320; c=relaxed/simple; bh=MfgLsLZHTAI2m35bZRl8ZqcgKZZdKPeTA0idRU0cIRM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=H4ifxT3R9h1aWBalUA4uISc7CJH5xDTuInTaIIf5NzJdaqenb47pVUo5CcXwmpYg8NhHtf/H4mZ7Bearye3QHwFFf1DkmrOMgXSu8iOLvWrF66Oj8KbjqqDGu8+jS/VQwtH8bbqkANiR/qUTBjMrEfB4x4Edn9+/5mKNi/CDzeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=OHa1spJy; arc=none smtp.client-ip=209.85.208.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d6ff0422a2so68206531fa.2 for ; Tue, 02 Apr 2024 02:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1712051316; x=1712656116; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wlCSs1dvO7phEwEbHxz8y4nuHMbuMtpriFYCSddRRjg=; b=OHa1spJyV6ICuFmleOMMx1jSpEealf+t4idiAguuc5IMf3A4HcctK7rbxZqX8Vx819 sGw4V1XCs0MFj1p+oBCwZf5ArW12nyOUWRBPqTbcG1Klp5kPA3IDC4eMcj0Whp6vHpW8 43/NR3J/J0jSBAgYoLa6pV7hjbuuammM4ezOfdXy9ChprbXYI4gZhQYepMvog5CKpEz6 sfw+bQ9l0TmBIQmVQFUNvERhXflJbyaP8rkFxx9jQA9uwiH+YOMDC0u8K2M6VbcjdLEm ETzT2/WQoQAvNMOccGNgV8ixK3k2xcr2JyWk23phbRwYiwYnqlBaKEBs8ge/0SAfwfd/ NZZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712051316; x=1712656116; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wlCSs1dvO7phEwEbHxz8y4nuHMbuMtpriFYCSddRRjg=; b=IGvXbk3cdA/bzcfN1izhgk/i/zcEyXgqvRgXGWpUn37F6CERkEHlbISqJOdLWWexSl h6s0gYrfX3AWhFaVYVdsze1nkbEQoOxMAXxM9UC8SDzbjdGOkBRyM5iIIH07Pub/Ib2h Y8Y1u4DgkiLDuR1WIVTDiPmhMB2MzRC4PSExoRt9EAcX75kaPc1NmKvgCZGfUVnDs5Oh pa//HiAo4QuVjqwa3h/1OQdmoAwdBWndn0TzPWVSQdwK37mPeUcgCKjl1Q0V7BuxZtYl vLlgrW7gWmmWe1Xx3XYmivGtHVP6apXuzZwKWlKhGkopbTLmMRhbnlpkcSk9UdNRxTUd /ZNQ== X-Forwarded-Encrypted: i=1; AJvYcCURhGQLclQexzzq+a9l/sF0HfwQhoi5LPT89jtduiTCK2N/UOLFMdHe+vWGZZIDM78fflYejIvP7deHRl3Ldp7tEc7uBC3R7zu+/WHE X-Gm-Message-State: AOJu0YyYFHLY1DsonJcsY0bFu/faNHFr+C5yBcMcVGCk2COxxMcfULvD tHC+0/xp9WX7U9xz7LeeAkED/ntCQbeIW2lXUaFbceYSH48pnNS85PkRtHQvjfL59c2DyDhO1G3 W5H9lVUPdXAm+eHK6CIqPZuB/iBVzcCkQDtbBnA== X-Received: by 2002:a2e:3812:0:b0:2d5:9703:263c with SMTP id f18-20020a2e3812000000b002d59703263cmr6564315lja.4.1712051316345; Tue, 02 Apr 2024 02:48:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240402093534.212283-1-naresh.kamboju@linaro.org> In-Reply-To: <20240402093534.212283-1-naresh.kamboju@linaro.org> From: Bartosz Golaszewski Date: Tue, 2 Apr 2024 11:48:25 +0200 Message-ID: Subject: Re: [PATCH v3] gpio: cdev: sanitize the label before requesting the interrupt To: Naresh Kamboju Cc: linus.walleij@linaro.org, adobriyan@gmail.com, bartosz.golaszewski@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, wahrenst@gmx.net, warthog618@gmail.com, lkft-triage@lists.linaro.org, anders.roxell@linaro.org, Linux Kernel Functional Testing Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 2, 2024 at 11:35=E2=80=AFAM Naresh Kamboju wrote: > > Results from Linaro=E2=80=99s test farm. > Regressions on arm64, arm, x86_64, and i386 with libgpiod tests. > > libgpiod test regressions noticed on Linux stable-rc 6.8, 6.7 and 6.6 > and Linux next and mainline master v6.9-rc2. > > Anders bisected and found this first bad commit, > gpio: cdev: sanitize the label before requesting the interrupt > commit b34490879baa847d16fc529c8ea6e6d34f004b38 upstream. > > Reported-by: Linux Kernel Functional Testing > > LKFT is running libgpiod test suite version > v2.0.1-0-gae275c3 (and also tested v2.1) > > libgpiod > - _gpiod_edge-event_edge_event_wait_timeout > - _gpiod_edge-event_event_copy > - _gpiod_edge-event_null_buffer > - _gpiod_edge-event_read_both_events > - _gpiod_edge-event_read_both_events_blocking > - _gpiod_edge-event_read_falling_edge_event > - _gpiod_edge-event_read_rising_edge_event > - _gpiod_edge-event_read_rising_edge_event_polled > - _gpiod_edge-event_reading_more_events_than_the_queue_contains_doesnt_= block > - _gpiod_edge-event_seqno > - _gpiod_line-info_edge_detection_settings > > Test log: > ------- > ok 16 /gpiod/edge-event/edge_event_buffer_max_capacity > ** > gpiod-test:ERROR:tests-edge-event.c:52:_gpiod_test_func_edge_event_wait_t= imeout: '_request' should not be NULL > # gpiod-test:ERROR:tests-edge-event.c:52:_gpiod_test_func_edge_event_wait= _timeout: '_request' should not be NULL > not ok 17 /gpiod/edge-event/edge_event_wait_timeout > ok 18 /gpiod/edge-event/cannot_request_lines_in_output_mode_with_edge_det= ection > ** > gpiod-test:ERROR:tests-edge-event.c:125:_gpiod_test_func_read_both_events= : '_request' should not be NULL > # gpiod-test:ERROR:tests-edge-event.c:125:_gpiod_test_func_read_both_even= ts: '_request' should not be NULL > not ok 19 /gpiod/edge-event/read_both_events > > Steps to reproduce: > ----- > https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2eUlyN8H= N4R1u0RyLwN6hx7IV0I/reproducer > > Links: > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-202404= 02/testrun/23265184/suite/libgpiod/tests/ > - https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.9-rc= 2/testrun/23244617/suite/libgpiod/tests/ > - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2eUly= N8HN4R1u0RyLwN6hx7IV0I > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.8.y/build/v= 6.8.2-400-gbffeaccf18b5/testrun/23252337/suite/libgpiod/tests/ > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.7.y/build/v= 6.7.11-433-gb15156435f06/testrun/23252698/suite/libgpiod/tests/ > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.6.y/build/v= 6.6.23-397-g75a2533b74d0/testrun/23254910/suite/libgpiod/tests/ > > -- > Linaro LKFT > https://lkft.linaro.org Hi! Yes, I confirm the issue, I will have a fix ready soon. Thanks! Bart