Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp181488imm; Tue, 18 Sep 2018 19:30:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZhu3SNGnHkBx7g/tE8rCPmbRNBCkE9LKXV+8V4UwFU/ipfBhDQAjXKJF0+6FUshqx7lx9h X-Received: by 2002:a63:1618:: with SMTP id w24-v6mr30864692pgl.43.1537324228460; Tue, 18 Sep 2018 19:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537324228; cv=none; d=google.com; s=arc-20160816; b=efm/LWYW/szmqUMF11zpT2/7Azv0grdDqp8w+uN0lo5poSUmA+4LvaUlcOTNr3G0tH A/YeTK4t6GhPAOW7pg20Aokw4blwJqI5hZxR4usGcDdnW/FjWHpBTop1tDISFPme7nwu AeIApECpT5JgTV3cit1AWGLi1QC/thUOoFwpt+QQqE65+BZ0c1+UXjNqKnZL9+eH+sgY teL0M3W3nbfNWkccHYPSiFbEElS/aO1Yj+DAxMD+iBPMm3pbgZqgb+WDRdF9ET+cjG5y ZlPBApNLj+yf54HL45xNm+N2cokWwYle1U0t32+lVRASnIAmyBGzH9E3kXEUZPwSRWEd IMeA== 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=RDCTSi17wE0sxk916RBt39gf49XS94KRxKthKTv79Jo=; b=FSFvkqDg4A+lnJI+v8xF0i2GP02KbnNzLRRYbpnLO8RgQxX96zlrGZAGmRD+XYXw5u ZDC61c2jqdaYjYdVJfuNCanDbK7lRQ1E6qoGi1X6afS85rmnx79LZyQVQk2owt6ImxMM vhssR0INzvXPPJn+WuGCcAKnmkhZY0LVgeNUqMNzd9DpLrfM9YLJGHS5WRRMwzIK6ety hG1vkSW6o06KTTsQ+rJxAza4y+qxG0D+l61hiiFlLKi913T5UVfze6aDnZ4l3pouTZMK sdUGcG3jm/vhrffnFqpJZZAGpyxj9P0GtqlwRc73R2qMD3KHy2GCwi+aH8Qs/Dz0Dc9O p+fw== 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 x37-v6si21228307pgl.544.2018.09.18.19.30.12; Tue, 18 Sep 2018 19:30:28 -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 S1730796AbeISIEX (ORCPT + 99 others); Wed, 19 Sep 2018 04:04:23 -0400 Received: from mail5.windriver.com ([192.103.53.11]:51382 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730651AbeISIEW (ORCPT ); Wed, 19 Sep 2018 04:04:22 -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 w8J2RLKp025194 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 18 Sep 2018 19:27:48 -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; Tue, 18 Sep 2018 19:27:30 -0700 Subject: Re: [PATCH v2 1/2] printk: Fix panic caused by passing log_buf_len to command line To: Sergey Senozhatsky CC: , , , References: <1537291068-443145-1-git-send-email-zhe.he@windriver.com> <20180919015030.GA423@jagdpanzerIV> From: He Zhe Message-ID: <6c354803-5341-7237-9ee3-7882252c7483@windriver.com> Date: Wed, 19 Sep 2018 10:27:26 +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: <20180919015030.GA423@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月19日 09:50, Sergey Senozhatsky wrote: > On (09/19/18 01:17), zhe.he@windriver.com wrote: >> @@ -1048,7 +1048,14 @@ static void __init log_buf_len_update(unsigned size) >> /* save requested log_buf_len since it's too early to process it */ >> static int __init log_buf_len_setup(char *str) >> { >> - unsigned size = memparse(str, &str); >> + unsigned size; > unsigned int size; This is in v1 but then Steven suggested that it should be split out and only keep the pure fix part here. > >> + if (!str) { >> + pr_err("Config string not provided\n"); > pr_debug() may be? > > It's not clear from this error message which one of the "config strings" > was not provided. Besides, I think "config string" is misleading and in > fact it's a "boot command line parameter". But, dunno, I guess I'd just > drop that print out. I'm OK with dropping it. Anyway it'd get "Malformed early option 'log_buf_len'" from early_param later. I'll send v3. Thank you. Zhe > > Otherwise, > > Acked-by: Sergey Senozhatsky > > -ss >