Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1613898ybh; Thu, 23 Jul 2020 13:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztxe2D6PN0Hg35BJgwvuj/QxPAlM/54z74+L+ncEfg5grSy55JNqqOUItQRPJ5XWQjKWia X-Received: by 2002:a17:906:f88a:: with SMTP id lg10mr5850072ejb.317.1595535896364; Thu, 23 Jul 2020 13:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595535896; cv=none; d=google.com; s=arc-20160816; b=TNJ0GPL2Fu5yP+fbh7ya9fan0eE8aTgVf/2u4062crmTSyrIPFlDzK7vIlhU+KsCtV hC3/+YL3lwB6o0poa4R1IZWGp3yXALicS5VclbM2fPXK+p8YEjQdhPbxinh31sK4wdu3 QL/Zyya3RK/URVRUefcjlj+x7zyMQvwXQhvwJHavHVDguSRK7RYUOXkA8qgtNtwZSzJ7 PhdYTCeudgu76oDO8dk09ibwS66+1pgchmKNqIkJiXGnlBzQWb2UWJ1/RfZvR+0RHR3j zcYwTq4oerG85aYd1YUPXKrmpgnQxYWCup10o5oWRypu4eZba0Fy6s6jMc9AxyuaUT9G 5lkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OPQGqVX7mpZKPOmHDFbLw6MaXxi0mJcAVB6J/0PTbKw=; b=adqUdjPEhXEUyHTWNML+Olyci4wdRGyct4GYXn1zkK14hNpQkoFZQlehn1U6A6jkTP c2nsCGGn8EJgCxGu98pYvwMGHlG1ah05pqxdTUbcf7YJT3vym4UX4mDtnZu0rrTstTUN ojCW11fYt0CB1Rpvi23xlG+EL6Ogw0lTzhBMx0uvjmelaxl/Zt/IILCdiady1blu2NlI e6ook0NPtKNo1VSR8mwzkl6H7VWCrQQqVj46n6IrmG9yKDb8RH6zT6vJoTDi8jHdbUoX Fo/LLapoOul2Q6bDOtlw9Ctm1GES3pZnnSDF57+i2VosHafJFOYWvf6GBNwbi25/zTcY 9dJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="u16vv/o6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si2597000edu.513.2020.07.23.13.24.34; Thu, 23 Jul 2020 13:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="u16vv/o6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbgGWUVK (ORCPT + 99 others); Thu, 23 Jul 2020 16:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgGWUVK (ORCPT ); Thu, 23 Jul 2020 16:21:10 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC94C0619DC for ; Thu, 23 Jul 2020 13:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=OPQGqVX7mpZKPOmHDFbLw6MaXxi0mJcAVB6J/0PTbKw=; b=u16vv/o6OXUjKP55To9rkix2Q0 eHPw387bJVQj4gAEYDSOA2Qzm17xFwpyGN0nT+cjSowtwJWgi7aGfIZ7PVgZLY5esU2RSetLw0VxK lhbVXl7SfZVmiYkUPSNO1n0etinUOYxplzhFtJrVS/41Sot1Llqc97YfOJXKqnvOF13vSFh+756Gl dHdcFC3P5amyNKijoAdUrB9eqsW9PGc/khFCQFK+3jW/s45tw1ru2r4FJ4Jcfe9MbaxwZkIxuWnPB PGg47IyDDucf/NbHrG0Piv87y+uD5yyvAIDn93ODN9veSWDrnTYh1UmBS+c1YFhXHkg0oSTMeezbF aC9ZtKag==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyhiA-0004LR-2p; Thu, 23 Jul 2020 20:21:02 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E5AC8305E21; Thu, 23 Jul 2020 22:20:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B228D200DD94D; Thu, 23 Jul 2020 22:20:59 +0200 (CEST) Date: Thu, 23 Jul 2020 22:20:59 +0200 From: Peter Zijlstra To: Chris Wilson Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Juri Lelli , Vincent Guittot Subject: Re: [PATCH] sched: Warn if garbage is passed to default_wake_function() Message-ID: <20200723202059.GU10769@hirez.programming.kicks-ass.net> References: <20200723201042.18861-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200723201042.18861-1-chris@chris-wilson.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 09:10:42PM +0100, Chris Wilson wrote: > Since the default_wake_function() passes its flags onto > try_to_wake_up(), warn if those flags collide with internal values. > Given that the supplied flags are garbage, no repair can be done but at > least alert the user to the damage they are causing. > > In the belief that these errors should be picked up during testing, the > warning is only compiled in under CONFIG_SCHED_DEBUG. > > Signed-off-by: Chris Wilson > Cc: Ingo Molnar > Cc: Peter Zijlstra > Cc: Juri Lelli > Cc: Vincent Guittot Thanks!