Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp472308imm; Fri, 28 Sep 2018 01:25:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61n8MEH9pgVc/RL1oWGaQRZOilXSfuTT3s/k8m91vgiHhraWgEmctPCHXQxUY1ZemvtQ8Dc X-Received: by 2002:a17:902:6689:: with SMTP id e9-v6mr15107758plk.115.1538123110307; Fri, 28 Sep 2018 01:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538123110; cv=none; d=google.com; s=arc-20160816; b=v1Vhvn93ck9IbRy4/URGaB6RELXCaelPX1/+t8PWPQTDt3pruw2AYothJGx3Mkj/It otFrSISUu0ESiCLhClyJsnM9hHozkBBCcSjYinOvqI3FMJ5cNNbRJd1iG0cLQhihWW2f uSvUBkC9WH9TXXl8W6w1W5ZJMdHsaCYUev1RQAVEa9APwxXlBx9ezJSnNnXHwqWzgznI PNqKhGeCdFBepo/OxcMfBzmAnEFaNDMzLibsIFwLMw6HiBWA5v8H7gT4sddQ1lDvMWMD MVAGfOgWPckcZF9bktb0JB+Tzrm5YzwhBNygVWN9bIy4kA6jS/CfSJ7RwLjgvLukc/bd IhIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=sLwrUqmxgR7IfcwsFz3COjC0B3ICMFTUqw/XWXiNVuo=; b=hba8xdNHSUwsGp+20bIPhpV9bJGvXU0M6ejoFDO2fanRtN6pGRuduXE94LtSwF9E8/ kp7gmhaEAL8DJn4LDIiaWK0bCPeJQRTgRtycuJtpqXh5pxWv9PmYvwSCcmRl4tjiaM8W eyWmsrxpqoW8ln+r2twAI8KuhHOqciHy0dF0MWNTx5h0dYxdIcf6M4Iypk05+KNTB1Pa U/s/A+710E/0eWWTkpoz0YCi9lh1TGwUJMI4M6oBHeZvfAbGUOoe9DFAs8p2ha0YHw0o lweWOE7QuO17op5/uUPRhxcCaMY4hs8r4G43GNPomt6F8PfZJY3bV+FKuGSeBg5etTOl 67cw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d66-v6si321815pfc.250.2018.09.28.01.24.54; Fri, 28 Sep 2018 01:25:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729189AbeI1Oqp (ORCPT + 99 others); Fri, 28 Sep 2018 10:46:45 -0400 Received: from mail5.windriver.com ([192.103.53.11]:41904 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbeI1Oqp (ORCPT ); Fri, 28 Sep 2018 10:46:45 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w8S8Mv4j016995 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 28 Sep 2018 01:23:08 -0700 Received: from [128.224.162.216] (128.224.162.216) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 28 Sep 2018 01:22:45 -0700 Subject: Re: [PATCH v2 1/2] printk: Fix panic caused by passing log_buf_len to command line To: Sergey Senozhatsky , Petr Mladek CC: Sergey Senozhatsky , Steven Rostedt , References: <6c354803-5341-7237-9ee3-7882252c7483@windriver.com> <20180919023932.GA14090@jagdpanzerIV> <20180918224312.6e9aef50@vmware.local.home> <1545bc85-b64a-4b45-d40f-79567ac621dc@windriver.com> <20180920123056.27b2cf18@gandalf.local.home> <20180921073753.mqayzofcofpmhiyu@pathway.suse.cz> <20180925120135.GB523@tigerII.localdomain> <20180925122300.qq5w4skwmxbzi6sy@pathway.suse.cz> <20180925133143.GB601@tigerII.localdomain> <20180926110500.vfroi373mookavua@pathway.suse.cz> <20180928073526.GA1160@jagdpanzerIV> From: He Zhe Message-ID: <4c68fc36-ddce-9a5f-e868-ab9135649792@windriver.com> Date: Fri, 28 Sep 2018 16:22:42 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180928073526.GA1160@jagdpanzerIV> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [128.224.162.216] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018年09月28日 15:35, Sergey Senozhatsky wrote: > On (09/26/18 13:05), Petr Mladek wrote: >> First, I would move the check into log_buf_len_update() so that >> we catch the overflow also in other situations. > OK. > >> Second, please, keep only the first line. > OK. > >> It is enough to describe the problem. > OK. > He Zhe, will you pick it up? Yes, I agree, I'll send v3 ASAP. Thanks, Zhe > > -ss >