Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4207646ybi; Fri, 19 Jul 2019 17:32:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJYiJWh1S2FM9u/yPxcdh22yqt94cjMdsmFBwBRBZb6gXvi495qN0sMu2gg14bgXc+ROe7 X-Received: by 2002:a17:902:24c:: with SMTP id 70mr59408370plc.2.1563582749465; Fri, 19 Jul 2019 17:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563582749; cv=none; d=google.com; s=arc-20160816; b=KjqvLCc55Ed6c/po/B8whMhp9LPc2Sknh/DL/BeSjcSMTusjuNwOAszB/2orMF/Xo8 GKANpJ33UHQxxIBC2uWPP+KiIhjbQCP3hv26MeEzFsTzLVxdN3gJ2mGPOmd2Qe+cV56k aCTlElPMORbbmyfpTvuj/+ER8A06xWLrE9o3DluwcikKyfJk9P+ohlKOWIo2120a3HVr jhYnIcgh0qld9kj+bu48ZK+O0G8G++iybXCZP8xueYzGXNoh0OITfBLOJ1URJGkrA7Y9 R/c+YZ7RDyi5Qj1Wrq6kcJMSpUc8N8OPuRnhRW1tzgstKrvUNiGAXpqZ8hecQdRbFOa9 Ap0g== 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=2JBPzk0GKH4lUlpKCVDWG4mMPT72Qbn0Zt06lp0yJB8=; b=S3eUBchk9i2BoHgZN/ib6/2F7yAs+71gt0wLp4t5puh/urEc+DfD+gnrWxOHE7lzjd bXhahuKBXTB681u109RfGbMU/NYWbL8UyqBUz/B4yVudsUdclHJDvc2Xya83QPYQG64T 1iZl5jmJ0XvYPinho37Ro5vJbduAtZ3y1brrhmCbIyiOe0lpy+GLPzXsKjjhP+8qPk0A y3JA04EbA6BGPg+2lIkXUzLhz75RC0oITb/4WuhAMnspPuHDgqbwI3IoAU0eqnmO95/w aCTMJJATz1c49xWfL6nt5LpuA1Mzkxenn7XhBA+4kft0eWx3cWc4QOyRwyGFdS9D0MiW gndA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bGVdOgW2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m68si5890069pfb.75.2019.07.19.17.32.13; Fri, 19 Jul 2019 17:32:29 -0700 (PDT) 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=@linux-foundation.org header.s=google header.b=bGVdOgW2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728924AbfGSTwE (ORCPT + 99 others); Fri, 19 Jul 2019 15:52:04 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39812 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727602AbfGSTwE (ORCPT ); Fri, 19 Jul 2019 15:52:04 -0400 Received: by mail-lf1-f65.google.com with SMTP id v85so22504115lfa.6 for ; Fri, 19 Jul 2019 12:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2JBPzk0GKH4lUlpKCVDWG4mMPT72Qbn0Zt06lp0yJB8=; b=bGVdOgW2JTU6muEF91T6h+WM7K/XI2h3ynxFwrkqpdKawloxvtybTe+8mV2/2+8jHT MF16TPa9wCYi5UhSi3pDpmzQOg7gelG2HJ36L0Ji3irig5oNQifTXitmgNKENk67BgCm d7pXY+QPWUTOF3XDtiaL8QH5UpfDQWxv9Poo8= 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=2JBPzk0GKH4lUlpKCVDWG4mMPT72Qbn0Zt06lp0yJB8=; b=gK/F3ip5N6Opm1agOadaWlsawbw229Zm+qTPZHQKBr8ed9VZv3IIm4zMVW8a0zZEyS /UrltBG46dhBHWrwPijZ1pdADKII1jKNnRAF8xcgKTmRkRLUW1GYs7FiCdMJmrC9S6Q7 h0UamlJDM8t4phWymglO+rKZkTG1G8LM89TjHUkhweJlHDKtuK2IbjzbBq4PBnSV/Yh2 4kox8FDqrIxcM6euv3652f80o0m1TqY6fKLJLF53KFMy+iQPxeSpJTcJlozbSCacB4SD 3rGHNK4GXPstGbnQYhzYNLaN2W7OEm0KEQuQ99M1CZXL+y1jsad1DPzN6QsbqrBruoZK GXXQ== X-Gm-Message-State: APjAAAV5K59E5cnUOPpBq1YSEbz5bf//XD54b4bs8z3y8J1mAautBvdJ rSdVTYp0sT7ybM2ihtHZAM4/EIZxeo8= X-Received: by 2002:a19:234c:: with SMTP id j73mr24396796lfj.96.1563565921299; Fri, 19 Jul 2019 12:52:01 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id v14sm5886343ljh.51.2019.07.19.12.52.00 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 12:52:00 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id v24so31894753ljg.13 for ; Fri, 19 Jul 2019 12:52:00 -0700 (PDT) X-Received: by 2002:a2e:a0cf:: with SMTP id f15mr6981816ljm.180.1563565919973; Fri, 19 Jul 2019 12:51:59 -0700 (PDT) MIME-Version: 1.0 References: <20190520205918.22251-1-longman@redhat.com> <20190520205918.22251-14-longman@redhat.com> <20190719184538.GA20324@hermes.olymp> <2ed44afa-4528-a785-f188-2daf24343f97@redhat.com> In-Reply-To: <2ed44afa-4528-a785-f188-2daf24343f97@redhat.com> From: Linus Torvalds Date: Fri, 19 Jul 2019 12:51:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 13/19] locking/rwsem: Make rwsem->owner an atomic_long_t To: Waiman Long Cc: Luis Henriques , Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , Linux List Kernel Mailing , "the arch/x86 maintainers" , Davidlohr Bueso , Tim Chen , huang ying 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 Fri, Jul 19, 2019 at 12:32 PM Waiman Long wrote: > > This patch shouldn't change the behavior of the rwsem code. The code > only access data within the rw_semaphore structures. I don't know why it > will cause a KASAN error. I will have to reproduce it and figure out > exactly which statement is doing the invalid access. The stack traces should show line numbers if you run them through scripts/decode_stacktrace.sh. You need to have debug info enabled for that, though. Luis? Linus