From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 DAEBA32AAA0 for ; Mon, 3 Aug 2026 11:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785757420; cv=none; b=kuYzThpExjTsuFWt/RgO/9kt+eqWTPuyvU4iz2jBbOi0V2na9JMd/8cHyxpi64tHtmLBYnj6XGETFbIndCtrLb8+gATok7eBMVdxOEcOt6lLKHjriYoJ3i0fAepg6GtSRTBUItA6KKdTGEw7RREneI7cAf1XhOgVYbRK6mXTt2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785757420; c=relaxed/simple; bh=IntWzB387OWn4r5rh/8SxA6CeJkdQHKtYR95rft7l8w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gdTf01EdDwYQuWmteQGSE2NtW1COXFUJ4+HWix3puDHL/RLsnTvidDsDXJ2wfnD1d8UG0N+1jVvoCinkgWZLifw6atsWnM9Dcc2A/+bNtQW8gePDycN57AXzIvr3g2uaGAwMuNz2Yi/V/twPWWoK48pEFZg6lmjTNFn0gowQj/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=MRbRsm6P; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=G96iBLRz; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="MRbRsm6P"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="G96iBLRz" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 673BS5uk4123748 for ; Mon, 3 Aug 2026 11:43:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=DwuRmJRzblWZ/IuCSw0cNDpitbmnPsx6ct9 TcHgDl90=; b=MRbRsm6PLXAxgJNz9NpOgj96khFam/6VX1MWQYLu3o0o0tADqpd Lli2/yj/lbLD1bOjOWexUY1cAZ8mypi/dpht+FHwJNGa3OtZNuKL8+AwFzexjguf nmBIM0RlgKIMmHkwgXvk3pMjd255/e2SFcq0aMCs44TINZTyJSnUB8qnPp41D3o7 Lgrm8hcf32ZQEZEHKny/E1Xv6Xf42cDnQ/0k9yPE6jC8gRCGYLAk8tsB0FFd0flI 2RaLlT2h6tec4HfgFGNraSh/+anGrsuRZVlWsMAyqjIT9klGqPVBoXGZb3Whqirv WSMuAeJSgM7wn/VTd0pORVjCcX39J16v8CQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ftp1697fp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 03 Aug 2026 11:43:38 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2cc7e86e7c5so64875615ad.3 for ; Mon, 03 Aug 2026 04:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785757417; x=1786362217; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=DwuRmJRzblWZ/IuCSw0cNDpitbmnPsx6ct9TcHgDl90=; b=G96iBLRz21shN2bOxa4H4alDAxe+W1/4kkATp3LQZ8vsgVoPUBJDJnTU9c8LrS8in9 Y7L8FTyP151j60iWI/8gj94p2xyJnknPZPqflPw97OQflU4tsPVbH2vzfnC5wFZWjGaC x5lhHFN37gvF9LEhFV53JWsSK254sGBYcCQAsd9CKL4NWiFUx1u3JX1aBb3gHQidHwXp 9MQ8jr5Uci2XzfX4Mm67rqaBsJB6L+KWNrNv3ke8hFGdpvbdC/PV57ZUggorb8c/qY04 Tu/83s1FZ4dp2t0aKiavGg+NrfF91qGiwGZvawYCsHRVQ53Zd5wdY3HLfUQHYRhXnTH4 Pyfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785757417; x=1786362217; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=DwuRmJRzblWZ/IuCSw0cNDpitbmnPsx6ct9TcHgDl90=; b=P8Vi8LL2BskJraUjtxtZqzsuVc2YnkuynD7lF+b6NadiubwMj46RkJ0eY4MOy+CgX6 F8cWxeCjeNA8neLAMyrLTeuBF6tD1G05FX2zIi5wE/EdpgelBgkC7a5hMiG0x+hYgEct 03kQXXROKSEAJVTwuqepNC3LY7QPyyf5q6SROSIntx+zXA90wbl/epqLinGaq7nYaglZ 8JDcXyHTXpBs/bpwUMI07wxytKCik/vou+vUi2iuCFlw3u7L+94aAE/qkPHyZHkScyyD tw6Nx4OCdFa30i6LMM9DKU6YIBcr2axL1GQs177jHepgxiPCy7Yu2pz91HDrRTW+g3rj RF7w== X-Gm-Message-State: AOJu0YxdsT0cnQg0As9ZYH19wSBPlN6EugQrtfvrLnmJElORS50eG4t4 /rilzOsfY+Pz34g0EEgwHAyY/D8CREPw+tCBjWPFe7rsgVok26tmsN8itLMAYeYNlKuAT0/PVtz mPZOk9HQUaq3ZJucr5g8S2gtcGY+gM3boAxEfv48razZqZu03fHMe3ZCGPp3GgN7WDCQ= X-Gm-Gg: AR+sD10sYunMsr10FV3QrKXmIocjfwhimy4Sw9Qi3EaamofbYZSsCiXUf+qHU5vwChu s/AEgykv1aHudyg4rg70BQkHGnZuuLAbcNYI3sGYUVSVd2eiK/ZUfXiq17O1EdAMCEhVRgFQ/1m kGkMxetmAQGFsRDX5CGt3mkHfcfCxNKhVHYc6GrhaaQU0m+voyMPcW5dVxe849QzmH/pA5UDnkX Q7v30Trr4u9OmV4O1KKceGu/1R1EfGVIxhn/UBMSQ762E5C+J4WYyIjPMu/HD2fiwMfoCjebJyK nO6p/XX5ZNxNuytqDOA9Jky4d39zsJ7sn5SKo7NRO78akrN1QVLyUOFjnbBe6VvFD3NxyFEpY6g yLipEuWfhvGpbBeIFi9PTXzY1pxQ= X-Received: by 2002:a17:903:2c0c:b0:2cc:1452:a014 with SMTP id d9443c01a7336-2d0521deff8mr88859535ad.18.1785757417361; Mon, 03 Aug 2026 04:43:37 -0700 (PDT) X-Received: by 2002:a17:903:2c0c:b0:2cc:1452:a014 with SMTP id d9443c01a7336-2d0521deff8mr88859225ad.18.1785757416564; Mon, 03 Aug 2026 04:43:36 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2d04b0ea83fsm37110735ad.45.2026.08.03.04.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2026 04:43:36 -0700 (PDT) From: Mukesh Ojha To: Bjorn Andersson , Mathieu Poirier Cc: linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Mukesh Ojha Subject: [PATCH v3 0/5] remoteproc: Misc. RSC table changes Date: Mon, 3 Aug 2026 17:13:26 +0530 Message-ID: <20260803114331.3277263-1-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODAzMDEwNSBTYWx0ZWRfX4kJA4lb54pyQ RpAqiSd3MX3+EkOur3oqzGcDim47UbrdAR2kZUzsGdRNVblRiY+BkIRo/YRgO5c2KFjL0KrZb2e rd0whv28UcPvC+pzyM3ow7HW2SMHbd+bAHx9ebateDC36AljhD2FCBCvntedBHVkXpqyX0XiMbG EChxzW+Z4+BkcdjQVf/1pzCGNxvc6K9gLzvY5F6iYPI0s1JRLfHLjoCPG1SYSDO73th/LjYYoeI QRF5XQqS9b8tnqFNnOoJHIDXfyTXkI/NjFoOMdaP1aQCwYTO3bIjYRSFBWKBajRH85KU0AJo51v 6Xwuix1KvW2kR0OZBdqd0RCg+TLPexktpjBXgd6zq4/tGwPj0bsiGQCcIKtiAmhyMWOr2rj/iH8 om5hz8BLHSzI1MlWMJt2QUuvVU7amCqNAbP414Z63tgkYlKmeWrcIdV25W7LRsiDoGnBdHmA6rd 7toCfui+Wq+M3u+iAnQ== X-Authority-Analysis: v=2.4 cv=Wpob99fv c=1 sm=1 tr=0 ts=6a707eea cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=dZbOZ2KzAAAA:8 a=CyG9taIBJdoUgHtrk0MA:9 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwODAzMDEwNSBTYWx0ZWRfXyYbbIBaJRLZc bvKCh9HICTqB7xxQMX2qmDJbM3/ujgQtGv0g3/e4m1DsIYo4g2Y0bAm4QAX5AMFpvZcuRd+yXdt zQoOF83keo2I3126UKqVbsO9zwDYie8= X-Proofpoint-ORIG-GUID: _fDRqiZfTG7-3tkAB82MjmwiLqV49fr1 X-Proofpoint-GUID: _fDRqiZfTG7-3tkAB82MjmwiLqV49fr1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-02_06,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 impostorscore=0 spamscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608030105 This series contains a mix of header hygiene and a security fix for rsc_table_for_each_entry(). Patch 1 adds rsc_table.h to the REMOTEPROC MAINTAINERS entry, which was missing since the header was split out from remoteproc.h. Patches 2-4 clean up remoteproc.h and rsc_table.h: a checkpatch style fix for function pointer alignment and two SPDX-License-Identifier conversions replacing the verbose BSD-3-Clause blurb. Patch 5 fixes an out-of-bounds read in rsc_table_for_each_entry(). table->offset[i] is a u32 from firmware, but was stored as a signed int. A crafted offset like 0xFFFFFFF0 interpreted as -16 placed hdr 16 bytes before the table, and the subsequent avail check was silently bypassed because the negative int promoted to a large size_t. The fix stores the offset as u32 and validates it with unsigned comparisons before any pointer arithmetic. Changes in v3: - Patches 3, 4: Per Bjorn's review, replace the BSD blurb entirely rather than adding the SPDX tag alongside it; preserve the copyright lines in a separate comment block. - Patches 1, 2, 5: unchanged from v2. - Link to v2: https://lore.kernel.org/lkml/20260724184132.1878077-1-mukesh.ojha@oss.qualcomm.com/ Changes in v2: - Rebased it on next-20260723 - Integrated multiple singleton into this series. 1/5 was part of https://lore.kernel.org/lkml/20260506050107.1985033-6-mukesh.ojha@oss.qualcomm.com/ 2/5 to 4/5 was here https://lore.kernel.org/lkml/20260611180550.2442641-1-mukesh.ojha@oss.qualcomm.com/ 5/5 was reported as a part of https://lore.kernel.org/lkml/tencent_53F3322FDEB2E45D6412C427B8D1C6081407@qq.com/ Mukesh Ojha (5): MAINTAINERS: add rsc_table.h to remoteproc entry remoteproc: fix coding style issues in remoteproc.h remoteproc: replace BSD blurb with SPDX identifier in remoteproc.h remoteproc: replace BSD blurb with SPDX identifier in rsc_table.h remoteproc: fix OOB read via signed offset in rsc_table_for_each_entry() MAINTAINERS | 1 + include/linux/remoteproc.h | 38 +++++-------------------------- include/linux/rsc_table.h | 46 ++++++++++---------------------------- 3 files changed, 18 insertions(+), 67 deletions(-) -- 2.53.0