Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2094336pxb; Sat, 19 Feb 2022 02:01:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ+gtEnjkfP6EGqoT+dVl4iWPfZCaYv2tosZJIvIpqYwrtzevy7ufbUTToKE1aDuyH1sWK X-Received: by 2002:a50:9e2e:0:b0:410:d1b6:4d2e with SMTP id z43-20020a509e2e000000b00410d1b64d2emr12101530ede.201.1645264888756; Sat, 19 Feb 2022 02:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645264888; cv=none; d=google.com; s=arc-20160816; b=h2+EYZi9dy+CMXosrF/uRenUeYA7lCc4k8Fnfb4NIxowfKmzJlqWs9xISdXOw8KE9o 6bpJA4/o1dcY1fs4tToY8/R4ctldWKK/WjqRrSNw+9NBKgZ+bEOQbhamjhpJN6dU8+/3 vpxMbfEMTo/DUfEyxxlYFvmcjfTM3cqQlKkgPwWPuX5qcpSAvLK9+mxVwdEP4asmBcxg RDMzWDwB0SUAHXpDYPtcK0eBwWyFy4efaS3XqY4GwRRFY0UfUdl72sT9IWNNsi/EC7Po QVxHFsnyJR0pyJYFlTIhRpuSkCbzO24HvJUYc0wheudoKB4aMSZ4CKFHPIc/13KxgZZV 7blw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=Jgsbfz8Y/mF8/3hlnMGH+G1oowqBeV9TOMMZBpxiUJA=; b=H/uacq3X1V5en4bn7cs8s6syoGVkckPqq0BUw8JB3Ue0Mqo+0DmWk2Tse5PUCP7c0Z KVJe5ocRJkSMDYb2RpFKzqwOn9p+zNuScl6gNJ0kBymUUKfcgqtMBQJa3Ou9MxazPVrG 7jtosgoq1OP5awbEqgGfDJcu6WDgmsUlanehOqxNejPizOdGVz+6TDTITSYRKrwhO1ct DBtEEV7KO4kW00lMaZxtFVzX7DqiUCq0bH5ZnhG5xqfoElGI20WounNnv9/QdWMisGme qQ7NJ4X2lmFt+NI+HRHmZapom7HrlG6lmc0ynCnEc4OO/VwBL8kWk1evaZDH7UalgHEf hGDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id md17si4333144ejb.986.2022.02.19.02.00.42; Sat, 19 Feb 2022 02:01:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241740AbiBSJSx (ORCPT + 99 others); Sat, 19 Feb 2022 04:18:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241764AbiBSJSs (ORCPT ); Sat, 19 Feb 2022 04:18:48 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6EC349698 for ; Sat, 19 Feb 2022 01:18:28 -0800 (PST) Received: from ip4d144895.dynamic.kabel-deutschland.de ([77.20.72.149] helo=[192.168.66.200]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nLLsn-0005R7-1n; Sat, 19 Feb 2022 10:18:25 +0100 Message-ID: Date: Sat, 19 Feb 2022 10:18:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-BW To: Marcel Holtmann , Luiz Augusto von Dentz , Johan Hedberg Cc: linux-bluetooth@vger.kernel.org, Paul Menzel , "David S. Miller" , Jakub Kicinski References: <20220215015938.1950978-1-luiz.dentz@gmail.com> From: Thorsten Leemhuis Subject: Re: [PATCH] Bluetooth: Fix bt_skb_sendmmsg not allocating partial chunks In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1645262308;cbce8504; X-HE-SMSGID: 1nLLsn-0005R7-1n X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org [CCing Johan, Jakub and Dave] Hi Bluetooth maintainers! On 16.02.22 11:26, Marcel Holtmann wrote: > >> Since bt_skb_sendmmsg can be used with the likes of SOCK_STREAM it >> shall return the partial chunks it could allocate instead of freeing >> everything as otherwise it can cause problems like bellow. >> >> Link: https://lore.kernel.org/linux-bluetooth/aa3ee7ac-6c52-3861-1798-3cc1a37f6ebf@molgen.mpg.de/T/#m1f9673e4ab0d55a7dccf87905337ab2e67d689f1 >> Fixes: 81be03e026dc ("Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg") >> Signed-off-by: Luiz Augusto von Dentz >> --- >> include/net/bluetooth/bluetooth.h | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) > > patch has been applied to bluetooth-next tree. Luiz, Marcel, thx for fixing this 5.16 regression and picking the patch up for merging. But I have to wonder: why was this simple fix put into a tree that apparently is meant to only get merged to mainline during the the next merge window? That will mean this regression will bother people (maybe Paul is not the only one that is affected by this) for weeks to come and even make it into 5.17, before it gets fixed for 5.18-rc1. Despite the lack of a "Cc: " tag it likely will get backporting to 5.17.y and 5.16.y afterwards, but the latter soon after will be EOLed anyway. Correct me if I'm wrong, but that afaik is not how the Linux development process is meant to handle such regressions. This approach also contributes to the huge stable and longterm releases after the end of each merge window, which some people see as a problem. I bring this up because there were other regression fixes in the last few weeks that took such a slow path towards mainline. I also checked MAINTAINERS and noticed you even have a tree that could feed fixes like this to Linus via the regular net tree, but apparently you haven't used it in quite a while: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git I rechecked and noticed not a single bluetooth fix was merged between v5.16-rc1..v5.16. I doubt Jakub or Dave are the reason, as they merge fixes from downstream trees every week and send them to Linus shortly after that. So why are things like that? Or is there something wrong with my look on things? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I'm getting a lot of reports on my table. I can only look briefly into most of them and lack knowledge about most of the areas they concern. I thus unfortunately will sometimes get things wrong or miss something important. I hope that's not the case here; if you think it is, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.