From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (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 7A9FE547053 for ; Thu, 15 Oct 2026 00:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792024891; cv=none; b=ZCgU9I5cQTXuwURhweBlofVbgOhxByUabfw+j3pi3KBd6bIA8DL8MRJ+NqxZxRfmKRanjuwE9pEvg95pW0/afn4fxEWFJ9GI3R7t40b/bYmtIW4DT21jt8Co4b6NSpzm3RGgYoSiYpAZlpDwXXkvuIF5rMWP8Y7YG3a+Y2vFlDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792024891; c=relaxed/simple; bh=x2bEOdgUloxAb1N3O3+8rBHIrKFC9lz/f3MKyYXYJwU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=PoepeIhBJUWgDSfRhdKBvRf+AAHdm9DmSRbMDZWhw0IAO3yqJimnQYX5AGINIfanRnUUwDn3vrJGE+V/t4/Dv0BYqgRj4BbTIsxcjNozdtzojpCaY6wy+5UR07nW3NHsGSqo028LklO9/x2ENAa7IYs1VvKD79JRYLR/JUBGcGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--stanleyjhu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=j4R834sx; arc=none smtp.client-ip=209.85.215.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--stanleyjhu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="j4R834sx" Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cc4fc935a11so1159637a12.0 for ; Wed, 14 Oct 2026 17:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1792024890; x=1792629690; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=x2bEOdgUloxAb1N3O3+8rBHIrKFC9lz/f3MKyYXYJwU=; b=j4R834sxf7I/lMqQn2UO8Xd3R09h6TUtazePU+7N2sjaazrWcIWL0BekQHSXaKieyu FaHEazQj/il4vQtC6m3iL3zuiC5XEThFdCewwvTNzME8Gc8myV/CfYGmMCsHooNZTSTH 4kJWw9Zj8FG0RaSqykjjuc0LwfMyWa0t2JnMh7n/LN6Qb+XNlWUdrLITjHHCCtKxh5p9 HJaLf1f3XfJixSvzJAPIFOW6q6cD8XxFSr4dfvFvCoV55RLl5h7TOKP/kxulnR2qVAXp dJ9YT6B9aASFZty++OxS5p4gaehifaI4eTpTLaW5eCS/wnA/wB7e7fy1dZXlqnOhbswt ZbaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792024890; x=1792629690; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=x2bEOdgUloxAb1N3O3+8rBHIrKFC9lz/f3MKyYXYJwU=; b=wknl9M/RbXx84cnRdFmenf8QqSLqRWbZNNhQY1FsHR92u2hwMh+KrFGG4Lk0v0K3Kv 5ONbkE2S03sW2IvbzRAZIypDiK6KCno2osX5eaQXB7D4M88HtMSpIis+bRQ6gvnXm3QL NIOUHav7oWD4ICQ7v/nKEv/naDTz1ZjfJtfcjrB9xE8TjMPFyWHEr1orhhyEdXIvfc1U tv7Z2VBgREgCpxxMl6om7Ww5MP/b+I2WqLOHSSRVd8Yk+Ngkl63mEu1Kn51uOQp7BnRk Uf/bDrFAgC5PG4LotcnZH1KHCbY7tm+JHjCga6U7d7UMOUoWcSxkX5/wblT9hUEGn2Kg cdBg== X-Forwarded-Encrypted: i=1; AKwUvBy0gmCjcYUIReOV3vxpTdnSEhFBO+zQYd95gp34dsBacbUPWBQkHM8X1ClOFIjLqH7sCY2em4TQ/lkHLrA=@vger.kernel.org X-Gm-Message-State: AFq9FYK3RxS37xwJvkJNg1t5UlZaLZRqn2GgUJk0PTLlPGupSPJjYmWq 2YgIjgsJ6DbPGbXzxqnwSDNmOuyZlfERzlJ0MfhRIS3KNc90F3kIiox21ku9UtG5NrwTKdb9uPS zoUamNoY1Ln9+av67POzIKg== X-Received: from pfbfn25.prod.google.com ([2002:a05:6a00:2fd9:b0:89e:11cd:a9bc]) (user=stanleyjhu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:4185:b0:890:a3ed:8a49 with SMTP id d2e1a72fcca58-897c7cd481emr15442585b3a.51.1792024889687; Wed, 14 Oct 2026 17:41:29 -0700 (PDT) Date: Thu, 15 Oct 2026 08:41:28 +0800 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.56.0.385.gd3acb90ef8-goog Message-ID: <20261015004128.3503693-1-stanleyjhu@google.com> Subject: Re: [PATCH v2 2/5] scsi: ufs: bsg: Clear the reply buffer before use From: Stanley Jhu To: "Martin K. Petersen" , "James E.J. Bottomley" Cc: Alim Akhtar , Bart Van Assche , Bean Huo , Peter Wang , Brian Kao , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, Oct 15, 2026 at 12:34:36AM +0000, sashiko-bot@kernel.org wrote: > Will this copy write 64 bytes starting at offset 40, exceeding the 96-byte > allocation by 8 bytes and corrupting out-of-bounds memory? Pre-existing; fixed separately in bsg-lib, which sizes the reply buffer to 104 bytes for UFS: https://lore.kernel.org/all/20261013132708.1669415-1-stanleyjhu@google.com/