Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp609482rdb; Tue, 19 Sep 2023 05:28:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGY3eSVsmMFWNGFj5rnejUVMbHyV8bhZKCVxWoFvteFJ9eLRHomXm6+YXgcNKxNK8LxRv/X X-Received: by 2002:a17:902:7d8b:b0:1bb:3979:d467 with SMTP id a11-20020a1709027d8b00b001bb3979d467mr9830370plm.63.1695126521188; Tue, 19 Sep 2023 05:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695126521; cv=none; d=google.com; s=arc-20160816; b=rIQvvQvOeXPp0ZKdR2L0Pc+PnzgYXFLacFYl90tN4k7KuB0LD8N2xIgkbLK6SLTUoK aWvRgyVp6yTyWcITPdmx714akrQBHHkj2AUs4KMpTkywsteg38BNIxrSSl2Z/QKCa4rv QhSz1I7rd6UmtKIe3wli+9+vbKPzYbtA6IMVps/Wg3cqDR1uhzi/L1R9uXejJ3Nq3Gca 4m+t0J3mh2DyVUeeH9EWQaWkhVrRrxxiDj9I8K10/vS7bAeQqAGk16WjdYkVgtHhBlwH oyTYLX76c2Q/IOr5qNUuc/c63CGvxO+yIyqzlKK+RMIrzi3RDv7IDAhiWyUgmZtjGgqA GlCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K7cl88MG2Y1v5NFU8r78g+h9zXI7wnsANxaBl2bLSTs=; fh=29+xW56OebDp6GJedM4RyZI+jSCFE7y+cIaJqkGAz4c=; b=Odg1CaifUbaZr8DLzZrPtdjwVsE2gsP/KJ3yUEatNICbspss5wkpoFswuTj5EA6uUN E8C/F0J9tH7uEhvJXuT//IgOML8BDPaWqScM/uzj/WnyNbUM557GnGD2/cAZDwpCx9as 1XxVdgQ6TEdHU4Q3/Te/QbgeyWMBCIttrzjaSsL+bG99ml80+Gyy+jRidJP91+aR1wFX pVUrtG4RUBDX29gXbA6DpezQZQgHeYJSLjseEegqt3AMe3B8Mg8FbziRQQq/CM5WeoKv arFxe1rR9uaj8a5wjY+9wVjEye4YgyVHAt+7wSPqu5heNFzxmnFQGvl1o1AQW/BT9Tv6 xGqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jlw7oTsZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c5-20020a170902d48500b001bbb8324bd5si9796854plg.479.2023.09.19.05.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 05:28:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jlw7oTsZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BFDBF806C366; Tue, 19 Sep 2023 02:22:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbjISJWl (ORCPT + 99 others); Tue, 19 Sep 2023 05:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbjISJWj (ORCPT ); Tue, 19 Sep 2023 05:22:39 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C867F2; Tue, 19 Sep 2023 02:22:33 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5733aa10291so3510201eaf.3; Tue, 19 Sep 2023 02:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695115352; x=1695720152; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K7cl88MG2Y1v5NFU8r78g+h9zXI7wnsANxaBl2bLSTs=; b=jlw7oTsZ6qBDh4lEUeYrARy8ODBYLi1nFAAqfDAVHkBTeOMV8+g4cYJU5AXIsiEBx2 Zlhk7leVulBydC21U39MXfWhaWIzOk1FZx8vxPAWMWqpQJzlKj7hnfwY7cG2Xo4t0+qd aJv9nFED/dPoSbrtMyMzlTSRKFzy62UjrzQVANeXIpJhS1/QskwjHWdCAqaKAnK0IyYI c4d/yOlA9BTZunZxQBe0lsSrcZHiJzgS+YUl8XhSDC9Tw68D5/qk48L74ohB9wfUWGBi dHEKJN162sMot2jZzKOiSeNoFWJr6dt8uAFWNW+QEhOU0yizpO1V0/pbw9AquuYjMwHR hDlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695115352; x=1695720152; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K7cl88MG2Y1v5NFU8r78g+h9zXI7wnsANxaBl2bLSTs=; b=CSt1x/losjBrrJKZaO5K/ygTcJWKuDmKe/ZDoaXGhUzFJpqygGr2oi4AL7Ztbssnzd 5Q3gDEtiUpnxzhjezHJZ5AknID0/vUFpMjGBpOEuwzd937nojBOB8CrkgRKyV0oItKae MKgE/du3IR+yezyUUaoduhRNMqCyfYPhcYTYm+bPkqEckUMqGP4mMJQKk805CBKFSX91 dauZhcty20orooYPq0Vxoxy9IEob4OA6EA+d8NGS6kvCIGLb4QUOFUGYCyTazKxxSq8W uZJHLGEw6OIyR+EOGNuR2E4LtX4F8MIPTbYuwEFXcMoimpYRvlCIq/tzbCoIxe4ESgOb R72A== X-Gm-Message-State: AOJu0Yyyli7ZR6GY1Guv/IGMUhP0fUbUZOxHoU0JIzY51eHYc3ciTx3z 7UtJcsc7ODz7BbRYIAGM5WQ= X-Received: by 2002:a05:6358:2806:b0:13a:c28f:3cd7 with SMTP id k6-20020a056358280600b0013ac28f3cd7mr13733452rwb.14.1695115352210; Tue, 19 Sep 2023 02:22:32 -0700 (PDT) Received: from pek-lxu-l1.wrs.com ([111.198.228.56]) by smtp.gmail.com with ESMTPSA id q12-20020a638c4c000000b005637030d00csm7829270pgn.30.2023.09.19.02.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:22:31 -0700 (PDT) From: Edward AD To: gregkh@linuxfoundation.org Cc: eadavis@sina.com, jirislaby@kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, syzbot+b5d1f455d385b2c7da3c@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, twuufnxlz@gmail.com Subject: Re: [PATCH] tty: fix memory leak in gsm_activate_mux Date: Tue, 19 Sep 2023 17:22:26 +0800 Message-ID: <20230919092225.3732786-2-twuufnxlz@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <2023091922-unplug-flask-f2e5@gregkh> References: <2023091922-unplug-flask-f2e5@gregkh> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 02:22:55 -0700 (PDT) On Tue, 19 Sep 2023 10:29:08 +0200 Greg KH wrote: > > When the call to gsm_register_devices() fails, we need to reclaim the memory > > requested in gsm_dlci_alloc(). > > > > Fixes: 01aecd917114 ("tty: n_gsm: fix tty registration before control channel open") > > Reported-and-tested-by: syzbot+b5d1f455d385b2c7da3c@syzkaller.appspotmail.com > > Signed-off-by: Edward AD > > Please use your company name/email address, and then just set a manual > "From:" line as the first line in the changelog as the documentation > asks. That's how developers work around their broken corporate email > systems (but really, you should go and poke your IT group to fix it.) This repair was completed in my personal time. Additionally, there may be a possibility of the company's email being thrown away by 'lore.kernel.org'. If you are not very strict with this, I will continue to use my private email. I will only keep one line starting with 'From:' in the patch. Thanks, edward