Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3271794rdb; Sat, 9 Dec 2023 21:14:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY9pLoysuNXiiCR+zDZJFnIMyfanUvcAo2+rosSpu6W8fJk8hEZZlED7DP+XYHb63CH4a0 X-Received: by 2002:a05:6830:1da3:b0:6d6:4f84:b5cb with SMTP id z3-20020a0568301da300b006d64f84b5cbmr2817133oti.38.1702185295087; Sat, 09 Dec 2023 21:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702185295; cv=none; d=google.com; s=arc-20160816; b=Eo5YhNgSVmxSbZ/S0Xnq/lmLTi8xYv1eVs/xspq0b3iZgmYVaGKVjhJ2gWDbr8Eb3d ynC+b71m40oPFc/f9WlCqtxcsClYVXZMdvIHVJJNjtSIJpuy4tkXdVel+ZnkE3lLCnPP U5uyXCnkfh0gTMFtdx7qRgoZ5AdNuOgpponT2tXVUgyVtSGD/gJdio0QugfiQVfNB5nz 8tHsjvZYh4ZnHuTKn1ah959GKNitayhag4INVz5vA6ayGdEXPEnIREfRG1GD++nV9/Ay Oxp8jPGBlWZuWMPLMIyDwySbUzZgGcxAk7B6/AgQQOBhcwW1He3MU+HD3PxbHj33olb5 XA/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=+8JVAn+vbFktNFt7tOFoDEiuegHhU/cJ407wE36XT7g=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=Era2f3NM4gprnCtL4wGkeDwY05DRaWBe3htXiNc3BIvgvoTfrRBcqwMuGs9g6hQ5rf zZdSMIqwEtNPnWUgX/ekwjcOi2+9xT8CzRnf5Dq0wrtrsg2s2vhftYCzPfFyVf0HlQHx 1i0wIIuGxGtQj7XUMSCKccucjKQiOsWor+qP27DJAXpHMLsWrnKJYKEz8hPCllY7rw68 b2vOJVTZKtYKbc18zbuhgyDzu/gAtZu8cgjT4tbNOJj/RlkYhXhfL9e1lg1MmktmtAI8 7cGi0ua3QkYa3lKcLL4dn1NVMAUHYvSkwq68+Im3jhZrS+vl6E3u5NBsUbJYvMeLg94L xWBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id z23-20020a656657000000b005c6b544c3d0si3953922pgv.534.2023.12.09.21.14.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 21:14:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9770C8062909; Sat, 9 Dec 2023 21:14:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjLJFOZ (ORCPT + 99 others); Sun, 10 Dec 2023 00:14:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjLJFOY (ORCPT ); Sun, 10 Dec 2023 00:14:24 -0500 Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3523F10A for ; Sat, 9 Dec 2023 21:14:31 -0800 (PST) Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-59077a760d7so3595235eaf.0 for ; Sat, 09 Dec 2023 21:14:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702185270; x=1702790070; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+8JVAn+vbFktNFt7tOFoDEiuegHhU/cJ407wE36XT7g=; b=tadCgHDfVZ0tAc923IFiEcRbwMYMb6vq9F1oKnE+bwQxrzE01IRMDup2TXrN5UEtQC IPrBsSMdM/1TrgN8Ty7uOVBZFBkXJEaNX44afAfFaGwrXv8os09M/5WLDDeAAj/TLU3h VuEg6PtsVe1rqVaBT3pgIjqVzWtQNLlOuLCcPPU7uFLTAfNLwfDAif1cn1Hq0ONVMqGH +CRUZiARS4I77QX9ZvvrUEEVtZeG1uAa8pUNvOSwRP2tMJ2Y689eXcLpUWN+eYAi5QqO qZ3FJSFiB0wyCNBNyYWwylNK3kXDSQMgC9RthD9rOXdqd4T9ePaeHPa0bnt5dJBeOAjl I1AA== X-Gm-Message-State: AOJu0YyLzbwSQulf2VCnVWTO+wVgMHgbJF/0X1oHa+8YYE4tCahOYOIS rwFHAe0T87XCQQSLTUjPHrgoNI1oBFLl06kIw5B/6ueqgZE1RAI= MIME-Version: 1.0 X-Received: by 2002:a05:6808:2225:b0:3b9:e8d0:6de5 with SMTP id bd37-20020a056808222500b003b9e8d06de5mr2521420oib.2.1702185270499; Sat, 09 Dec 2023 21:14:30 -0800 (PST) Date: Sat, 09 Dec 2023 21:14:30 -0800 In-Reply-To: <000000000000bfba3a060bf4ffcf@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000063e0d3060c20e4ce@google.com> Subject: Re: [syzbot] [arm-msm?] [net?] memory leak in radix_tree_insert From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Sat, 09 Dec 2023 21:14:52 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [arm-msm?] [net?] memory leak in radix_tree_insert Author: eadavis@qq.com please test memory leak in radix_tree_insert #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33cc938e65a9 diff --git a/net/qrtr/af_qrtr.c b/net/qrtr/af_qrtr.c index 41ece61eb57a..3615a9f35bbb 100644 --- a/net/qrtr/af_qrtr.c +++ b/net/qrtr/af_qrtr.c @@ -267,6 +267,9 @@ static int qrtr_tx_wait(struct qrtr_node *node, int dest_node, int dest_port, /* Never set confirm_rx on non-data packets */ if (type != QRTR_TYPE_DATA) return 0; + printk("dn: %d, dp: %d, %s\n", dest_node, dest_port, type, __func__); + if (dest_node < 0) + return -EINVAL; mutex_lock(&node->qrtr_tx_lock); flow = radix_tree_lookup(&node->qrtr_tx_flow, key);