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 2D094346E4E for ; Fri, 1 May 2026 09:21:37 +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=1777627297; cv=none; b=h96UzH/QM8WZRx0+sDDkoSar6irhKwjNEEPoi7tOnDDh5+ppm8Vvd7VhhMdsqdos+CxO5xVABt5hBlfNaMhcdf9COqb8ONA7ktV5ubbcWD8sgXVFNwfOXWQSqn4V9Zsx1fRLOTybSku462admPtq7jOJ8eZoxAnatJQashDWhY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777627297; c=relaxed/simple; bh=lMC+kpZw/2RJgEnQyvz4PN3ubFQfYc0AOWnhN3RshTo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=aeRJyCXBXkbr6e6UStRQMuaB8j0qcuQpsk6diTZIfYI0l7y3w8xGeMjq/UfeCk3gGPCI757d0QRAmxCvPaZO/xSoVukPCdJxluQJNf4JHMxuTeWf8SH0d9pfM4zAy5zExO+AbLMyxHtE9y/tQNjt0zcT3EUSeIj0FW5kgjcUih0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bbu773Fb; 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="Bbu773Fb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88083C2BCB4; Fri, 1 May 2026 09:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777627296; bh=lMC+kpZw/2RJgEnQyvz4PN3ubFQfYc0AOWnhN3RshTo=; h=Subject:To:Cc:From:Date:From; b=Bbu773FbNRx04wQ+RbbtrztKTc/y2jG1/IKpoR+L832WuaH9lbbohbIWmge0xHO99 /ddfnoyjueBOHiCDOF4X8swv+l8MaoP4Hc9eTWgBp/X+h5QPeVnBF+SEnIq8xuGaHk Jya3QSATR9FTM+o7Cw61/5EfAUYZqmvAZz+Kchj4= Subject: FAILED: patch "[PATCH] media: rc: ttusbir: respect DMA coherency rules" failed to apply to 6.1-stable tree To: oneukum@suse.com,hverkuil+cisco@kernel.org,sean@mess.org Cc: From: Date: Fri, 01 May 2026 11:21:22 +0200 Message-ID: <2026050122-stellar-unreeling-b4be@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=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-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.1.y git checkout FETCH_HEAD git cherry-pick -x 50acaad3d202c064779db8dc3d010007347f59c7 # git commit -s git send-email --to '' --in-reply-to '2026050122-stellar-unreeling-b4be@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 50acaad3d202c064779db8dc3d010007347f59c7 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 11 Feb 2026 19:11:04 +0100 Subject: [PATCH] media: rc: ttusbir: respect DMA coherency rules Buffers must not share a cache line with other data structures. Allocate separately. Fixes: 0938069fa0897 ("[media] rc: Add support for the TechnoTrend USB IR Receiver") Cc: stable@vger.kernel.org Signed-off-by: Oliver Neukum Signed-off-by: Sean Young Signed-off-by: Hans Verkuil diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c index a2a64a860264..3848ad3a6b85 100644 --- a/drivers/media/rc/ttusbir.c +++ b/drivers/media/rc/ttusbir.c @@ -32,7 +32,7 @@ struct ttusbir { struct led_classdev led; struct urb *bulk_urb; - uint8_t bulk_buffer[5]; + u8 *bulk_buffer; int bulk_out_endp, iso_in_endp; bool led_on, is_led_on; atomic_t led_complete; @@ -186,13 +186,16 @@ static int ttusbir_probe(struct usb_interface *intf, struct rc_dev *rc; int i, j, ret; int altsetting = -1; + u8 *buffer; tt = kzalloc_obj(*tt); + buffer = kzalloc(5, GFP_KERNEL); rc = rc_allocate_device(RC_DRIVER_IR_RAW); - if (!tt || !rc) { + if (!tt || !rc || buffer) { ret = -ENOMEM; goto out; } + tt->bulk_buffer = buffer; /* find the correct alt setting */ for (i = 0; i < intf->num_altsetting && altsetting == -1; i++) { @@ -281,8 +284,8 @@ static int ttusbir_probe(struct usb_interface *intf, tt->bulk_buffer[3] = 0x01; usb_fill_bulk_urb(tt->bulk_urb, tt->udev, usb_sndbulkpipe(tt->udev, - tt->bulk_out_endp), tt->bulk_buffer, sizeof(tt->bulk_buffer), - ttusbir_bulk_complete, tt); + tt->bulk_out_endp), tt->bulk_buffer, 5, + ttusbir_bulk_complete, tt); tt->led.name = "ttusbir:green:power"; tt->led.default_trigger = "rc-feedback"; @@ -350,6 +353,7 @@ static int ttusbir_probe(struct usb_interface *intf, kfree(tt); } rc_free_device(rc); + kfree(buffer); return ret; } @@ -373,6 +377,7 @@ static void ttusbir_disconnect(struct usb_interface *intf) usb_kill_urb(tt->bulk_urb); usb_free_urb(tt->bulk_urb); rc_free_device(tt->rc); + kfree(tt->bulk_buffer); usb_set_intfdata(intf, NULL); kfree(tt); }