Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp472080ybg; Fri, 18 Oct 2019 02:40:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOgx/6zHq4XEFjCXnVxF1hIGKep5h0rT/6gG3sXpxx62Rp5zsLCXBMU+K/sihezRywv6r4 X-Received: by 2002:a17:906:3e41:: with SMTP id t1mr7900862eji.103.1571391638429; Fri, 18 Oct 2019 02:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571391638; cv=none; d=google.com; s=arc-20160816; b=xTURtr0UenqibyoBDkoi2kD4dEkP3o6FQ7MomZkaicFXBXi7XUSnc0taU3N8WaAGln qaJKJUBqtxHPtWOlTdD9+zUDD98vbDahAisErOrONZWldTfFzoon/k/wd2THqr+ie5Oz DApJfANk2OFcdYcY54iM6OWSWD0RV/8T95k6Ey7Q05UoXYlbJXlGxIUIbWhGnZ7941Fi tZMFbXW0n/t9j4/ZzHvcl3YoBpgDMO03HggkAKjeTX2RsxvI9zzA/vCa6xlDF6xEkYs2 Z4gKllBAZdIGyAcmORBm9YEREx1GeBSnHkFOD36haD5uM++qOcmrlTnn0YanMnSNsX38 43IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FGz8qdq3Dw0gukgZrVxUVyXcJ/Gcz/OyEL/XFXnvkAM=; b=J5FlvrXaI/J2lltrUX1/Ffi3LEc9wHR8CGjFxhx8q25McXi1YqxkHwAgyeZM9wrMSQ 9P9gpb4ajswzNyB47evbHtsaTI3ID5uiY9sQnOrd079McgxRRqO1U1hTKqDbTqK7HuZV 04nv4XvTLMlFvTI08Qi2tKDjLa90mhGz5f9WiH9Q6ogJa9Jm4d8t832QP1615SqzfG0x eQKOJejRJb0eJGbRTsAOEMtBElkw/mYyl6yqb0ib8SeuC0o1Cq4LeapL3t1ePE6xEgZg PARj4DYiq/sawmXr3jDUjuuH2dwr7bO1MhJ9QVsv7IyVSutPol+To2tsqNe43JbmkZdW PMCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=n5JWF3tD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7si3533104edd.290.2019.10.18.02.39.50; Fri, 18 Oct 2019 02:40:38 -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; dkim=pass header.i=@chromium.org header.s=google header.b=n5JWF3tD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407729AbfJQELs (ORCPT + 99 others); Thu, 17 Oct 2019 00:11:48 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:36577 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407691AbfJQELr (ORCPT ); Thu, 17 Oct 2019 00:11:47 -0400 Received: by mail-il1-f196.google.com with SMTP id z2so694304ilb.3 for ; Wed, 16 Oct 2019 21:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FGz8qdq3Dw0gukgZrVxUVyXcJ/Gcz/OyEL/XFXnvkAM=; b=n5JWF3tD5Zg82bv6F8WCxSx1usc2qiyNCST0oWBdk5ZCXPwJe1l9NiLuV8BZsTP9Dt vko5Ctem7pHxv5Xy40Tq8+MVub/ziVVcY6A4zCTyE2Vs9TsVvdxvmRsizv3q8zxa7wiT HVpKaMEu/ZsfFkT1JMtp6PGVYh2dKLDuirimI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FGz8qdq3Dw0gukgZrVxUVyXcJ/Gcz/OyEL/XFXnvkAM=; b=c8y65fMfLiVB85LRSCLBvLJNzIfr11dSpMSKmkAqB/mLM7ZVBG7zdSMslMzE0p3gsq uuyMbUjTpRBBnzvKr4+xekh8HwVDmYeZiAWR1706PxTD9l4Jqaudeuq+0Q8Z3DX/P1f3 xuPy1SgTojw5zYDGHgLMbWIppzbYBqZdJuNUcuL0VucRObEzeLzgQNfQASAIcyjNqWEh 2IkctgyejRPhPky0WPG0qaIJtF70hA63U39pZ2MeaKiZ4jysyUUbnUWV7D/N7HhjfEn8 czM4cDZGKQr1VC4VxppRUjDrCUpFSAYJQsrKj9vz4dt5CpbxG2vNbLEJCi+B7pw+Dww6 TiUg== X-Gm-Message-State: APjAAAUj0BCAgPWxRIvy3qdcRwpo46BLDGhaifIIWxMMXjOg0aoAND2+ +h4x+pl6xJVZqJFSzdsyuJVilLvCTJw= X-Received: by 2002:a92:d392:: with SMTP id o18mr1504745ilo.256.1571285505441; Wed, 16 Oct 2019 21:11:45 -0700 (PDT) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com. [209.85.166.174]) by smtp.gmail.com with ESMTPSA id z20sm339233iof.38.2019.10.16.21.11.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2019 21:11:45 -0700 (PDT) Received: by mail-il1-f174.google.com with SMTP id z10so672123ilo.8 for ; Wed, 16 Oct 2019 21:11:44 -0700 (PDT) X-Received: by 2002:a92:d652:: with SMTP id x18mr1434259ilp.58.1571285504656; Wed, 16 Oct 2019 21:11:44 -0700 (PDT) MIME-Version: 1.0 References: <20191014154626.351-1-daniel.thompson@linaro.org> <20191014154626.351-5-daniel.thompson@linaro.org> In-Reply-To: <20191014154626.351-5-daniel.thompson@linaro.org> From: Doug Anderson Date: Wed, 16 Oct 2019 21:11:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 4/5] kdb: Improve handling of characters from different input sources To: Daniel Thompson Cc: Jason Wessel , kgdb-bugreport@lists.sourceforge.net, LKML , Patch Tracking Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Oct 14, 2019 at 8:46 AM Daniel Thompson wrote: > > Currently if an escape timer is interrupted by a character from a > different input source then the new character is discarded and the > function returns '\e' (which will be discarded by the level above). > It is hard to see why this would ever be the desired behaviour. > Fix this to return the new character rather than the '\e'. > > This is a bigger refactor than might be expected because the new > character needs to go through escape sequence detection. > > Signed-off-by: Daniel Thompson > --- > kernel/debug/kdb/kdb_io.c | 39 +++++++++++++++++++-------------------- > 1 file changed, 19 insertions(+), 20 deletions(-) Reviewed-by: Douglas Anderson