From patchwork Thu Mar 2 16:38:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9600993 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9466860414 for ; Thu, 2 Mar 2017 16:53:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 862B82858D for ; Thu, 2 Mar 2017 16:53:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AE6F285AF; Thu, 2 Mar 2017 16:53:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40AF12858D for ; Thu, 2 Mar 2017 16:53:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754707AbdCBQtx (ORCPT ); Thu, 2 Mar 2017 11:49:53 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:63388 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753074AbdCBQsW (ORCPT ); Thu, 2 Mar 2017 11:48:22 -0500 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0La7Bu-1c16351NYU-00m1Rb; Thu, 02 Mar 2017 17:38:57 +0100 From: Arnd Bergmann To: kasan-dev@googlegroups.com Cc: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-wireless@vger.kernel.org, kernel-build-reports@lists.linaro.org, "David S . Miller" , Arnd Bergmann Subject: [PATCH 21/26] drm/bridge: ps8622: reduce stack size for KASAN Date: Thu, 2 Mar 2017 17:38:29 +0100 Message-Id: <20170302163834.2273519-22-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170302163834.2273519-1-arnd@arndb.de> References: <20170302163834.2273519-1-arnd@arndb.de> X-Provags-ID: V03:K0:Q+qKrgmO5mmV6jh53xXtYjvnp4E6a7Y6VAOQuMxuRP/sTvkB3eU CRmqnIuk2rSdn+I8psaWFh4U0a/oJkJlAcCo2ipD8J6I+fTy7/NOo9Ump11PcxMXwEhBVsc H4xSpOEFOTa88pbmA9rjc9zSCcCFeC+b7l03OwPVbHfmfKn8yUQ8pcW7XfMv+rnOIKhFgc2 UrJrWsQFF/Suhdv33L8Sg== X-UI-Out-Filterresults: notjunk:1; V01:K0:qfjHtTIMSiU=:77OEWY4hqOl6lxMgGMs6UA CLtmLY1oewJzLBH+VNim5KGJ+6bjpxx1Na3rj3EYQs7/9FNaMhJ65f7wg6HIg6GtgnB4n2rvZ WE5KvTipEHwPznE9kJxjKyCL044NiMqR8h3mjnhD/ms9MRqXhtUC+zSXRT+ZFRDCVbCqntSH4 jFaJMr/crrh5PmdGH5lYhd2So42eyBquADDfsQzY8rL8Sk1PFaa5T6Mv7vTD1FfSL1IeVNuub EpzBd69E2Z2/u12gkWDqs/8T4N64Y2PR0QnGaZqRzhNgBGvcdYxTs5YpOxZqof1YlvqNfS/az 5rCe4oz0agpLJsaOXy7cbwxHwGM4uBKR32KfgTyBnwPfCaevk17x5+jhjukSTq1HXdpiFElh4 anGcthjfzNulDpm17LeIrhhvXFS4/MBfCsyStVyZnwlCJ491Ojuf2soyQJyEsV9D3lWovS1uO 6l0F0dUYq3dV+CyvUg6fmpg+zYQF4B5ET2SpiS7neUja9lKJa7Gd7zbQm52fKiEjpjOzXQoLo O6Dcld1gNZdSRuvTXJjiE9fvb9zTKlMtbQSxNt/erAiFJVKgKUGIskznhsZq009IL/boDlxLk mv+UQ8hG1YhTsDnOAmuhzdvct5vVfSnV/VS/8qxJeAoG+PIYKI9V0Lds85H9IHkd4EO4fHmFD zetdsozyNbzsyYA2w2zQVYoNR9z2SeyuafayvY/2WdGMbOplZUUddBHXvOMaa/fi+ZOM= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_KASAN is set, each call to ps8622_set() adds an object to the stack frame, leading to a warning about possible stack overflow: drivers/gpu/drm/bridge/parade-ps8622.c: In function 'ps8622_send_config': drivers/gpu/drm/bridge/parade-ps8622.c:338:1: error: the frame size of 5872 bytes is larger than 3072 bytes [-Werror=frame-larger-than=] Marking this as noinline_for_kasan completely avoids the problem. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/bridge/parade-ps8622.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c index ac8cc5b50d9f..6b995edd2a46 100644 --- a/drivers/gpu/drm/bridge/parade-ps8622.c +++ b/drivers/gpu/drm/bridge/parade-ps8622.c @@ -79,7 +79,7 @@ static inline struct ps8622_bridge * return container_of(connector, struct ps8622_bridge, connector); } -static int ps8622_set(struct i2c_client *client, u8 page, u8 reg, u8 val) +static noinline_for_kasan int ps8622_set(struct i2c_client *client, u8 page, u8 reg, u8 val) { int ret; struct i2c_adapter *adap = client->adapter;