From patchwork Mon Jun 26 12:13:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 112908 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7440905vqr; Mon, 26 Jun 2023 05:22:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79j7FCPi/PwvZmx4otfB+yL4XLX2RfgyUzHs5OL7cYh/Ndntncoz92W0Osr7o2PSEsReQ4 X-Received: by 2002:a17:90a:9ca:b0:259:24c4:4dd4 with SMTP id 68-20020a17090a09ca00b0025924c44dd4mr17000735pjo.10.1687782132961; Mon, 26 Jun 2023 05:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687782132; cv=none; d=google.com; s=arc-20160816; b=QyxKUvsOpJWbAnEhQh5JmKkca8+Hknbcx3dWk9G193rSlJlofB28xSfNKGbNVRZaPz izuUANG91N/AiPmAC6DzkdWjQthZ5yTUARLpa8c7JOWPlOerBfVhrzLFM9G+YMmq4jBX 6HKpAL1zi9lDJ7atfMcJimENdm85DqWb6b1P1ogZRYpFe5g3p0Wu/HRv0PFm6xg+cKGx Pw8Kqdx8CxuayLBXj6sW+2OeewWNEM5ZP++eTRlhlhfJh1V8uTx3Ii03m/1znrV6rdap 02deIViQH1mwdA8P9lXwP2HMV3C8nmiV+A2hjRVOW+2VYHNdwYVMK8+Lk4d0Nhgy1xCb qOtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:content-transfer-encoding :message-id:subject:cc:to:dkim-signature:dkim-signature:from; bh=aT4Woirb53zn7Qml3iPHfHRgKhD8h7L6FShdJWzQSf8=; fh=6LkEhNBL2mo5Mo+t6yemqdayPsF8SyUW68IBAGIUZAo=; b=ucyE2DPZO47xGvExIoAnVAemFK8BUXfoQd5d4krqMiJ8kkUUsu9MxS4IRe4FLLfVVx OePedFoxUkIpisi1Vmhvidk1f4sjsz3sksb1atejMuYK5oRRmC30/JMUS/t8jK9L9sfp 15qJuvxcD9Ib5tnBq5UFMOPSDFBs1zrJIqCU8izwAcpMq+dG1e4oC+Ym2bHo5P3uQ3yn DkjsfrLct/O2ObMsBNM+REq0oj8LTNagV1q88PS0Ns9ig1UODuQaQhCIhAXBGnKWnnq8 9iEdYF350k3rjov6BVlLbvXRhfK0XXMeGRyV1VwjCO5fshrRLfIBcR3NndMEsGg4O1HW /D3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Bs55uuTT; dkim=neutral (no key) header.i=@linutronix.de header.b=qnZSmCID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a17090a9bca00b0025eae2cef4bsi9017223pjw.1.2023.06.26.05.22.00; Mon, 26 Jun 2023 05:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Bs55uuTT; dkim=neutral (no key) header.i=@linutronix.de header.b=qnZSmCID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230073AbjFZMN5 (ORCPT + 99 others); Mon, 26 Jun 2023 08:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbjFZMNu (ORCPT ); Mon, 26 Jun 2023 08:13:50 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BAE1E52 for ; Mon, 26 Jun 2023 05:13:49 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687781627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aT4Woirb53zn7Qml3iPHfHRgKhD8h7L6FShdJWzQSf8=; b=Bs55uuTTnu74Ov3W4wNMDBdoPn1n8R25Mgv3IsSfpInjiM77uwgIJ8GDuGgDn0l9iWJJJ1 9UzjoZezICdo8gtZOwApaXjQk+jelvkphSiTT17r+05GYCgDbktw7fF+AAuJcYsUpfKQPd BOo9n6vUhQ9SxTpV6qymCGqs+mpKytIIxWSlokO8KQsLHraz3ImwpxIl6q154pXtUduxjN +l1PJ+MZJlj885v9XnIw/vcCM+QanQZdy5P+z4Vbz4l9Dmx7PJHSoBpGCuqUxCff+v0yIn inSfPM9DxR8W82wC3mrY5jmjCKkPR7sKqeq+fNwmkzDns926BZXe7dn9YY76nw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687781627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aT4Woirb53zn7Qml3iPHfHRgKhD8h7L6FShdJWzQSf8=; b=qnZSmCIDXO7w+KoVlzU4xQlX6xX+mcppjSlXMMMDrz5KhBQv+thWTt/RUVIpq8pGE+YiZ8 /fQiuXiN1c0WK4CA== To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, x86@kernel.org Subject: [GIT pull] core/debugobjects for v6.5-rc1 Message-ID: <168778150975.3634408.5562070824299155127.tglx@vps.praguecc.cz> MIME-Version: 1.0 Date: Mon, 26 Jun 2023 14:13:47 +0200 (CEST) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769767837837149669?= X-GMAIL-MSGID: =?utf-8?q?1769767837837149669?= Linus, please pull the latest core/debugobjects branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-debugobjects-2023-06-26 up to: 8b64d420fe24: debugobjects: Recheck debug_objects_enabled before reporting A single update for debug objects: - Recheck whether debug objects is enabled before reporting a problem to avoid spamming the logs with messages which are caused by a concurrent OOM. Thanks, tglx ------------------> Tetsuo Handa (1): debugobjects: Recheck debug_objects_enabled before reporting lib/debugobjects.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 984985c39c9b..a517256a270b 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -498,6 +498,15 @@ static void debug_print_object(struct debug_obj *obj, char *msg) const struct debug_obj_descr *descr = obj->descr; static int limit; + /* + * Don't report if lookup_object_or_alloc() by the current thread + * failed because lookup_object_or_alloc()/debug_objects_oom() by a + * concurrent thread turned off debug_objects_enabled and cleared + * the hash buckets. + */ + if (!debug_objects_enabled) + return; + if (limit < 5 && descr != descr_test) { void *hint = descr->debug_hint ? descr->debug_hint(obj->object) : NULL;