Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3372530rdg; Tue, 17 Oct 2023 12:34:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAuelHBqm7L/y2SJnVB23b3oh6z8KCiYjWNu7AWzR0PhiGF3YPETcEsUAFmgLTfzmplu7H X-Received: by 2002:a05:6871:520b:b0:1e9:e97e:24e5 with SMTP id ht11-20020a056871520b00b001e9e97e24e5mr3630675oac.20.1697571247240; Tue, 17 Oct 2023 12:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697571247; cv=none; d=google.com; s=arc-20160816; b=YE85jlypBWXqg4TfvbCLF+TiL8iCxdJ6DrWcl5cWIlAx5c9h+7d8V5NHJz4wVYCTNP xY0itvD2F0xpr9teqEWG1RYb85q4y234eVpsbbghwy0cJh8ojxCQcyrSSJVkLxZfzQt0 gPHqmBwnaP68NRmVa2T9lzpfIkaVgiZRhPAsZRrlwI+4jCuPX9All3eAoOVf/grkpB3T 2ynQBuYp+v7oGnYX0ajaQ26qamced7CHAS8pQATYoXXWU/ScC1OjYqi2yW3v5zQHAjha jsbF+8GCqASUNIgpq0SwdGbl1ziaXdK2VBo+tp/qQPDoSTGRGO3OYDz8uGZ0tOUm5zYG WoAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=rtuiyt/r+HBuK0UWbhcYtY7fy++2EasB4f2A0MuSK5o=; fh=/Zn8VNAAlu7X6srmaHvFdkWzpA+ej50ejfLicyXdv1w=; b=GLWgm9HuqyrQGI8v8u4xQzkuLPMaQUtAMiM6Fst34D2rJ+DJMQjbY4yOSoI0xQerO3 4+VeadTrJVXsBy0e/LIbMwyZvBm6LEaax6HVUZpg03B4MbXZlMTqV9Zqqr0o8EmzhJxD kqFRm1oOO+2mUWiTgR8DrX0jXSk2Vz+K/ArbwFAm41m62oNDl9bu23Wdaepms+6ivXW3 0By60KDJQlyiZiHB9dqmsT6b34Sc74/dOo6MQRDk68iEN0OCnjCWlothgbr4JDlsls+I /YqA8UPddILMG5xBF7PI2QIH8dXoG5zJY6gGDOzg4HzpLKiRfW1pQWIsXgh2V5ebyh6Z Tt7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i23-20020a633c57000000b0058a09ed5ca2si461021pgn.313.2023.10.17.12.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C7350801B997; Tue, 17 Oct 2023 12:34:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344316AbjJQTd7 (ORCPT + 99 others); Tue, 17 Oct 2023 15:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343507AbjJQTdv (ORCPT ); Tue, 17 Oct 2023 15:33:51 -0400 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EADA98; Tue, 17 Oct 2023 12:33:50 -0700 (PDT) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1c5c91bec75so40838025ad.3; Tue, 17 Oct 2023 12:33:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697571230; x=1698176030; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rtuiyt/r+HBuK0UWbhcYtY7fy++2EasB4f2A0MuSK5o=; b=hoXI7QAvWnlCGsbOcnaeAJQUUoIAfJBDnMHJnH2D6N9zXS/sw2j3KfwfOEO5hUf+94 4kB6vC9j3UKQFXMclnpxXYQ5+4lV5r6rt7xT25Fvby2TJPrK2toDEXj2GYAOb0pOCU/L kwkAYLB/wFfRTy7WYGya16oLDnXMLGX9skcnEuZgi7spxtaVMqkJLKCuQc130syDWWLg IVdwY/iCOi0y2uQAJCAS8hgX0asxp5Zx+y/eNH944XOl5rohcCYF7k2zlgjgS0nMaj6i ZYUcaSLnlgM7PyCGSRmFO1RtnCioGjmyi76y4O363wxD7HuzUOzjelG9pD2Ic8Bj/WO8 ldUA== X-Gm-Message-State: AOJu0Yz0QDVHwtmwpUSDOKMeRkhig5sDTbCwJeDyWpKbcT9QDgnLjR1z tLJfR4cwkIrLWPwUI2LC6mI= X-Received: by 2002:a17:902:f683:b0:1c3:eb95:2d27 with SMTP id l3-20020a170902f68300b001c3eb952d27mr3564646plg.48.1697571229870; Tue, 17 Oct 2023 12:33:49 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:8f02:2919:9600:ac09? ([2620:15c:211:201:8f02:2919:9600:ac09]) by smtp.gmail.com with ESMTPSA id iy18-20020a170903131200b001bc6e6069a6sm1971007plb.122.2023.10.17.12.33.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Oct 2023 12:33:49 -0700 (PDT) Message-ID: <52a248fc-465e-4050-8692-5105b6aaa764@acm.org> Date: Tue, 17 Oct 2023 12:33:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: ufs: Leave space for '\0' in utf8 desc string Content-Language: en-US To: Avri Altman , Daniel Mentz , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: Tomas Winkler , "Martin K . Petersen" , Mars Cheng , Yen-lin Lai References: <20231017182026.2141163-1-danielmentz@google.com> From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 12:34:03 -0700 (PDT) On 10/17/23 12:20, Avri Altman wrote: >> Fixes: 4b828fe156a6 ("scsi: ufs: revamp string descriptor reading") > I think this code goes back to commit b573d484e4ff (scsi: ufs: add support to read device and string descriptors) Hmm ... it seems to me that there was no buffer overflow in commit b573d484e4ff but that the buffer overflow was introduced by commit 4b828fe156a6? Thanks, Bart.