From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 68D2A83A14 for ; Fri, 19 Jun 2026 22:01:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781906466; cv=none; b=hsycw9e2DX+yru61FCEvp/nySGVcDzhy9kJIS4WrvoP8UG6kk7TfyDHwBrfI9imtykcy5WHenCNnsR0cR87N6R1gJj64bcK4zLsC/8Uxj9eM88RNcfc1YWJ+kIbN/L/bW2mEhdMBmz32m2s59mCwx99o3pAPPmuDAdo3ZDVRRYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781906466; c=relaxed/simple; bh=Ynhfof5EjJ7vt6usoqAPFmyoXPVrsmyAqdnfCdZ2JzQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gyHHv9Jp5iUPUXBEa9KJgjPCFa+yDU+0JphG9Sd5kTycTcboUjPw0LWz/7o1+ml/ndzEpbNwmM5IwepNUoTN7t8eRrJC3dsmvM1to/LJbYRPoeyJJ63NsNQTnYQcJs8+LvLH3zxt913IOPES3UK7kjhMzoRl6evVQAzFYhmfJTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=HX3OeAI1; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="HX3OeAI1" Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65JLmDaX3483299; Fri, 19 Jun 2026 22:00:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=kaqHRp JQndw9z7wGZFL8X2Ni3N0gGYNiiMaWxPkc8vw=; b=HX3OeAI1DYdM7xoJlzUuQY kpOG9nGQF9fJioe8AZbNkL18dwvOTOLAxTZnJEAm3gPBIvlSzbfyzON83JRXnz/K GdDTSgVdHkY5U5EQM2mqldtpnei2z2AOVxCV9x/9aFsx0Y3WFIn6LJ5NBBgi8doU G4qU8AjFAbukqu6h9m3/43gnGHOKgD2tt/o8YCw1Gy+uwLO70L7GTDCRy9X8MYFK ACdYO96StwmGFzeBc8BNjuI/TolOwHY222ji/0hXNWwn/o/3waaNygHnwejhRFkH zBIpru2P+emtnL/RKoef6zSvxg8Wo2i7odnp198Mu8+eJMQV7bj9DYxAzWVsfTig == Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4eueqtytf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jun 2026 22:00:40 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id 65JLnePG007534; Fri, 19 Jun 2026 22:00:39 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4ev172jrqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jun 2026 22:00:38 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 65JM0bgv38797602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jun 2026 22:00:37 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F216C20043; Fri, 19 Jun 2026 22:00:36 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BEBB82004B; Fri, 19 Jun 2026 22:00:34 +0000 (GMT) Received: from Linuxdev (unknown [9.43.77.5]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 19 Jun 2026 22:00:34 +0000 (GMT) From: Madhavan Srinivasan To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Mahesh J Salgaonkar , "Oliver O'Halloran" , Geoff Levand , Thorsten Blum Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: use sysfs_emit{_at} in sysfs show functions Date: Sat, 20 Jun 2026 03:30:16 +0530 Message-ID: <178190618798.653308.13261722398674527580.b4-ty@linux.ibm.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260524130002.793476-2-thorsten.blum@linux.dev> References: <20260524130002.793476-2-thorsten.blum@linux.dev> 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="utf-8" Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-ORIG-GUID: VhOEdsjNStAn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=zgiPjhLxNE0A:10 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-19_05,2026-06-18_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 phishscore=0 spamscore=0 bulkscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606190210 On Sun, 24 May 2026 15:00:03 +0200, Thorsten Blum wrote: > Replace sprintf() with sysfs_emit() and sysfs_emit_at() in sysfs show > functions, which are preferred for formatting sysfs output because they > provide safer bounds checking. > > While the current code only emits strings that fit easily within > PAGE_SIZE, use sysfs_emit() and sysfs_emit_at() to follow secure coding > best practices. > > [...] Applied to powerpc/next. [1/1] powerpc: use sysfs_emit{_at} in sysfs show functions https://git.kernel.org/powerpc/c/ea8b474b5550d353a02f25a5813cb1682509d5e6 cheers