Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp279557pxb; Thu, 25 Feb 2021 02:14:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh6SoKBIRRayArpabyHNbTKznpuZh0TJ0tx5OvERWurBxeBzdYhZYDR3iM/zY3ULKaUxBg X-Received: by 2002:a17:906:4159:: with SMTP id l25mr1994398ejk.422.1614248050957; Thu, 25 Feb 2021 02:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614248050; cv=none; d=google.com; s=arc-20160816; b=QfNcHnl6Jlv22rorektki+soDxOfHv1VXlSzAL9XIRd4FkQWzMLpZJHJHDC9YpwF8E 3IIWhEvZXKt0qYNMo7mHI+pUSbAM41aQ4QQxxrO8M9Q/b4OmRtvVInTgL5lh8tFltBW2 YC1WWZB7XeT4mwcZIaR09+FYzOeueVYHAOGBHWD2echYgl1TBhiWpfq2r8UeCZhxqe+S FYnLlkcxbQnnQ0P5Lxni34l1aecGwLMdRGdrASO+p6MqtKg+XHMjfEBIdLzZkR6i6yCz FwmHRrvDFsjdNVeCJzcPqOdmb8jJrrnImPsi10yXVT92o60ij12ufwFqGIJh90v7Q99c 5CFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id:dkim-signature; bh=EPf2fM16KD0kREgBjB6ua+rUylDq8AlBvOuagV32ch8=; b=FrI8nIiYyY/SaHzGLQm8MeB6Qp1BNQqdfFj4WlcWwEY2XqEHKVAK69kwTncfQN6UXX S78uM6jkECFj0/i7hAgTlwk49vbA+tJ/JhvMqvUhe4Iyv9ddp2ZBp758SG/QnydxVsFO dXjIkNzKk4+NR0W/zv0h14V/73T7tMAwPpR6gyWPvZwbB5ci7/u2r6U2TbHSMKHbJ3XU ucQItNjmD9pgYcwlX7gUkEeH+1XVdPcDTj2VNoL6DJ/DMvTftlXdbV4QLLGPtC36jGMD 3iPcR3K729BZ1JKkA1la/qkko0dtLI6+T+gIsB7Zy2N+j+049WN6ZcAjLA9XGVMEWDho GaVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=pbX7XxuE; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si1042479edi.319.2021.02.25.02.13.48; Thu, 25 Feb 2021 02:14:10 -0800 (PST) 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=@suse.com header.s=susede1 header.b=pbX7XxuE; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234158AbhBYKKo (ORCPT + 99 others); Thu, 25 Feb 2021 05:10:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:43800 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232282AbhBYJ6l (ORCPT ); Thu, 25 Feb 2021 04:58:41 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1614247074; h=from:from:reply-to: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=EPf2fM16KD0kREgBjB6ua+rUylDq8AlBvOuagV32ch8=; b=pbX7XxuES5kDjdVmxKOG4XJlDdNepmvI3JJOseAZZPFF1+P9Rm8/cRwCoNXlnYjYV6fuOY +E35+FuiaT4n7m0slMdcR0KUW8apwwTs+BrR3RXcR5qR6sNw8Q9qhelKuU5uwcDHlKdn3Q reOIWqAHddziPOK8i4GF3/sA4quKT98= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 66FCDAC1D; Thu, 25 Feb 2021 09:57:54 +0000 (UTC) Message-ID: Subject: Re: usb: cdc-acm: BUG kmalloc-128 Poison overwritten From: Oliver Neukum To: Bruno Thomsen Cc: linux-usb@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , Bruno Thomsen , Lars Alex Pedersen Date: Thu, 25 Feb 2021 10:57:50 +0100 In-Reply-To: References: <777991bb72f8842e3e730f9b600b2086478f5d36.camel@suse.com> Content-Type: multipart/mixed; boundary="=-dR9FkrW5twny4+EEnyrJ" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-dR9FkrW5twny4+EEnyrJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Am Mittwoch, den 24.02.2021, 16:21 +0100 schrieb Bruno Thomsen: Hi, > No, this is not a regression from 5.10. It seems that many attempts to > fix cdc-acm in the 5.x kernel series have failed to fix the root cause of > these oops. I have not seen this on 4.14 and 4.19, but I have observed > it on at least 5.3 and newer kernels in slight variations. > I guess this is because cdc-acm is very common in the embedded > ARM world and rarely used on servers or laptops. Combined with > ARM devices still commonly use 4.x LTS kernels. Not sure if > hardening options on the kernel has increased change of reproducing > oops. OK, so this is not an additional problem. According to your logs, an URB that should have been killed wasn't. > I am ready to test new patches and will continue to report oops Could you test the attached patches? Regards Oliver --=-dR9FkrW5twny4+EEnyrJ Content-Disposition: attachment; filename*0=0001-cdc-wdm-untangle-a-circular-dependency-between-callb.pat; filename*1=ch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-cdc-wdm-untangle-a-circular-dependency-between-call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qgd2RtX2RldmljZSAqZGVzYyA9IHdkbV9maW5kX2RldmljZShpbnRmKTsKIAlpbnQgcnY7CiAK Kwl1bnBvaXNvbl91cmJzKGRlc2MpOwogCWNsZWFyX2JpdChXRE1fT1ZFUkZMT1csICZkZXNjLT5m bGFncyk7CiAJY2xlYXJfYml0KFdETV9SRVNFVFRJTkcsICZkZXNjLT5mbGFncyk7CiAJcnYgPSBy ZWNvdmVyX2Zyb21fdXJiX2xvc3MoZGVzYyk7Ci0tIAoyLjI2LjIKCg== --=-dR9FkrW5twny4+EEnyrJ Content-Disposition: attachment; filename*0=0002-cdc-acm-untangle-a-circular-dependency-between-callb.pat; filename*1=ch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0002-cdc-acm-untangle-a-circular-dependency-between-callb.patch"; charset="UTF-8" RnJvbSAzZWViNjQ0YWYxNDAxNzRlYmFkNmRkY2U1NTI2YmNhZjQyY2NkOWM5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBUaHUsIDE4IEZlYiAyMDIxIDEzOjUyOjI4ICswMTAwClN1YmplY3Q6IFtQQVRDSCAyLzJdIGNk Yy1hY206IHVudGFuZ2xlIGEgY2lyY3VsYXIgZGVwZW5kZW5jeSBiZXR3ZWVuIGNhbGxiYWNrCiBh bmQgc29mdGludAoKV2UgaGF2ZSBhIGN5Y2xlIG9mIGNhbGxiYWNrcyBzY2hlZHVsaW5nIHdvcmtz IHdoaWNoIHN1Ym1pdApVUkJzIHdpdGggdGhvcyBjYWxsYmFja3MuIFRoaXMgbmVlZHMgdG8gYmUg YmxvY2tlZCwgc3RvcHBlZAphbmQgdW5ibG9ja2VkIHRvIHVudGFuZ2xlIHRoZSBjaXJjbGUuCgpT aWduZWQtb2ZmLWJ5OiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgotLS0KIGRyaXZl cnMv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