Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp520340imu; Tue, 27 Nov 2018 02:12:30 -0800 (PST) X-Google-Smtp-Source: AJdET5c3bt7x52+F2RCvkB6nzC5Cnh7LeUCFo5R6vOF1qxHozrWToJfV9CmMhB8fCsFug/PfPMg3 X-Received: by 2002:a62:c583:: with SMTP id j125mr32561990pfg.37.1543313550112; Tue, 27 Nov 2018 02:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543313550; cv=none; d=google.com; s=arc-20160816; b=JmZMHWLN7Jvh/qfVUpXuhmKeQesLa3GkDPFVJV32AJA84c8cUrNZ6TRrRCYUbwgN50 7r9H0GJEXxqH5gdr5ZTNriNET3L+6HIzuz+3J5tCVGUiKpDF9CSeeFaRyJHFCV3OQTUQ 6X08G6eFYDgBmJOkdExLAGYp/J4NkrgBsPWRezgphzfeVyWS++MawIdyDai7MQIXCbZt RyEyV/pwHkSTnE42HkNleGv4GJ4gHVg9/SRjtDfHGjtju5b+txC12XpxW4WoIkRvDkrp XkC2K6l2Os2MtNDkvvsD/QygvUP/qjbnDEQgu4JdYwRBxuHxp15qI4PIxoJy6SchhwVm asNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zrP/NJTM9F3AM0/+n+q2JHAk74Fth2vYvBrleAOSW2w=; b=QDR0cy7j87I9JIPk082l17bAwRyOMCtiQPKYT6jSUK6jz3t4+vqtB14pRoFbAtVlUt I8tby/7++AxhuOuln2PZgDFr6Zh0DLbpMTFq4iM9SMlbn5GNeitm5Q0O2TDViS2bnR54 F8yKO8EB4zqfyS07zUgKxj8sOttobnFnprpE89fuTU/el5gb7SPyCxJkKngQSjFEQ2sq v42g2zy0AB8cmK8UhlBo8sUAl5cUCdR6Dhv5vE04VUotdoHrAXhz/dfkspeCmbtiR79i Kg8u9CkNE/BeRZ++Cp85Trz9d6ArppELAW3hyx+emct61ZuxWxuwyfuYDVjGNNlwIPzT zvaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W9mOuB7B; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si3300499pgj.20.2018.11.27.02.12.14; Tue, 27 Nov 2018 02:12:30 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=W9mOuB7B; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730466AbeK0VJC (ORCPT + 99 others); Tue, 27 Nov 2018 16:09:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:57518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730295AbeK0VJC (ORCPT ); Tue, 27 Nov 2018 16:09:02 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2CEA92086B; Tue, 27 Nov 2018 10:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543313498; bh=JNdGem/T1QP+a7tc9O9rXdoxyYdSyHTwkHvh2tp3FNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W9mOuB7BocF2/gthMGEcFGdJimAwMmdS2purhkp7yu6c+lEmpVHKPmnj2yvzX70aX o5HTa4wcWUlAdRtZftZ/+/dnO7bgtJeEDBna7OiI2Ou3q/2wmIwf0TxsBYJoNqHdfM YnSeg8tj6cq/migdAtn+I8/mIrogiV8RdY3SNrFo= Date: Tue, 27 Nov 2018 11:11:35 +0100 From: Greg KH To: Mark Tomlinson Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] tty/sysrq: Do not call sync directly from sysrq_do_reset() Message-ID: <20181127101135.GA15856@kroah.com> References: <20181126205723.14478-1-mark.tomlinson@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126205723.14478-1-mark.tomlinson@alliedtelesis.co.nz> User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 09:57:23AM +1300, Mark Tomlinson wrote: > sysrq_do_reset() is called in softirq context, so it cannot call > sync() directly. Instead, call orderly_reboot(), which creates a work > item to run /sbin/reboot, or do emergency_sync and restart if the > command fails. > > Signed-off-by: Mark Tomlinson > --- > drivers/tty/sysrq.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c > index ad1ee5d01b53..f2ca32c1ad7c 100644 > --- a/drivers/tty/sysrq.c > +++ b/drivers/tty/sysrq.c > @@ -660,8 +660,7 @@ static void sysrq_do_reset(struct timer_list *t) > > state->reset_requested = true; > > - ksys_sync(); > - kernel_restart(NULL); > + orderly_reboot(); Is this something new? Why haven't we had reports of this failing in the past? Or has something changed recently to cause this to now be needed? thanks, greg k-h