From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E6D6C433DF for ; Thu, 15 Oct 2020 01:40:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0F8F22257 for ; Thu, 15 Oct 2020 01:40:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389011AbgJOBk1 (ORCPT ); Wed, 14 Oct 2020 21:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389067AbgJOBjh (ORCPT ); Wed, 14 Oct 2020 21:39:37 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 650D0C05113A; Wed, 14 Oct 2020 16:12:13 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSpwI-000OHX-VT; Wed, 14 Oct 2020 23:12:11 +0000 Date: Thu, 15 Oct 2020 00:12:10 +0100 From: Al Viro To: Linus Torvalds Cc: "Jason A. Donenfeld" , Linux Kernel Mailing List , linux-arch , Netdev Subject: Re: [PATCH v2 20/20] ppc: propagate the calling conventions change down to csum_partial_copy_generic() Message-ID: <20201014231210.GM3576660@ZenIV.linux.org.uk> References: <20200724012512.GK2786714@ZenIV.linux.org.uk> <20200724012546.302155-1-viro@ZenIV.linux.org.uk> <20200724012546.302155-20-viro@ZenIV.linux.org.uk> <20201014222650.GA390346@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Wed, Oct 14, 2020 at 03:51:00PM -0700, Linus Torvalds wrote: > On Wed, Oct 14, 2020 at 3:27 PM Jason A. Donenfeld wrote: > > > > This patch is causing crashes in WireGuard's CI over at > > https://www.wireguard.com/build-status/ . Apparently sending a simple > > network packet winds up triggering refcount_t's warn-on-saturate code. I > > Ouch. > > The C parts look fairly straightforward, and I don't see how they > could cause that odd refcount issue. > > So I assume it's the low-level asm code conversion that is buggy. And > it's apparently the 32-bit conversion, since your ppc64 status looks > fine. > > I think it's this instruction: > > addi r1,r1,16 > > that should be removed from the function exit, because Al removed the > > - stwu r1,-16(r1) > > on function entry. > > So I think you end up with a corrupt stack pointer and basically > random behavior. Gyahh... ACK, and I really wonder how the hell has it managed to avoid crashing on testing. Mea culpa, folks.