Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2810771ybb; Sun, 5 Apr 2020 17:35:59 -0700 (PDT) X-Google-Smtp-Source: APiQypKIy2TU1p6CITiQXzitwq52PizI97CgCpmceCMJ6c0YeKFlmfynjV+521m4L9Btbkud2nX9 X-Received: by 2002:aca:4e08:: with SMTP id c8mr11255512oib.143.1586133359562; Sun, 05 Apr 2020 17:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586133359; cv=none; d=google.com; s=arc-20160816; b=RaKDeCP4HJ1P82hPExfLkm5STwQlXYmax8Dfibc4I+hRPUHW1tDbTWf4TPGeUAqbAL ls7+mIkUfsbLY7RtdDYwhP7qAlyqruYdkK5/Y88fxj3eVLqg13IiJcqYomawlQh6KSF2 znzyy59yiCf0/GJYh0w2bwjW0cFguYZV1nrID9etPqY3/vCRQzZyvdPlbEeKTmVPBfFO 4fsd9q0wB1NChxNdWw+S8jH4zVv2s3We8chbsleY962I86jVP384MfU0UmBoU6Q9XuVf Bjld1nKoDLPV3fid0YtZMlJ4ze/rYcZ+MQqfds1+OPc4YP1wMO0FrUIpu/3gZW3uWj6T GLZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=1zkKb6HitMW3Fu6nn0bbk3w6qFnKtPRgw0Nni9HBExQ=; b=S8h1R2dNVg+7L6m9z6Lq10/1riy2uouWuKNgc6ELdHE57s5h1ooWG3s0k7XUuWHSsF 8Eqzc/cxpgMkdiv2Uw6ErkVs+yIHnJqVd0UeD1DntcA8Qpkug2T0QyqzpwCVVST5w6Zj e36f6S+MatgOauXe6lRztu8iilUovGCDl5t+QR7tksgY74kPuuOmOuuJv02LKbEXBfk/ aEr5IvXoXqwuq7qehjZpqo91yMYE121FuJEzYT4rYL69EPlYrLSbC0jf0I6fwnBuutMf RlYaeWFNqbWkCQNU/C8UGoZZ3UN50ZU4mLM3aI4bd7d7kEXP84b7WxCB6DPg3YChwqsY P+YA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si6999557otm.218.2020.04.05.17.35.48; Sun, 05 Apr 2020 17:35:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727880AbgDFAbt (ORCPT + 99 others); Sun, 5 Apr 2020 20:31:49 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:1570 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727254AbgDFAbs (ORCPT ); Sun, 5 Apr 2020 20:31:48 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0360VQND059556 for ; Sun, 5 Apr 2020 20:31:48 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 306p7sjpr1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 05 Apr 2020 20:31:47 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Apr 2020 01:31:24 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 6 Apr 2020 01:31:22 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0360VhAR46727478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Apr 2020 00:31:43 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43B68A4053; Mon, 6 Apr 2020 00:31:43 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E48AAA4040; Mon, 6 Apr 2020 00:31:42 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 6 Apr 2020 00:31:42 +0000 (GMT) Received: from [9.206.138.204] (unknown [9.206.138.204]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 14BAEA021B; Mon, 6 Apr 2020 10:31:37 +1000 (AEST) Subject: Re: [PATCH] Fix: buffer overflow during hvc_alloc(). To: andrew@daynix.com, virtualization@lists.linux-foundation.org Cc: gregkh@linuxfoundation.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, jslaby@suse.com References: <20200405204024.1007843-1-andrew@daynix.com> From: Andrew Donnellan Date: Mon, 6 Apr 2020 10:31:40 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200405204024.1007843-1-andrew@daynix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 20040600-0016-0000-0000-000002FF0476 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20040600-0017-0000-0000-00003362D8BC Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-05_11:2020-04-03,2020-04-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 adultscore=0 mlxscore=0 malwarescore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 spamscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004050216 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/4/20 6:40 am, andrew@daynix.com wrote: > From: Andrew Melnychenko > > If there is a lot(more then 16) of virtio-console devices > or virtio_console module is reloaded > - buffers 'vtermnos' and 'cons_ops' are overflowed. > In older kernels it overruns spinlock which leads to kernel freezing: > https://bugzilla.redhat.com/show_bug.cgi?id=1786239 > This Bugzilla report isn't publicly accessible. Can you include a relevant summary here and/or make the report publicly viewable? If it does indeed lead to a kernel freeze, this should be tagged with a Fixes: and a Cc: stable@vger.kernel.org. -- Andrew Donnellan OzLabs, ADL Canberra ajd@linux.ibm.com IBM Australia Limited