Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp408046ybh; Sat, 18 Jul 2020 07:43:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMUhklE2N5cnF1gTAgfX+CmMzPSz/+6TrmGwZyawgUbiflD/4QaI0PwfKLmo/O38/1jfbY X-Received: by 2002:a17:906:9354:: with SMTP id p20mr12784320ejw.187.1595083412140; Sat, 18 Jul 2020 07:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595083412; cv=none; d=google.com; s=arc-20160816; b=utNdhRj/WFEmtr3b9+ZDZaSYQrIcjFrb3zZQLCww6VvF11fmshUXReqVau+iDQu0mX ZWgKGMSg/WJoFIIcPuudAOwvccSiT5ciN150tGeQKgDderB8gu8lthHombaf/OCgylPP wLuHuYAL8VuX7jvO95ZbRo/KT325e8J8JUvzWM6QPJ86Wv64/iIFfwEdejqCjuKG38ux 5usHKkey+rn9S0KIXIiBQngJPHX39ZuIrWC0miNG4CWv5IXjeZQLMQcA/NYIDIC9T1nA 27ZZuryI90gdG0IDoZYsRntkSv8boWUQ46ozd5D4JYDPs7Bm55YpoRYtm4kGhL9Neyzy rpXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=robvEvPfTGacPLLxfjqEcu14s1gI/E9Po46qbTLNH9U=; b=HbQ35tpMiKGgy1jYcivVBMCZIxD2c9yFZKY8+U+ocPbbwi+XGeyawOBOW8wQteRe78 8f7dQpPkyO6xepldKjiR1BldvzUszCzrsEXiAbFNo8LzhZPKT5Z+fSkXtTKyoxqjXdCn YwWamqT4yYIEw/ux0htfHslc/Rr9nUlfujwiMz6H57nLQhxrdIMRjE6yMqR7OCuNWRNX OQHLaqfMLTX2z3uUO18SMnyrNNAOlz/VuKU4P5NuLzgjlYCtjnBfIstuB9Kc2dIcoFsz Ix068HCU2gXKqELmTsOv3EK3R0kRA9cs6bm208zd0mzfrDBxH54fMLUobvLEs8o4TMxG Aj2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f4c+55hW; dkim=neutral (no key) header.i=@vger.kernel.org header.b=HygpJuHR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt23si7038308edb.545.2020.07.18.07.43.09; Sat, 18 Jul 2020 07:43:32 -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=pass header.i=@linutronix.de header.s=2020 header.b=f4c+55hW; dkim=neutral (no key) header.i=@vger.kernel.org header.b=HygpJuHR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727867AbgGROnA (ORCPT + 99 others); Sat, 18 Jul 2020 10:43:00 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47370 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbgGROm7 (ORCPT ); Sat, 18 Jul 2020 10:42:59 -0400 From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595083377; h=from:from:reply-to:subject:subject: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=robvEvPfTGacPLLxfjqEcu14s1gI/E9Po46qbTLNH9U=; b=f4c+55hWWUCG3ELBCMrjgWLE2gsZhHBDVa/JvAlkChgE2cV8SZer9ivxhUTMz53HiVDUyZ vQxr02bZojUUNnLGyj5yDINRDU0AuoxkBkNh7s+x9YqeaEIjN2yyzcBniVqKjA4/H3OTg4 G7bOjhEAIl6yopkDvxGkh7ejY1LoGMNlK6ugEmtdDUS8m71nsZ2QwZGURU3BgbaXEOB/q3 7/vtwA7ecPr7TgEfyDe5XLK2VEvuGD+koJff8GRSuDfroDr8H/OOfxLi7WzgKkT3u5LbQ6 DBBDWq+nXG069WVNdnVRpNTQYgIrpaee5qEjvRY7g5xhjHaOPAagrndMxAAvOA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595083377; h=from:from:reply-to:subject:subject: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=robvEvPfTGacPLLxfjqEcu14s1gI/E9Po46qbTLNH9U=; b=HygpJuHRIGXxBEU/34gMJCGzgTpx8GS6bRIRReV1UJ/TVLQ+RV5oSW53bVibyTWZqwS9DH 7Cls6AERIWr8EPAA== To: Linus Torvalds Cc: Petr Mladek , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Peter Zijlstra , Thomas Gleixner , kexec@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling In-Reply-To: References: <20200717234818.8622-1-john.ogness@linutronix.de> Date: Sat, 18 Jul 2020 16:48:55 +0206 Message-ID: <87blkcanps.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-17, Linus Torvalds wrote: > Make sure you test the case of "fast concurrent readers". The last > time we did things like this, it was a disaster, because a concurrent > reader would see and return the _incomplete_ line, and the next entry > was still being generated on another CPU. > > The reader would then decide to return that incomplete line, because > it had something. > > And while in theory this could then be handled properly in user space, > in practice it wasn't. So you'd see a lot of logging tools that would > then report all those continuations as separate log events. > > Which is the whole point of LOG_CONT - for that *not* to happen. I expect this is handled correctly since the reader is not given any parts until a full line is ready, but I will put more focus on testing this to make sure. Thanks for the regression and testing tips. > So this is just a heads-up that I will not pull something that breaks > LOG_CONT because it thinks "user space can handle it". No. User space > does not handle it, and we need to handle it for the user. Understood. Petr and Sergey are also strict about this. We are making a serious effort to avoid breaking things for userspace. John Ogness