Received: by 10.223.176.5 with SMTP id f5csp999142wra; Sat, 3 Feb 2018 15:35:22 -0800 (PST) X-Google-Smtp-Source: AH8x224S5gemVNviC5zmIca13n4ijvXzGevTrPuRhTQrEGrdtoFRx1kPAs5qRG39RofRvuHO1znI X-Received: by 10.98.33.82 with SMTP id h79mr43721852pfh.139.1517700922441; Sat, 03 Feb 2018 15:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517700922; cv=none; d=google.com; s=arc-20160816; b=QCt1FFBwInGjc6nTsW//T+gjBvNYfaHjA6B08b4l6M/1fB/C3ytDQrS+txjrl9bk1h 97tS3B6Cb4IJ5Pb1A7thtTlBmrt+uRvbZ0O+Hg1Nm+POyHUYkDTdhQ5+FSX1MZfEXrJX vKxB3XcSFnpzaBDzu7VbvMRRLVLTb5g86GjfSkbfDHNMemHV323/Mz2PgzZsfVP67skX f0nilHUWmGZCEbawRcPzJsH52IA2cXUdKqhwmPd2EP8yfmIy1TQrk7jCvV9+9Ppj1T7m pAgymx93mIn3MJgYQZ2xp+Yoi6O3HYEsiDwNWRZ60Pve2qfc+yJ8+SWUjLrTes66HzNZ iJAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ZCpNwOFL2CTVhC1pjSIi7G2DdI4pZNvSVAH91mQ9Ev8=; b=nBfWX4fJrvYjmTadV/y+sMiKkuXg0TWYhR3njEaRF/Dvn18orutlQaS2nStR15wfeP 5vjntnlAz+Agzi8oIGTTY8qOE2S+Avz9THdo2JoQMVHKbEyxjnQbkBJDT4C6jYfX1qFy uh04Es5MkhRTiTFF75kedaLSrjndbI1IRJKu0xAAAfXECRTP7wrm135K2V/vDDmDYHXi fIiJlSht2AMiSwD/zzd2zBIkFY6EJa3bzpDHzuxkrmRVYfrsE6GLWN7BzS7SOegt/vzJ tVGSSNigDcz1jbUz5k5tuRH+9sr7oYQAwAeOhTL6be7IM1SwBV1THB6iXmDRBHBRSwL+ DG3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lw3smoXc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z184si223002pgd.819.2018.02.03.15.35.08; Sat, 03 Feb 2018 15:35:22 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lw3smoXc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753513AbeBCUTH (ORCPT + 99 others); Sat, 3 Feb 2018 15:19:07 -0500 Received: from mail-lf0-f47.google.com ([209.85.215.47]:39964 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbeBCUTC (ORCPT ); Sat, 3 Feb 2018 15:19:02 -0500 Received: by mail-lf0-f47.google.com with SMTP id h92so36418393lfi.7; Sat, 03 Feb 2018 12:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZCpNwOFL2CTVhC1pjSIi7G2DdI4pZNvSVAH91mQ9Ev8=; b=lw3smoXcjzIQHgVXJKrgKws1hYHQSPfHlK6Fzz7hC8mFlCMjcfJHWbig8vmvKObvV8 EPoecTXrjtBQEA+az5gJilrKqAMXlHZt8KOoaAxHtJ1DK+f/dszL6k1BJFdEC8XH+0PW 58uY6FRU8YEM/MsnybOzugWV9iVVRB0HiRYHC3KGoEXG8iYQWEkSexLzCS9/SDLcnYsE VCUSrc1LWj7uWvUM8LZRfMlkamYAV8qTT2l2dY3Suxx75S9pPUdEmWjN9yH57wTFdrNZ 0m/WN2EQD537YUYBbdWyCXKZ/HvLKw+TWW2dgrfgT3q/2kaP6+myP7vVKB3iPoeg6+v+ xK8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZCpNwOFL2CTVhC1pjSIi7G2DdI4pZNvSVAH91mQ9Ev8=; b=Dx+H0jl6rHt3dkuQgJ4iE1/oO58RkUes9+AOhX9IxsJLPFDKzQqyh3ODcV7Zm2s/E0 Q1Bn8xPAYenQeOKGyZgQFucbGLg2jgYHEC3Nn0ZUGdxBixxmcuAd4T/+4nR2FFy4ho9N dJrL2FYF6vCcEg404sWMv8jiKnuydz7c+txOllH+M+vjVtWozAbV2NNtBRy3VV4Z24Qd 8NyIVOEowPoDx3gQkTwI9LInc4YSBZ9oqrfVNDxcdDOU9FLf+76wMHDIClJL9fa4KG3U lQe9aNdKSSqtXIV+uWidn2kOsCXqtkvTb9osTCjTOy7FZ0cqTLwy2jNsb+GM8SUEUrwO tzKg== X-Gm-Message-State: AKwxytfs8U7kYSDML10SQu4G+s+T0madNdkTVj+UJu9xRuDgejv0XSd9 c+4QYfg0LP/Sx6W4XnJDk+A= X-Received: by 10.25.42.197 with SMTP id q66mr25956639lfq.25.1517689140489; Sat, 03 Feb 2018 12:19:00 -0800 (PST) Received: from localhost.localdomain (ntd06459.static.corbina.ru. [95.31.14.149]) by smtp.gmail.com with ESMTPSA id d19sm1023258ljf.85.2018.02.03.12.18.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Feb 2018 12:18:59 -0800 (PST) Date: Sat, 3 Feb 2018 23:22:43 +0300 From: Alexander Sergeyev To: Mario Limonciello , Matthew Garrett , Pali =?iso-8859-1?Q?Roh=E1r?= , Darren Hart , Andy Shevchenko Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: PROBLEM: NULL pointer dereference in dell_set_arguments() in 4.15 Message-ID: <20180203202243.GA5109@localhost.localdomain> References: <20180203162021.GA4571@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180203162021.GA4571@localhost.localdomain> User-Agent: mtt Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 03, 2018 at 07:20:21PM +0300, Alexander Sergeyev wrote: > # first bad commit: [549b4930f057658dc50d8010e66219233119a4d8] platform/x86: >dell-smbios: Introduce dispatcher for SMM calls >From source code (at 549b4930f057) it looks like dell_set_arguments() which >writes to `buffer` is called before the buffer gets allocated Turns out that the problem has already surfaced before, but from a different origin -- namely, rfkill interface [1]. This was subsequently fixed in 5246741a3f2e and c6f9288ee460. This time there is an ordering problem between initialization of the dell-laptop module and audio modules which are trying to flash a microphone mute led on keyboard (via dell-laptop interface). And about suspend-to-ram wakeup problem -- is it possible that there was some buggy interaction with smbios that led to the observed behaviour? [1] https://lkml.org/lkml/2017/11/15/705