Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp518034ybm; Thu, 28 May 2020 08:27:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1dVYglYyk39DqxQp8A/0i8yPx7TjY90xfLOWTv8opibBvi0PklOe/J1XDrArTz++0LR8E X-Received: by 2002:aa7:d98c:: with SMTP id u12mr3692280eds.85.1590679634527; Thu, 28 May 2020 08:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590679634; cv=none; d=google.com; s=arc-20160816; b=TguHTuqSbq3BspDYq/IfNLMFGI6M8XC4tIbIArSH+4y29SZ5JLNy1LWEPpvpNVT4ct /5EOxNr1aHsBzPi4P9XOF3zYEZ0vb5qnhO5s/TurJRFxKWRRVwMcUaE2qekRsJ1dZFr7 GRnUz84b+MvVaicTj7rCTPGdU5awh9dVjb6gRLLM9Af9PapaCwnXXnspNCmHLK0Ikh7P 12KWo7mBEGyeiQre85UCSVnCLnaE7d7sI8V0psq8rlvJkar/Is2hL1CZcJZ0QuxffpaC dzw9Zu9+s9BNA1KL9uHrs4N8QGzTxbE5OYL+SFZsAx7b/UKYeoNUatofdOww5KEZV0HI O+oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=K6IkMqHyEOHSemzUNyydLbaMTsC3stHLolm7i5u2aKU=; b=y7+yzrYpPTW7DySy9lvY0M8ZzqqmeYhz8MIlAyIO734kJ/79s6oYcZNW5fM7Gpb/Gk DyI8JckVWpv/ibJQv6yZ2sTlbtZtcRoknkZ2HerGyK6bLaQZE0NHrTfqbfU1Cpn8ok22 1maFsq1bf/WTFaCTUcBdTvRR6yCFo7hqGHTvxmR+8f5GPBz5piHfEkYD3NqpA5/kgDz1 1bFq99c+aIbBCmylxER6MAsPy0FUGYsgdO0rnLcleqPWvzvlOv470uZ3DMZr/I7Xsyz5 Z+c5Ek11MhNGOikJyTqk91yRTMGDl60AyxgBYyDLn40ULiau0Y39N+BPu0iQm84T6tZk i7Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MJ6IPLKC; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si3849019ejm.633.2020.05.28.08.26.50; Thu, 28 May 2020 08:27:14 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=MJ6IPLKC; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404237AbgE1PZB (ORCPT + 99 others); Thu, 28 May 2020 11:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404080AbgE1PZA (ORCPT ); Thu, 28 May 2020 11:25:00 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCA5C08C5C6 for ; Thu, 28 May 2020 08:24:59 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y18so13661413pfl.9 for ; Thu, 28 May 2020 08:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K6IkMqHyEOHSemzUNyydLbaMTsC3stHLolm7i5u2aKU=; b=MJ6IPLKCL3BbYt5HrzBgdjmJbBhdT0Y7aR5qj1lzrPRCpT32m6O+qTkG072Vjfpg4E 6qUxUnMWUVot3+11G5mUYMv6+30dHT45ueCvHmTFA2S1P2L2xzIehRL6iMJ39pTKFWos E3jJRlxKdVvzP9qx6LknS7/uzQor9Ag7ujaiP8tG0sDitIDgzeTXmfNeZ14Gp2sNmw4Z G5b2SW/y4pvCeIjSGiSB6wv3dzk7bB7cmJDW1dxMIoZm1NvrrtHtpTpW0L+NiIUP+ezb cfwq9hYaCkS9l2Od3q84t1VNi/QmYE84JvrEOQjVZj9IK6VO63V6trDji3dqxlTXzk92 JL3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K6IkMqHyEOHSemzUNyydLbaMTsC3stHLolm7i5u2aKU=; b=ESlVNZegLGUlYKjEg25Ztd9ndfQ+JjP6xfCzQQFdn0R3Xg2gWl3oBQlkkaiZcrBlNR OAQnZZ+j7V1j7XAnkQGo4hlqJ7ccmyJPTSS8CzI7h41VUkR29hOaJNqh55t9HCAwEaLK a5cevxLm4WikZ/qVVYxJe30uqzUZ73kGcyXAa490vDwynIQLSQ2xTOYTW2tWsSahtslJ 8RYTq5r7rkBLki0mOpiNvpNWlbWJMJvIROi5lCGtvFPemU87Jyj7NhG021V2w+Ai3bFc +1NgWbVmSCIfx+KMiT4l08HojILVBke+JzyfCyTsvuMCNx8JuT27mxME0HZvBTetSAzP AS8Q== X-Gm-Message-State: AOAM5308hX/ypoJJ8Ylw9XbNJVdUbs+VDtsknO7syy/N3uQ2kr/+BjEZ rfPzRJ6/+0j0hU99Nl1Hwq7EtlfLsoH6EZE4Cxhi1g== X-Received: by 2002:a63:e454:: with SMTP id i20mr3439315pgk.440.1590679494343; Thu, 28 May 2020 08:24:54 -0700 (PDT) MIME-Version: 1.0 References: <29bd753d5ff5596425905b0b07f51153e2345cc1.1589297433.git.andreyknvl@google.com> <78a81fde6eeda9db72a7fd55fbc33173a515e4b1.1589297433.git.andreyknvl@google.com> <20200528134913.GA1810@lca.pw> <20200528151554.GC2702@lca.pw> In-Reply-To: <20200528151554.GC2702@lca.pw> From: Andrey Konovalov Date: Thu, 28 May 2020 17:24:43 +0200 Message-ID: Subject: Re: [PATCH 2/3] kasan: move kasan_report() into report.c To: Qian Cai Cc: Andrew Morton , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , kasan-dev , Linux Memory Management List , LKML , Leon Romanovsky , Leon Romanovsky , Randy Dunlap , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 5:15 PM Qian Cai wrote: > > On Thu, May 28, 2020 at 05:00:54PM +0200, 'Andrey Konovalov' via kasan-dev wrote: > > On Thu, May 28, 2020 at 3:49 PM Qian Cai wrote: > > > > > > On Tue, May 12, 2020 at 05:33:20PM +0200, 'Andrey Konovalov' via kasan-dev wrote: > > > > The kasan_report() functions belongs to report.c, as it's a common > > > > functions that does error reporting. > > > > > > > > Reported-by: Leon Romanovsky > > > > Signed-off-by: Andrey Konovalov > > > > > > Today's linux-next produced this with Clang 11. > > > > > > mm/kasan/report.o: warning: objtool: kasan_report()+0x8a: call to __stack_chk_fail() with UACCESS enabled > > > > > > kasan_report at mm/kasan/report.c:536 > > > > Hm, the first patch in the series ("kasan: consistently disable > > debugging features") disables stack protector for kasan files. Is that > > patch in linux-next? > > Yes, it is there, > > +CFLAGS_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) > > It seems that will not work for Clang? Ah, Clang doesn't have -fno-conserve-stack and that makes the whole cc-option expression fail? OK, I'll send a fix.