Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp864199rdb; Tue, 19 Sep 2023 12:24:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/aF5GpCb6xg9ntAZ8TYTj1gwITR7Db2bA8FLAf7zNmJD8SGCWedIr/+x+IRwNmOwUa56J X-Received: by 2002:a17:902:d4d0:b0:1c4:636:51ef with SMTP id o16-20020a170902d4d000b001c4063651efmr403002plg.30.1695151474358; Tue, 19 Sep 2023 12:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695151474; cv=none; d=google.com; s=arc-20160816; b=ful78FI9xNb9cz/Gbofh9KPJOi2JY1mSPKlNNr2OxId6sJbGhobJ0HH3/bEaqm1d73 MNKwJ49KTWNF+OLkBN0mXr7Hg458+VRwvPNciaq3xTWSr0j/jTb6A6nzn6wh1/BdbIsS lLLfc6Ok+wEfeebPbkbl+v2Sy65IGwzcKHYNULtY3rLQ2H6XPteyIi8vdK6TXt5SnHsj 0NmHpxMCGfejO5o5gqwzvt2za6VjfZdyjIqCeoeERRQXz9Y+uUdvLBru7p/EBzjTBJBI +wvPIZCSsE0RSvP9pA6lWNpKuwquwnXIDBUBVOCnnLWkxM0Or10+LWL7Fp5VzmKNn1e2 i39A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=hsxnveEmq58UOFKL/qRDJUbMbTtuCKJxbQx3KdGQIuA=; fh=v4Z3N2Htbr8NtGqMLkQjkIE/EbeUcf6lhEWEAm07n3g=; b=0T6IhM0lAtFAmTOUhHvMXGvoJ+6EVplp+jhTqOCMkLu782Ym3Ewj9wvkbvBlR0OUkh NIwsR+YbVD2azwnVXjF85BAvAVGrwV/nh7YFhjd0LLAfOmJKDpj845q1ch6Mt4ZjH/bR tvQnYnNGu7++f+fOR0atDaK0GG30qYDiaNMgDkFeXNqvGnUdVlMxjeGKJJv37P4+8TiX 4ykNdffpjjQM010dErXwGhN54Xjcyn1wXnOpjz6vYnq/68/bOFd4pcZV7VlxfWCWju0D kVeSQiM1Sb/WK+KdyZWOAgr2PiWFYzo/78NBmjjIVV+TI3fBWNNtva6mqsT6cdD1EtWj Jsiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Eum/Nnwo"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ik18-20020a170902ab1200b001c32d285db8si5306316plb.308.2023.09.19.12.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 12:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Eum/Nnwo"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5FDA380213B1; Tue, 19 Sep 2023 12:20:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232516AbjISTUf (ORCPT + 99 others); Tue, 19 Sep 2023 15:20:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232400AbjISTUd (ORCPT ); Tue, 19 Sep 2023 15:20:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2E7F128 for ; Tue, 19 Sep 2023 12:20:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 850D9C43391; Tue, 19 Sep 2023 19:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695151225; bh=DFAVVhQoifkm+qys3f7F+OLxGUywxmB/bcieoPxynTA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Eum/NnwoVACpCxW/eh3NiH/ZlFKpwbZANaAAsL6qSZQQkloS/V+HHwGFSfiLsXT/b Hv5ui2I2mQHHmL3H2lh3ScFCeCQ/gMT7Q1sT4Q/uGi49tVld0iuAOdsevlU2fZ3MS3 353SJZVkpNqy1tQRF+SIQYojcqIVrouzDrLRfrOKmgkRQEjE/NmhLSe9UobHdptQPS FdrRZxrVLI5PRaov1yW+xnGQTA8CidY8CkMvk38U/fcI/59dDrbNLIfwqXL3X907XE rItNXJC6f25IO0ossHGWuA30jdlYwIeQnEvHDJ19sZetIm/hobJv/mD7OKxQtUXI8V BKZupFm7vBCgQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 6E32DE1F671; Tue, 19 Sep 2023 19:20:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH BlueZ] shared/log: Fix not checking vasprintf return From: patchwork-bot+bluetooth@kernel.org Message-Id: <169515122544.29274.10299509749862719582.git-patchwork-notify@kernel.org> Date: Tue, 19 Sep 2023 19:20:25 +0000 References: <20230918212219.190667-1-luiz.dentz@gmail.com> In-Reply-To: <20230918212219.190667-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 12:20:31 -0700 (PDT) Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz : On Mon, 18 Sep 2023 14:22:19 -0700 you wrote: > From: Luiz Augusto von Dentz > > It seems like some implementation of vasprintf set the content of the > str to NULL rather then returning -1 causing the following errors: > > ================================================================= > ==216204==ERROR: AddressSanitizer: attempting free on address which > was not malloc()-ed: 0x55e787722cf0 in thread T0 > #0 0x55e784f75872 in __interceptor_free.part.0 asan_malloc_linux.cpp.o > #1 0x55e7850e55f9 in bt_log_vprintf > /usr/src/debug/bluez-git/bluez-git/src/shared/log.c:154:2 > #2 0x55e78502db18 in monitor_log > /usr/src/debug/bluez-git/bluez-git/src/log.c:40:2 > #3 0x55e78502dab4 in info > /usr/src/debug/bluez-git/bluez-git/src/log.c:52:2 > #4 0x55e78502e314 in __btd_log_init > /usr/src/debug/bluez-git/bluez-git/src/log.c:179:2 > #5 0x55e78502aa63 in main > /usr/src/debug/bluez-git/bluez-git/src/main.c:1388:2 > #6 0x7f1d5fe27ccf (/usr/lib/libc.so.6+0x27ccf) (BuildId: > 316d0d3666387f0e8fb98773f51aa1801027c5ab) > #7 0x7f1d5fe27d89 in __libc_start_main > (/usr/lib/libc.so.6+0x27d89) (BuildId: > 316d0d3666387f0e8fb98773f51aa1801027c5ab) > #8 0x55e784e88084 in _start > (/usr/lib/bluetooth/bluetoothd+0x36084) (BuildId: > 19348ea642303b701c033d773055becb623fe79a) > Address 0x55e787722cf0 is a wild pointer inside of access range of > size 0x000000000001. > SUMMARY: AddressSanitizer: bad-free asan_malloc_linux.cpp.o in > __interceptor_free.part.0 > ==216204==ABORTING > сен 18 13:10:02 archlinux systemd[1]: bluetooth.service: Main process > exited, code=exited, status=1/FAILURE > > [...] Here is the summary with links: - [BlueZ] shared/log: Fix not checking vasprintf return https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=6169001a2b57 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html