Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp497449pxt; Thu, 5 Aug 2021 05:02:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylbwvrxJnv4s4Z8+s3VlkPnd+2HBf3MeB3860CPJxCVwz/QP2DgaNe4nk6EDiiK58ND55V X-Received: by 2002:a5d:914b:: with SMTP id y11mr53805ioq.6.1628164932295; Thu, 05 Aug 2021 05:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628164932; cv=none; d=google.com; s=arc-20160816; b=OSu6xos1HcKNKFWIHkzYyCF1MkSCyQ3wigXwZk6VxdfqYRhLg8SPH8Px1SBCxybANt 1D1gMZBVuW2K0LmhvWjEjD0luGw71uEQhqbDAqOQ3KqFx89PaeKbQakyAsWoyElU1j8D JInx2+WvNe4DU9BdOpMOeR7Njx3OWbw5uqmZYAni9tTdZUVwByMxeF6e58JDDBapsZtN sP7PfLEqo2KLdN922phy8hFMgrxAcwjtCb+ti4lKkwTN8/CVeicfQB1dMmNl+Cu7tN0Z drVbem78MbO4VVzQxISKiUPYdR6/l+EikDODGp8ErKnCiLl73w4saBrBW9h7XwlREoYJ Rm+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=D5PzgBdueNq11nvA0Fpbccpw4Zlp6Vl/jPkVSpyyXI8=; b=oyqxr76rz916/k2yndIeqplw/8QD51NLSYidxPfV2pPpgKwYX2PblakmHwOQJy8nct khOzYfudjn4U8mGcpXFNA3kjzOrLLdjRN1YbLiBoEZhrh9ylFmUhu556ILAFBDy43HCO W6AJWQ/X0RXMI96ZXJZKWX8vPt9nbN7LKslCp63zAKXhKFeEyOMtZLjZtr3Akb9Yel21 MiS/aMT+afVpEhvAIY1aGNSdCsvaZjuivgnurLB/QuLrcd9VutupMTKzoh60a3r+tRuJ gZEDCimczDUFSqcsj1YOuxLXuAKsgavvrEI9raaPHm1ipL9RyuQesnEBhete8Ul2LJV9 zODQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si6033123jat.64.2021.08.05.05.01.59; Thu, 05 Aug 2021 05:02:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235812AbhHEIYP (ORCPT + 99 others); Thu, 5 Aug 2021 04:24:15 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:49782 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237942AbhHEIYO (ORCPT ); Thu, 5 Aug 2021 04:24:14 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R531e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Ui1Bj73_1628151838; Received: from B-LB6YLVDL-0141.local(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0Ui1Bj73_1628151838) by smtp.aliyun-inc.com(127.0.0.1); Thu, 05 Aug 2021 16:23:58 +0800 Subject: Re: [PATCH v3 1/2] tty: hvc: pass DMA capable memory to put_chars() To: Greg KH Cc: Jiri Slaby , amit@kernel.org, arnd@arndb.de, osandov@fb.com, linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20210804025453.93543-1-xianting.tian@linux.alibaba.com> <0f26a1c3-53e8-9282-69e8-8d81a9cafc59@kernel.org> <40f78d10-0a57-4620-e7e2-f806bd61abca@linux.alibaba.com> From: Xianting Tian Message-ID: <79af3486-4d65-7d3a-2603-f2a90954311f@linux.alibaba.com> Date: Thu, 5 Aug 2021 16:23:58 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/8/5 下午4:18, Greg KH 写道: > On Thu, Aug 05, 2021 at 04:08:46PM +0800, Xianting Tian wrote: >> 在 2021/8/5 下午3:58, Jiri Slaby 写道: >>> Hi, >>> >>> On 04. 08. 21, 4:54, Xianting Tian wrote: >>>> @@ -933,6 +949,16 @@ struct hvc_struct *hvc_alloc(uint32_t vtermno, >>>> int data, >>>>       hp->outbuf_size = outbuf_size; >>>>       hp->outbuf = &((char *)hp)[ALIGN(sizeof(*hp), sizeof(long))]; >>>>   +    /* >>>> +     * hvc_con_outbuf is guaranteed to be aligned at least to the >>>> +     * size(N_OUTBUF) by kmalloc(). >>>> +     */ >>>> +    hp->hvc_con_outbuf = kzalloc(N_OUTBUF, GFP_KERNEL); >>>> +    if (!hp->hvc_con_outbuf) >>>> +        return ERR_PTR(-ENOMEM); >>> This leaks hp, right? >>> >>> BTW your 2 patches are still not threaded, that is hard to follow. >> yes, thanks, I found the bug, I am preparing to do this in v4. >> >> It is the first time I send series patches(number >1), I checked the method >> for sending series patch on LKML.org, I should send '0/2' which is the >> history info for series patches. > Please use 'git send-email' to send the full series all at once, > otherwise it is hard to make the emails threaded "by hand" if you do not > do so. I got it, thanks for your guide:) > > thanks, > > greg k-h