Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp302998pxx; Thu, 29 Oct 2020 03:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJAvJ9EcfQhchSyKWCAa4KVZxUdHqAwHveUaTMJXMAMs6POw+O0uUiVlkpq+YJXx7cF8qM X-Received: by 2002:a50:e686:: with SMTP id z6mr3103810edm.188.1603965923920; Thu, 29 Oct 2020 03:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965923; cv=none; d=google.com; s=arc-20160816; b=ZiFAaNQxKIABO90apipvKDmm/5VwFhJ/SKA9pHffZQG1GRWgpURwQ1If6hS4PGAAAp Y6Ik5d+Osuc3EaCZVe5WejYkNQwAHeB6T/f7yPqtrXnnEoPuhDI0bXFV+7mphCkgf8/D WA83Dl6FyuJkmUhUcDmb5XNAJU8yWsq4Vc2LOTC/d8IbJyZm7MJkRslZUoRhrRnpUiXi cudpSOINHOnSevhGDStuqoXJ9PFGiq84n0+G0AotjLcIL6/99BzRt4hKBznTsnxuHA+W QFm1aODZl0KrQgz5QTbASTrUUWqfJaKx5JBDkTilyI+GNLALUDyN+YrLtlAithLjgcsC JURA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=7VUFK8T/+s68CTNfyVTLQlUVbz6geQKr+EP/RFpWuTY=; b=anqd536KsD9THJfMrkYqnnPZCKu+DebFe5z4HzGQAOMfcSbURaM3u2u/2g/ZSZ4rOg QZ86nbOshaH1TbYPJ7Mx0g6sVIWvkExBjAi4T5iuQp5U0qE+LL3HsGje0bZzL3S2wmGj 4Gy6Sy13dqz6lmTL5d0QfBRQjINpkGsx0jTtBXCz10RtoNxHxdWAk+NGjr3tDZTAvcpJ jNX3YEHnjhRYzrUiVIJC6D+Tlio5pE/hMRyji0SI4IZMxWwmKti/wHEQtduZq82P9yJX P/7vqYjO7fQ75n+OFYRbG/Wc5GaxwhjW9a1Ai0aBVHzIgLnn2OKNvgCUY5u0xu+F/dqL nXpA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy27si1661063edb.52.2020.10.29.03.05.00; Thu, 29 Oct 2020 03:05:23 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726299AbgJ2JzO (ORCPT + 99 others); Thu, 29 Oct 2020 05:55:14 -0400 Received: from mga18.intel.com ([134.134.136.126]:1046 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbgJ2JzO (ORCPT ); Thu, 29 Oct 2020 05:55:14 -0400 IronPort-SDR: +gWeyZnKCJPDdw2Y89dHyV0mvBuGyD0JPEfKr05Ol6ehuZmUd/kagNUEerMul06RMv+PbiLGEX xnVBE2X2pbpA== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="156178770" X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="156178770" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 02:55:13 -0700 IronPort-SDR: y3UNQJb10QSQQIGOUQN/ULADFSnJyyuoSiEfwZkYOLUrdz6dRSZlO+X4W0e3K1lrbi4cD2hg/1 qZwcsIRbkj8w== X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="536607304" Received: from twinkler-lnx.jer.intel.com ([10.12.91.138]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 02:55:11 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next 0/3] mei: bus: null derefence in rx Date: Thu, 29 Oct 2020 11:54:41 +0200 Message-Id: <20201029095444.957924-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix race in receive callback for drivers on me client bus, that results in null dereferencing and improve the error handling. The first patch 'mei: protect mei_cl_mtu from null dereference' itself is sufficient to prevent the failure and is intended for stable. Alexander Usyskin (3): mei: protect mei_cl_mtu from null dereference mei: bus: do not start a read for disconnected clients mei: bus: deinitialize callback functions on init failure drivers/misc/mei/bus.c | 18 ++++++++++++++---- drivers/misc/mei/client.h | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) -- 2.25.4