Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2124399rwa; Mon, 22 Aug 2022 02:31:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6CZ91F+PSxhYCuy3QU84fy4onxG8VgtaVoM66FZWudHY3yvPeJRPwMQGZT/4TJHouoU5Vm X-Received: by 2002:a65:6d13:0:b0:41d:b593:e5ab with SMTP id bf19-20020a656d13000000b0041db593e5abmr15995717pgb.467.1661160717979; Mon, 22 Aug 2022 02:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661160717; cv=none; d=google.com; s=arc-20160816; b=1DvZ237frx5yfdlouBpF7l4dUoQGw6xOaWwLPQv/4Q16vAb6doJF1C6tIi9CUg93ig 2vbBhfExwAprDjZbB6hi3S/xcBUYED7WJlCX5RCBSOgR8TpRTWg7ZRFhn26leeVmP5/x ZHE05JGWw3IpusdgbY5F6U+RH9Om+JIs9haNBucxKbJPgHawpoR3Xci2855Lv0BtWHa5 QP2sy0vUhIxPZKKkV75zxWgrd0k2EmF9F26WHLK7zU+QGfEswGj2ChLuBzBZR/S+Hhu7 GV12Gbd5lUhx0zHtxzwTLQIaj0dQOKDF5bZdx3smaKzkn7BRvA08mGpey0MByXxET9OO YelQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=VcbvCJQ1zOc64Py1K/gbGV3Y6GJOOhSUWGI7rx6TWww=; b=kJoSayuubpE4m06CeWeUyHcFCFbsLBnU2xto9oJP6Zsg9pnewN8woNOIyE6XzXdcuR /celbf3VGyIaBTwjiY1NbvFir0rx9peatusNEp2fSBusdmVYNStv90OcOv8x4HsXjLg3 43XHkjyMLIeDi6JF/81XIRym+5JDV8qAE6A4C1snMb3pCKRzJPxzz4VTYkyA8p4j1uUE 4sBYD2ILVVFEROS7P2UVTYfwO8F4Vdz6KrwgfWTZ+rO0PmUBBQ89vFgJI7pPkzfSVbdi COd68RkO6iN6HHOCvTj35pEPEcw9koCnu144eaQ6QqpJSU1DQAkps3GAvSVEfQQupK8+ CHMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ER9unaPf; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=pxebau4p; 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=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h70-20020a638349000000b0042ad06b9a60si610327pge.286.2022.08.22.02.31.47; Mon, 22 Aug 2022 02:31:57 -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=@suse.de header.s=susede2_rsa header.b=ER9unaPf; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=pxebau4p; 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=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233525AbiHVIkq (ORCPT + 99 others); Mon, 22 Aug 2022 04:40:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233728AbiHVIk1 (ORCPT ); Mon, 22 Aug 2022 04:40:27 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E2172CE08; Mon, 22 Aug 2022 01:40:27 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D610F3409E; Mon, 22 Aug 2022 08:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661157625; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VcbvCJQ1zOc64Py1K/gbGV3Y6GJOOhSUWGI7rx6TWww=; b=ER9unaPf2hCEbRjHPDyTECb5vRi26FhhiGjg9bwvnzF+/0XCprkC8OBBhFJFMtwWj68Xtj 1m/Ax427gI//N003gKJD5Ojq4PEsF/RPchJSxVxb81mm03xXrVWIiDxqVXd+dH21I31QcY IUdg4ZtD4i10l+Gf1w4Oj42sRq/lgiY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661157625; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VcbvCJQ1zOc64Py1K/gbGV3Y6GJOOhSUWGI7rx6TWww=; b=pxebau4ppmaoquiGchCiweeVSANLj6ZznuTd4F5MvyGMIFQzGy3xND1GIvbjLtLY1zbG6Y DceKPjfysbZd4KBw== Received: from suse.de (mgorman.udp.ovpn2.nue.suse.de [10.163.43.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 9AC6A2C142; Mon, 22 Aug 2022 08:40:23 +0000 (UTC) Date: Mon, 22 Aug 2022 09:40:19 +0100 From: Mel Gorman To: Ingo Molnar Cc: Linus Torvalds , David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org, Andrew Morton , Greg Kroah-Hartman , Axel Rasmussen , Peter Xu , Hugh Dickins , Andrea Arcangeli , Matthew Wilcox , Vlastimil Babka , John Hubbard , Jason Gunthorpe , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt Subject: Re: [PATCH v2] sched/all: Change all BUG_ON() instances in the scheduler to WARN_ON_ONCE() Message-ID: <20220822084019.wcezy5dyy5slg4k7@suse.de> References: <20220808073232.8808-1-david@redhat.com> <1a48d71d-41ee-bf39-80d2-0102f4fe9ccb@redhat.com> <20220815144143.zjsiamw5y22bvgki@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: 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 On Sun, Aug 21, 2022 at 01:28:58PM +0200, Ingo Molnar wrote: > > * Mel Gorman wrote: > > > For the rest, I didn't see obvious recovery paths that would allow the > > system to run predictably. Any of them firing will have unpredictable > > consequences (e.g. move_queued_task firing would be fun if it was a > > per-cpu kthread). Depending on which warning triggers, the remaining life > > of the system may be very short but maybe long enough to be logged even > > if system locks up shortly afterwards. > > Correct. I'd prefer to keep all these warnings 'simple' - i.e. no attempted > recovery & control flow, unless we ever expect these to trigger. > I generally hope we never expect a warning to trigger until of course it does :P > I.e. instead of adding a 'goto' I'd prefer if we removed most of the ones > you highlighted. But wanted to keep this first patch simple. > The only one I would push back on is claming cpupri_find_fitness() so it does not access outside the bounds of an array after a warning triggers. For the rest, I've no strong objection to recovering given the nature of the BUGs you are converting. If any of them *did* trigger, it would be more important to fix the issue than recover the warning. So other than the out-of-bounds array access which I'd like to see clamped just in case; Acked-by: Mel Gorman -- Mel Gorman SUSE Labs