Message ID | 20250117182456.2077110-40-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp845780wrb; Fri, 17 Jan 2025 10:35:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVA5W0RqeQKKgPotZBbBi32eb4GdblPj/2VxgUpMn8X7Ylz5ZCD7WTQ2f5E3uYiFgmCJOTW1g==@linaro.org X-Google-Smtp-Source: AGHT+IGpJ2cfzwpjUgFZu/j3hBdxQoNFjebW8EZu9gksyVimI2z5VqnMmWLaYpAFBsCsZxKwRTM6 X-Received: by 2002:ac8:5791:0:b0:466:91f3:12ca with SMTP id d75a77b69052e-46df56776ebmr172293601cf.8.1737138910519; Fri, 17 Jan 2025 10:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737138910; cv=none; d=google.com; s=arc-20240605; b=kcWv9ZjuSzbx9mSiejAVP44ommXqRvFA90c+RjCFoOGL5tVmx1ManaQZs1oOf/oHdV 3K13M/cUH5uRxDMfQc6nEhmqNogtyXWYW7TFsycXsaTKpKBoC2B+PhBhvoLJ8nQpLg0w 4Cdryc+ud04Pr/EOe1nN5DitmLGaBjKetB/71taoPyvBnMOC1vV+ymVRiR2c6MvV9GAH N9T3tr+YDgU0StyIpru/j+hI8+mjfeQjxwglDicrAHvy14pBp4B9wL3lkYCaixlnfjBS 0ezW4hCDZ6yICkOq2cXK3acAJkFOKZ/8llmDAu8lUU2aGn4XxwMYh+uBcirpcxaRVT6G MvuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i1SIeY37CMzXA5XDrmfkkdr3FnSIL/bvtLXVM8kBUK0=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=RceJozY3mXDQN3w3ASfQddXcpBI/qVp7+UE0rSCPKAcMNUCxFgSVPsGykYqy/JVUBh CJ3FvzZ+KUOXec0OOuXGzMMpwSxLoPiemAtXL9bha26I0vu7ejby7zJhv6DswZm1o9XG RwWDTM1jzPnB/kCZvZ/Xp1uw7+VhxD/WcrgCGM4iorOMFWaSj0XNliHGpI3aQ7C9BRNx IKtca8WjMgsRZrxPGdj7zPBZVrA4LIqYrKhd1i6VuHKDvMMcCP1j7NZdNzw5PIxJZOTI bSdJigHaCtYYBu5zLzuPL7S7sR1t15neHWHktlxGmv5tR1Ecn78T3BqYT165Iiaxf6wY 8ZmA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eroRHQNf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6e1afc1b0cdsi30475086d6.149.2025.01.17.10.35.10 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jan 2025 10:35:10 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eroRHQNf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tYr2R-0004aI-6h; Fri, 17 Jan 2025 13:25:47 -0500 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 <richard.henderson@linaro.org>) id 1tYr2G-0004BW-05 for qemu-devel@nongnu.org; Fri, 17 Jan 2025 13:25:36 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tYr2E-0007wI-Gn for qemu-devel@nongnu.org; Fri, 17 Jan 2025 13:25:35 -0500 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2ee50ffcf14so5847523a91.0 for <qemu-devel@nongnu.org>; Fri, 17 Jan 2025 10:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737138333; x=1737743133; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=i1SIeY37CMzXA5XDrmfkkdr3FnSIL/bvtLXVM8kBUK0=; b=eroRHQNfz40Ep5kdbR0ThLy+2PLQgUDM4eNtwQ0e56i7T8IwgMnlOaEZ0Y6xrM/PqH mzutK51ZmFmV4KrUVg9EkYzmpx8KtjDdCOsfup3VMyiipIJ9EyogIgEfLHVeNMqahAdr Y3UZY27ChkNi8Tn3md9xKwSjiL7bPnDapue4RYsQCUQc4DoR3vRDvs+7c6O2AQhR/kcl dVL52lW9hMcIAq3EroJCxz9ZOIbQI5MzqEaEBizQiXdhZzUS8UvqRn0sIOpY2MgkoVzL 0PRcS7oGKPI3BlL9R7FHbiBxaW04MijhqOv6FSpG1pauvWnzvnj3RSdtfyQmw6G2hp/r QTVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737138333; x=1737743133; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i1SIeY37CMzXA5XDrmfkkdr3FnSIL/bvtLXVM8kBUK0=; b=dP1SQ7BG3gsGrFHODfPV79WfSfLQGyzXi1muIhPYr6En8/Hf0vKoLmKLTWamzs6IMY ufScGtfoRHURKY0OrpXK0jQsau0aRKxdBMCrb1kG7qr8WyJda3omaMbnhQEWZb8ZcfJL T3NfrWGasbjH3F/GbNs3k9nmLcCWg6FdJT1QpjxD7T9HiWbuTkcCWBtaDaG0jGZsmlqd IWwTKJEOqJur0aubzHhKpJpROMYzIaR6A6IkQHe+wzMvPgPyAd53gN1NMYtX3/RSOWsS TmOQK4NUuF0HEvDgnvvcaBGL93/xEfuujUEufV91BDq4ZS0956cJ1cgbXLPm/GBy7m59 7yNg== X-Gm-Message-State: AOJu0Yw5w4VJLkftSzrBMWejaaj6JCemuuvCEkejXNv7wSnxR3r+Oq3S ziMMnb2n81KYiOtL2FZLz83W3QM/ex8ZYw+5Ki9sDszetDJ9pf+sM7jBFpeGtcDKd9qT11cAHF5 5 X-Gm-Gg: ASbGncse7y5AiguirvTTwjf7a99EvR4fSd6BNF4soEkJFgBP7HF9ZP4Wyw9IUUHlpx2 NStbnWw/ZoDj6BcZQFOo6+O4h9S8fb06K49vkHrBvx5P2P52Mqc+MqFcLDfa9NexN7K37AQjCMH djMOkjPI98qiaxsxiTyE7RO3IHe1rdc67pswbUvttF5DJ3GIy9pNci8USKhPEln0qkml4VkJXRf 4z1suv5DiGh16Y6J5Z0Swg+TDFP8kKWdAG2DGCc9Jm6fmjTw4XNyJIDy0qKhV/wtCVJye38AEoz eoLebQn2kM2wLs0= X-Received: by 2002:a17:90b:350a:b0:2ef:e063:b3f8 with SMTP id 98e67ed59e1d1-2f728dc0772mr17944409a91.7.1737138331402; Fri, 17 Jan 2025 10:25:31 -0800 (PST) Received: from stoup.. (174-21-71-127.tukw.qwest.net. [174.21.71.127]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3acccesm18879005ad.123.2025.01.17.10.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 10:25:30 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PULL 39/68] tcg: Validate op supported in opcode_args_ct Date: Fri, 17 Jan 2025 10:24:27 -0800 Message-ID: <20250117182456.2077110-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250117182456.2077110-1-richard.henderson@linaro.org> References: <20250117182456.2077110-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/68] disas/riscv: Guard dec->cfg dereference for host disassemble
|
expand
|
diff --git a/tcg/tcg.c b/tcg/tcg.c index 32975fe298..b9119a1ec7 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3367,6 +3367,10 @@ static const TCGArgConstraint *opcode_args_ct(const TCGOp *op) const TCGOpDef *def = &tcg_op_defs[op->opc]; TCGConstraintSetIndex con_set; +#ifdef CONFIG_DEBUG_TCG + assert(tcg_op_supported(op->opc, TCGOP_TYPE(op), TCGOP_FLAGS(op))); +#endif + if (def->nb_iargs + def->nb_oargs == 0) { return NULL; }