From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 5171A2FB0BA for ; Tue, 9 Dec 2025 14:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765291021; cv=none; b=YJjyBWmQMRZUUwhc2CBxqUCfaP1i5xQWiE75HaM+82aTFe2YdBJRZdtk/Z32H9kZ+zTOTbRVWagUzYu9+rHMl3hUwY78axXRxFxsYnDcOQekvOLJ3cO+YBDH8wNgnd1T4+uCMUykzP3/yC2IVdJfpOi+P0rH4iYMVpLwgE29Pbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765291021; c=relaxed/simple; bh=gigxiRC9Oq3Iz7xLQZNdO17IWGA0WTGkm82otVibpcI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=HojhuhzjTQquw1UvdNw2x2vITbYYsSY8mZbRp2kquBQc+uhwRuzxS42qrXKQV6RzxVYQIhD4IGQRwhrKsn6K7b5GJhBcoTYu7BV271XI+LOcQ1ctbQocR6xf38i6gv8B8rOmdWhBcccDaKMloNYQcMoNOMBl6Fpf5oJxTi6eb8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gqEL6Cvv; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gqEL6Cvv" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-477619f8ae5so44761755e9.3 for ; Tue, 09 Dec 2025 06:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1765291018; x=1765895818; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=rF4ekYwyUag3aCgdAzfcA4onkO96QC5ua20zsVNEtp4=; b=gqEL6Cvv6RABi2UThj1wtEeWpgtF+dF3Gx5NAQp4rBiPC3TI/H7QTxZtyB63dmaUVi /hTBbEJmakp4JLRMJFzOoduzL6hOEU2h2rQiy2mLbZq9YYoXL/HkiF0+rqgjnctIqAKD /A2y9cqZ3vu8fzLHgDLo2eMvp3YfxK23e9AH5mD5TfHM90u/8qoB99I53kSerjnsHOVa mOf/NmME2CN62XY7ZA8Hw38gRCnYl8+1smyGBzrOP3Jeu4Z9z8CNR14psh4wRgLIyqi8 eVbwVc+8Fn2PNVCLvez+Yn2iQsLCGzASQ628wYFt/ubCwY40AwtpzSn0gqNdgr+I60Z9 p0pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765291018; x=1765895818; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rF4ekYwyUag3aCgdAzfcA4onkO96QC5ua20zsVNEtp4=; b=bMKRlYsGVUlpZwq+lP3QkXr7yLRVphgEU6UlRhdeXiHwQYgkWq62asC/3Vl4ZR0HkP ObtTubT1WnewEwuEvCysir4smg5dZ3RTYDbRLABg6E1kldPcuNElfKiHPi7TCvBBQPbl tx7SUKqGOfQDiKalx117F4rOc20asxj6NYS+gyWC26DkqmeqrJ/XMCBbaDbhhMeJtxXA Blm4OeekcKwN7R4HPF7sB0cmGuepjYAnDROMLATlrj11VHjW3BVikn/LO3nBWBI960VB GcStej00Kh7Yti7ZTShxz+uPNhjg8W/9xcpOjN//qvmRpRMOI23orfei8Q40/vPwm9v0 IE/Q== X-Forwarded-Encrypted: i=1; AJvYcCXVW3skAw7I8+OHdwXznNnpkeDcb3oyWhTobjPrWuSrTXhunTiwLxd8V7ZTyoZOJy8ztJzIqvyAt5luils=@vger.kernel.org X-Gm-Message-State: AOJu0Yz/Ggus17kydTREtBNNb7mItNLXr+LXyH/ik10qFO4zNmNdKnus jgSRmU2n39TV9uDy6F8H8Yn/nwbQ1ozXxlqBarYrz8s4oH2XTN0xoVX5jFE/FcS+GhQ= X-Gm-Gg: ASbGnct2XARKfKMzLNi4DUWQnsrbpOyfeL8ERTjYYrjbGrGzxN+fs845VDgnJIlenga 5Kgf+eGrF4u+nkBqY9u8Is2LXWwIQXhYZxvg15sXYUP5MQ6Z7a9pS4EhPBDyvAhIM2OHlQmUvKL 2XtoqG5dHs7AGagymYHaA0k5f/Aj0OoSu8KjTv7olkBwb+HMOiTjgXcnHlUu4v/sr0rd/trzrVQ hmfZlHR33+9fJ05dqSUldSf6GlaCuYeGjtylHDWS7yj7le7s/4nH8YCLS4i+OffAq3jN4qO0nCz ICmz27OwW4noVgQQFXT6kEpf7O1GVnFdEQHFTr0ypbxHQfQ+xlDbMgWSrRaRoHlbo8wE+bZf8Bq k6vkVdCrS8qECZ1Mk41xNT3I82RTV9JB7BeFIvaFuvS7RDVBwv9mf4HKg2JHGpf7acpbGFj3Rsi 45WHKD641ZOpa2TiI3 X-Google-Smtp-Source: AGHT+IGOd46f0YmeidNlJHtP2zOoYmP4I2ymnUChshe1Rk+Ep1tSUOIHbWUkmtX4JCEiTrSuge7Wcg== X-Received: by 2002:a05:600c:620f:b0:477:994b:dbb8 with SMTP id 5b1f17b1804b1-47939df6abcmr102888945e9.11.1765291017620; Tue, 09 Dec 2025 06:36:57 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47a7d696a57sm42856645e9.13.2025.12.09.06.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Dec 2025 06:36:57 -0800 (PST) Date: Tue, 9 Dec 2025 17:36:53 +0300 From: Dan Carpenter To: Mauro Carvalho Chehab Cc: Aristeu Rozanski , Borislav Petkov , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck Subject: [PATCH v2 0/2] EDAC/ i5000, i5400: fix snprintf limit Message-ID: 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 These fixes don't affect runtime since the buffer is large enough but the size limits used for snprintf() limits aren't caculated correct. Changes since v1: * Fix i5000 as well. * Fix the subject * Delete some related dead code Dan Carpenter (2): EDAC/i5000: Fix snprintf() size calculation in calculate_dimm_size() EDAC/i5400: Fix snprintf() limit calculation in calculate_dimm_size() drivers/edac/i5000_edac.c | 1 + drivers/edac/i5400_edac.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.51.0