From nobody Sun Nov 24 07:37:37 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1724865246; cv=none; d=zohomail.com; s=zohoarc; b=IS/TRq/mPua8hjxfyjAMvJPc1F6krabPVm2Vd/rrqJFDwXm4PuFYL3cJHginSrIn5Ayot5CJ7apQSIh0eNR58nwjOK7XRaG+YNWy62HXepYkzgqDfeNr67e6YY7XmRL6IJIi9LpfT9rjnSkR6l/OuBMkgccITM72QCqckS3YgG4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724865246; h=Content-Type:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=c6HC1KkzV59T7r0SXEvmvWHOs1sNmzzXG3/FRP77fvU=; b=aIJOorNQxDoCNrgtFMYswS/1uSqXfHpzx+sOq6YmBT2db/ji14jtkl4nulkEJ6bd6Bun87SVW+dTdwh4If4n0o94YB+2CtXInYFFesn8TDiBrRXfFfSP9YZ6cvbsyizmvAfQXK3BdopOD0CVaUkZllDGmXMkZN2KtJa+9v5ao50= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1724865246412209.25206625295993; Wed, 28 Aug 2024 10:14:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjMEM-0005o2-In; Wed, 28 Aug 2024 13:13:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjMEK-0005mh-OP for qemu-devel@nongnu.org; Wed, 28 Aug 2024 13:13:12 -0400 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjMEJ-0000se-0C for qemu-devel@nongnu.org; Wed, 28 Aug 2024 13:13:12 -0400 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 219A8A40885; Wed, 28 Aug 2024 17:12:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D69F6C4CEC0; Wed, 28 Aug 2024 17:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724865182; bh=tDtYbwB/YhvyKuU+oVhSe84C7DG/yQsQ73QFdvJXmLk=; h=Date:From:To:Subject:From; b=XpoYtJG9Lgv8VgRTtlw34mJFzufjAJ24j/Ju28eyQeKbYse8onVdcm1UuXPtx6mNK R6s9e5NY7uOWnNiDHCuTKDK4shj/YP4MfjC2btatmt1aq6r5jtQ90NeP6B9PYMAgmE J9price2mVCEXlEvHT/41Ku2DbYWvsDVtV5bJ6KUQgPlq+YJ/kevpywEW6jEbs+VWa jB5Ep3sfqmJWi2T9Mqv0zgU63ezEK/ISkdiq7HhKlT3M1w9oVavQcGwA4PcRGS7/7w /6clqbmXbHe2K5usafUea2m2uqYQtsyNmxhnTfhEZmmiD8m0s8ChgXmZxEJVW8lmrw +zE238Px09A9A== Date: Wed, 28 Aug 2024 19:12:59 +0200 From: Helge Deller To: Richard Henderson , qemu-devel@nongnu.org Subject: qemu-hppa-user: crashes immediately in hppa chroot Message-ID: MIME-Version: 1.0 Content-Disposition: inline Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2604:1380:45d1:ec00::3; envelope-from=deller@kernel.org; helo=nyc.source.kernel.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1724865248426116600 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi Richard, I tested qemu-user from v9.1-rc4 for hppa and noticed that it crashes immediately when starting a hppa chroot. I was able to bisect the segfault back to commit 081a0ed188d8d9d9038f00337d331d185a7ae331 Author: Richard Henderson Date: Wed Mar 27 13:04:00 2024 -1000 target/hppa: Do not mask in copy_iaoq_entry This commit does not apply to git head any longer, but when I instead apply this (modified) patch the segfault vanishes: --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -664,6 +664,11 @@ static void copy_iaoq_entry(DisasContext *ctx, TCGv_i6= 4 dest, const DisasIAQE *src) { tcg_gen_addi_i64(dest, src->base ? : cpu_iaoq_f, src->disp); + +#if CONFIG_USER_ONLY + uint64_t mask =3D gva_offset_mask(ctx->tb_flags); + tcg_gen_andi_i64(dest, dest, mask); +#endif } =20 Any idea or suggestion to fix it? Helge