Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2639927lqo; Tue, 14 May 2024 05:15:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfGAsjiN/v2MDB9DzUpFaHCewMTrV2s+T87uR5VTPj2IRF1ZT3encJNJXjeY/aU/fnqRBr38vsTVX1vqxaWivr8tPay0U4yVJxl4A+eg== X-Google-Smtp-Source: AGHT+IHB9hz+hOkl7Leny2OqOuYCU0Lk/WY+2XM9/x3YdaUQvlYrpt6tno5uOSBL4YsANLEtLGao X-Received: by 2002:a17:906:a153:b0:a59:c319:f1db with SMTP id a640c23a62f3a-a5a2d55ab42mr873772566b.1.1715688930539; Tue, 14 May 2024 05:15:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715688930; cv=pass; d=google.com; s=arc-20160816; b=ZXxR5r+Y/yphI1kanVzvRe2wJVRHpmvChoAn7zXtgaHfr8S6ZMBUz5yQSfSjXPO/kr 6QuFx486eMBF8Fht5Wyd1iU/odC2hDIHf8UhdWQ3uqsO3r969ny2IT5ZEqlp0JR4e9vk DrjgI5tIFQBq3vYAYNcthOSmUrwJoHWOVsI81Tzgm2KfKWbZwgMb6jcVxusGMQbjAzhC ixZrBtbRP8cWSi49aXYH34FgkvJzTfzagb8VtAFp5gt/JHXF/GcD0jdmtC5dxt57Bi01 yjWbHG4xsJ1bR6mrrKHZHckFpvsEAFnlz6RiUmF+s3IgTIY02LcILHYeuvU6Uv7uOBmF xbrw== 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=pskd4OyVYfOv6TtD0JP21Spo2bkD19tl3Fnn6qpniO0=; fh=VfEJchoG5OuVUZx/4Rmk6+76WsclTO9qXdkMpeSlsKY=; b=q27ab7703F0SbNRgGsIiYY8mCOZ2UASD17XZntV8RWsKFUQgsct/QGAL0WrHMUcw6x 3Jhij5I0zmjUgZW5Z/19AJjjLW5k/qb4FMa9dGPeGNXF4hLE9HA7tF4m3ULiLzwKKbfk EUgmBXAKIDdYBNeDbVux4Xfx8kMen/sQKlYis8ojm+UqNgTiuWu/DJtizPywnRmOcJsJ HQQ+urWpy9AcyQtp47whJumZJ+jiqnCo2eayluvhDVs4d1GmygLreA0qk1i2ljm4ZssF o2m8SfSP2E027TS6Rln0jTd6aqF05xgM1iFnjNDYjNKctABqAKb+R7AumieXw3N/AzSh 83xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BNPebhYH; 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-178653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178653-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. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2cd4fsi647144566b.1051.2024.05.14.05.15.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 05:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BNPebhYH; 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-178653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178653-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 4A39C1F23083 for ; Tue, 14 May 2024 12:15:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEF7D41C6C; Tue, 14 May 2024 12:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BNPebhYH" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 DFB57320F; Tue, 14 May 2024 12:15:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715688922; cv=none; b=gT6g0aALXk3ttd7tHG/bUOYy5gs/xfiTrB3mWMvqy5wIr0dCEeBd689oZLdLRdXpH3wSOg4GYl+9/dr5MK4oCar3oGBKTQS4ReikAnuNCJg6pFVY5ol7oGNGZdZfYl+gP/GcQQKD1ul0IovRXyKpG1d0NyBe6HadWzV8p9cKZh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715688922; c=relaxed/simple; bh=C8AbzcTH0UDOHtZozDO2s82ZaO9jrv9srhBKUr1ss0o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mp+QrAQn6+JGpVM0N6WiBRnMisaCWXRk8ASAKwQ5JKVfUlnZ2Lvuj8SRajI5AxUkKBEpE2+5qHB+HzM4Zy6j8MqFpC0yR3UcEuRFlBezyK8rVErlvqcClcdFVE3vftCNnKvFfeQAH/lHkQgpvk4wLooJT/36OHiu2HrMF0YnX0c= 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=BNPebhYH; arc=none smtp.client-ip=209.85.214.180 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-pl1-f180.google.com with SMTP id d9443c01a7336-1eca195a7c8so45209445ad.2; Tue, 14 May 2024 05:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715688920; x=1716293720; 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=pskd4OyVYfOv6TtD0JP21Spo2bkD19tl3Fnn6qpniO0=; b=BNPebhYHx4NpL7w/Coz0w61gjSCfuMaabxWrsV7QbKv48vnQ2+EbcQJ1jPsS50M9Mh 0wA0s41utSAq/aV+ks2jkuSMB01c3nmMPJ5f8swBsw+h++vqUoorGUY7sgd2hP7XF15x tDp/CH7PGJC8O6CYptJ8vhx+Ff3rfqN2EG2JN4yBNUwpw8O6DYDiCAuKpB+/KAULNwnh DzAWsUHpwrQ7CCsqEg/BrOTBUHZWeD2d6mt2Nf3dQ3DHH6pOlxPZXCvyn0hHpMEP2hDg lgK5GG/E1jCMCvhyQvWJ9gRzHRnBpPx4D9xIU8/gWkhNXe/N3gjbRxyjS7ryDwWjIOUm lQUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715688920; x=1716293720; 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=pskd4OyVYfOv6TtD0JP21Spo2bkD19tl3Fnn6qpniO0=; b=hOnnnXcT7HcwHE13yAA+8pKNxeSSu/lA5uzYrJCNu/vP6j1AscL4eR5ItTednSiwVe M1ckN07dKPLocSoloKLCOLO9RDI2djwxy6zrTQd4TPWkZeqpQGt/heYMUYmCnjzO/Np4 /UQZ3H2rXyEFwdSgAU8AtqYAqLXiJvW1WG6SsbTBuvqcA1R1dJMr58UpHgkljKHTpC9h jDMkmHVdkrbkhze+SHZPnHEShX2cn7RpzyeJr7wsxWt+NTTvxCyK6fA6zyNdlmHg7VXl oo2q5knC1mctkwaJOS0+m4sovgDI5zTGp8Jd+eOQyu8utcepXWC6xEx6II89drMQ8zSR vZIA== X-Forwarded-Encrypted: i=1; AJvYcCUgHomR8eKStZ0ZiyGL8DSor4j5NJWr8XBzTKIbBOzE3ugwCIiJ30bfHiV+eCmcFu5d263AKUep4C88B9965Hi2Xq/fOHlWnwXhwA+kI7+w1ICIrlncrJ2J8loTpF/rgXDLxOK9eX72FQ== X-Gm-Message-State: AOJu0Yz8beFayqD4a3RiCXIxbDAoJ18PvLuSnFNACa8CY7BMylac9ZZX H9q8vhVe0kAVw+USW8Y+mRUmle7ovmJbDEjU/aw+uhDlQCWe/t/A X-Received: by 2002:a17:902:6ac1:b0:1e2:7dc7:477 with SMTP id d9443c01a7336-1ef440583dbmr106394935ad.57.1715688920056; Tue, 14 May 2024 05:15:20 -0700 (PDT) Received: from rigel (60-241-107-82.static.tpgi.com.au. [60.241.107.82]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c138fa2sm96107365ad.261.2024.05.14.05.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 05:15:19 -0700 (PDT) Date: Tue, 14 May 2024 20:15:15 +0800 From: Kent Gibson To: Bartosz Golaszewski Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH] gpiolib: cdev: fix uninitialised kfifo Message-ID: <20240514121515.GA72688@rigel> References: <20240510065342.36191-1-warthog618@gmail.com> <171534996897.34114.8159265536879918834.b4-ty@linaro.org> <20240514033656.GA24922@rigel> 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=us-ascii Content-Disposition: inline In-Reply-To: On Tue, May 14, 2024 at 08:56:13AM +0200, Bartosz Golaszewski wrote: > On Tue, 14 May 2024 at 05:37, Kent Gibson wrote: > > > > On Fri, May 10, 2024 at 04:06:16PM +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > > > > On Fri, 10 May 2024 14:53:42 +0800, Kent Gibson wrote: > > > > If a line is requested with debounce, and that results in debouncing > > > > in software, and the line is subsequently reconfigured to enable edge > > > > detection then the allocation of the kfifo to contain edge events is > > > > overlooked. This results in events being written to and read from an > > > > unitialised kfifo. Read events are returned to userspace. > > > > > > > > Initialise the kfifo in the case where the software debounce is > > > > already active. > > > > > > > > [...] > > > > > > Applied, thanks! > > > > > > [1/1] gpiolib: cdev: fix uninitialised kfifo > > > commit: 3c1625fe5a2e0d68cd7b68156f02c1b5de09a161 > > > > > > > I've got a patch series to tidy this up and catch any similar errors > > earlier going forward. > > It is of course based on this patch, but that isn't in gpio/for-next yet. > > How should I proceed? > > > > Cheers, > > Kent. > > Pull in current master into gpio/for-next, apply your series, make > sure it works and then wait until v6.10-rc1 is tagged because I won't > be picking up anything during merge window. > Will do. Thanks, Kent.