Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp687428ybb; Wed, 25 Mar 2020 07:45:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vse/Enm9q0hmyeP+MQSgXwXAo6ICy6ORV5uy6URT27s76INb5h/DHXqzVmkVJE77rQZXb38 X-Received: by 2002:aca:bc86:: with SMTP id m128mr2779143oif.11.1585147540133; Wed, 25 Mar 2020 07:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585147540; cv=none; d=google.com; s=arc-20160816; b=fG406hv90lrA0jc3defB6uVOk1ubZPGeVAME+zJJAS5sv8B5uFMOoHQAeSexoKLVM3 qeJOXk99qtNp0B9V5OfRXAnOWS27dlDn3iTVf150o7nvOTLa8KqYDOPH8aXESORE0k3h JFqbOxo4uGLN+jbcyYQDsIKgotAgtMSGipnI7WumRxbXblYC9kV8Ud7jsBcN9xmFylPk 31lhk29BrKvIILY9mKUjUnSwjtgT0RAsBT3pLFbmCAUYjsgsSa9auLX/ql2fhJRzIOMt PgakL+nVSgxWS1TtbWFR2EYozjGg4w2RdUqVWrj9UoMlMN1cR8khE1kJ97TM4E2zO5Pk CgCQ== 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; bh=1wXJURRfaYTpe+TCjojzcV1WjXnlcA0INFVzjy7A9b0=; b=L0Sq95yMMG7RwHhYs2OuOTN5cAQ59h0EkjwlfhiRKEvANGg+aL0O9RfwPQPW4vN872 g+5A+q30DZ2trSWAjeadoCyvH2efibmnIliVhjdcT4n8wxTehdA8w7WziLdfHqitJl2C UcZtwkOpik92UwSMsoCUIFozy4dvcixSistNKPh+5K5maID2wB0USFTMQlqym66VP2Ou 6FiEXPAx9Kg72bahRyPh+mWuEksV7oXoCGsZ1NIELNJxKuTLmbAfWNc3l3u74UqlFlyN FCeba7Yws34cBgheS3bS4RmW9Ben1A7rKGRzFDC1yITcC0kZAlM3DDQi9qCElnui/bGk krjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si11064099oia.194.2020.03.25.07.45.26; Wed, 25 Mar 2020 07:45:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbgCYOpB (ORCPT + 99 others); Wed, 25 Mar 2020 10:45:01 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43882 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727585AbgCYOpB (ORCPT ); Wed, 25 Mar 2020 10:45:01 -0400 Received: by mail-wr1-f67.google.com with SMTP id b2so3399476wrj.10; Wed, 25 Mar 2020 07:44:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1wXJURRfaYTpe+TCjojzcV1WjXnlcA0INFVzjy7A9b0=; b=tSkb9VCEreIr/nKIM7duUF7EOQMl21u7RP0uKEr8YMkVhTaYvqPSaRT0DTYsoCDyT1 4KS5/lLvquxwl6zAM/S+ed9rD+VDS3zzi7WF3yht/jrEc3EizSbeDQ6Hu8N6R1WWADSa NIzLUuy0Y4J2iVYFi3DUbAnTSjBEjIKACnVwOE9OeFmkbIysaegR45+ZmoqtWzYMTqyG d17DlkJY/CPsC4snROqtE+cNZvGkKMSC/iKjVbpaPHbt/TFOy7c7v6pyAJk7/zkuwdUs z7f+bpVfo6JZclm2F+ZcG2lUirSZw/vl0r5Ttcd0x7w/LOFoU0Pk2EnnxU0YoKjoM9R6 RXiw== X-Gm-Message-State: ANhLgQ2C1BFhMeDYMsUSn+gpkfu+T799sAXHCnBNMEzo2o6S0SPLuV3g 847O6bcrM2u9JkhgoZPPow8= X-Received: by 2002:a5d:468c:: with SMTP id u12mr4074403wrq.394.1585147497291; Wed, 25 Mar 2020 07:44:57 -0700 (PDT) Received: from localhost (ip-37-188-135-150.eurotel.cz. [37.188.135.150]) by smtp.gmail.com with ESMTPSA id b82sm9241480wmb.46.2020.03.25.07.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 07:44:56 -0700 (PDT) Date: Wed, 25 Mar 2020 15:44:55 +0100 From: Michal Hocko To: Vlastimil Babka Cc: Luis Chamberlain , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, Ivan Teterevkov , David Rientjes , Matthew Wilcox , "Eric W . Biederman" , "Guilherme G . Piccoli" Subject: Re: [RFC v2 2/2] kernel/sysctl: support handling command line aliases Message-ID: <20200325144455.GE19542@dhcp22.suse.cz> References: <20200325120345.12946-1-vbabka@suse.cz> <20200325120345.12946-2-vbabka@suse.cz> <20200325142936.GC19542@dhcp22.suse.cz> <52faea3b-6442-3b1b-9404-6a018d1d1c44@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52faea3b-6442-3b1b-9404-6a018d1d1c44@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 25-03-20 15:36:23, Vlastimil Babka wrote: > On 3/25/20 3:29 PM, Michal Hocko wrote: > > Both patches look really great to me. I haven't really checked all the > > details but from a quick glance they both seem ok. > > Thanks. > > > I would just add a small clarification here. Unless I am mistaken > > early_param is called earlier than it would be now. But that shouldn't > > cause any problems because the underlying implementation is just a noop > > for backward compatibility. > > Yeah, indeed worth noting somewhere explicitly. The conversion can't be done > blindly, one has to consider whether the delay compared to early_param can be a > disadvantage or not. For example the nmi_watchdog parameter is probably best > left as it is? I wouldn't mind moving nmi_watchdog timeout initialization to later. If there is a usecase to rely on an early initialization then the patch can be reverted but I struggle to think of anything reasonable. If the early init code needs a lonter timeout to prevent from false positives then there is clearly a bug to be better fixed. And a necessary shorter timeout sounds quite exotic to me TBH. -- Michal Hocko SUSE Labs