Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5047062ybi; Sat, 20 Jul 2019 11:41:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfbzJTu3oAFIaL6J6b+Iqx4seSzyH5fs1lAxxWsRWHBwErtea7r8ssmcAnad/D/CtbuO7W X-Received: by 2002:a63:7b4d:: with SMTP id k13mr59869613pgn.182.1563648100550; Sat, 20 Jul 2019 11:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563648100; cv=none; d=google.com; s=arc-20160816; b=gl8OWdNAsMCXvmc70rSvV4iVj4bvqf+0EZjtXBhnTyBwifZAN5qDI+YJlau6hS9LBh MLnUGwZoslAYLAWE8DneZApkjDfngPZWgnqdiCl1JydgBcv2hQR918qH50uxDZBJSRw2 IWFCI8gCHc3xfDqtdkRjbCyr+eUBDlYVAbjksU+S0uj+SCDGeXWu1Ma6I2XwadUBD4LS WjyShZip7XbGPi+CUSG+om+ZjBB+mDJ03cttAl0tquNfBcTGvIOWgYL5GdiT0xkGNUKT WtGkuC5OuJSbKJVXqxvIMYPUutkLqRtdXW2PPwnp2fPDtM+j/HkEq/+Z2172WyXjQc4l SGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=evZ8qK2eU5KR2uOllt1bMnQwOWDq9V41xZET1ibU8zA=; b=F95/pYg5FjSupfevxPqKV7EzoZyBiKdMuZMQE8UuN4LYqyiP2V3r7qJOsNGkw6ucfE TNYYqbVg5ao9N/MWaFHnozeB/cOHQOewT9a5ROP+4qibumVOOJpO5RbOMW5kLHMASUVO vGOGPrXIk/Uo4l4RyQ56erwWGRdID7sPaZ4ZHMpIvzJBB0CJqnGgaJi6LT3jYXyfJbwe mXBXbGy634XfnvtPogpvEXIuuJKSFzQuzzsMJF+7PYrp4uiYO2wfSin9zLIzVUHL2jBD vaudSlMnWCbHsT25kYQsc300uD7F1ddCOWLW6aTAdXtnyp6MMB6Rk2jtcR7Y22tlcsOc fNeg== ARC-Authentication-Results: i=1; mx.google.com; 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 59si4919026plc.425.2019.07.20.11.41.25; Sat, 20 Jul 2019 11:41:40 -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; 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 S1727384AbfGTJc4 (ORCPT + 99 others); Sat, 20 Jul 2019 05:32:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:41220 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727373AbfGTJc4 (ORCPT ); Sat, 20 Jul 2019 05:32:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1159EAE2D; Sat, 20 Jul 2019 09:32:55 +0000 (UTC) From: Luis Henriques To: "Linus Torvalds" Cc: "Waiman Long" , "Borislav Petkov" , "Will Deacon" , "huang ying" , "Peter Zijlstra" , "the arch\/x86 maintainers" , "Thomas Gleixner" , "Tim Chen" , "Ingo Molnar" , "Davidlohr Bueso" , "Linux List Kernel Mailing" , "H. Peter Anvin" , "Jeff Layton" Subject: Re: [PATCH v8 13/19] locking/rwsem: Make rwsem->owner an atomic_long_t References: <20190520205918.22251-1-longman@redhat.com> <20190520205918.22251-14-longman@redhat.com> <20190719184538.GA20324@hermes.olymp> <2ed44afa-4528-a785-f188-2daf24343f97@redhat.com> <87h87hksim.fsf@suse.com> Date: Sat, 20 Jul 2019 10:32:53 +0100 In-Reply-To: <87h87hksim.fsf@suse.com> (Luis Henriques's message of "Sat, 20 Jul 2019 09:41:05 +0100") Message-ID: <87a7d9kq4a.fsf@suse.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Luis Henriques writes: > "Linus Torvalds" writes: > >> 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 > > Yep, sure. And I should have done this in the initial report. It's a > different trace, I had to recompile the kernel. > > (I'm also adding Jeff to the CC list.) > Ah, and I also managed to reproduce this on btrfs so I guess this rules out a bug in the filesystem code. Cheers, -- Luis