From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02CB618035 for ; Mon, 12 May 2025 10:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747044914; cv=none; b=Obw1CB+U6Z2eAh+m5x2A4kQqeBJnS+aaR5GT/NK38kYOvOdIN2NXLHdoKrkRqQ27HzjBRG/RKxlP3D0GGsuW15zQUuixiKcX2S1z8CtZQcQmqR4IyDw/XpJFGf3knuXZLCJjLEO6LKlNRWETN8Dc+TV94H1V+oO5CCtSFr1WSj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747044914; c=relaxed/simple; bh=stF5Xzjo/MVDp1cVbK3o3w04hG3Y+sR0uHSCI9k0gZ4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=jfFK9xGkvuBneIjXtSeZKHTciV5gTg8uST+0A3kRRchVCTxrL95i2ozfpl6//alQ6H/sGHMN2Zl2yNFrsvot1i/y05EMvwRcCcy9YZ3RR+LyzaFzTWX1gxRbgK/KEzeuuTaAp+MCLXb0F+XSH42HbFn2v9l63YHkFLxPniOYHD0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Kb0IbQYN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Kb0IbQYN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E54FFC4CEE7; Mon, 12 May 2025 10:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747044913; bh=stF5Xzjo/MVDp1cVbK3o3w04hG3Y+sR0uHSCI9k0gZ4=; h=Subject:To:Cc:From:Date:From; b=Kb0IbQYNpECMIFwEqaQhonr2v/Bh0TdV4H367f3peOMjUwtInuvRJXeJ9/i/cODw/ tNlS41KSAIw7e8AGpadmVUh8W3kwCaKjWfpSuLD7Yah7U1A/TKYK1uJ3k2zqiBPnQl iXdHLy/5d8NKigZSkqzCLGbxL6AS3wzau4re3Xwg= Subject: FAILED: patch "[PATCH] iio: adc: ad7768-1: Fix insufficient alignment of timestamp." failed to apply to 6.6-stable tree To: Jonathan.Cameron@huawei.com,Stable@vger.kernel.org,dlechner@baylibre.com,nuno.sa@analog.com Cc: From: Date: Mon, 12 May 2025 12:15:04 +0200 Message-ID: <2025051204-seclusion-marigold-ffe0@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x ffbc26bc91c1f1eb3dcf5d8776e74cbae21ee13a # git commit -s git send-email --to '' --in-reply-to '2025051204-seclusion-marigold-ffe0@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ffbc26bc91c1f1eb3dcf5d8776e74cbae21ee13a Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Sun, 13 Apr 2025 11:34:25 +0100 Subject: [PATCH] iio: adc: ad7768-1: Fix insufficient alignment of timestamp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On architectures where an s64 is not 64-bit aligned, this may result insufficient alignment of the timestamp and the structure being too small. Use aligned_s64 to force the alignment. Fixes: a1caeebab07e ("iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()") # aligned_s64 newer Reported-by: David Lechner Reviewed-by: Nuno Sá Reviewed-by: David Lechner Link: https://patch.msgid.link/20250413103443.2420727-3-jic23@kernel.org Cc: Signed-off-by: Jonathan Cameron diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 5a863005aca6..5e0be36af0c5 100644 --- a/drivers/iio/adc/ad7768-1.c +++ b/drivers/iio/adc/ad7768-1.c @@ -168,7 +168,7 @@ struct ad7768_state { union { struct { __be32 chan; - s64 timestamp; + aligned_s64 timestamp; } scan; __be32 d32; u8 d8[2];