From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by sourceware.org (Postfix) with ESMTPS id 88A6A3858D33 for ; Tue, 6 Feb 2024 14:49:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 88A6A3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 88A6A3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::b2e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707230999; cv=none; b=ieE+IoOn+hQcJ+Tt6Jum9U4gme3eAdQule6BgtISV1Bh2kYDH2CmDlNBp8bTzn0ADpoxff4RXD2ORj2cqqp1rKALWIoCmzKiV4RsVGt6fBhKE0lorfaJ5G4/K59ozZFr+L7RYviYlZi8BqZ/2WKwLMp6FsfNbB6iFFY42Q/w3bY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707230999; c=relaxed/simple; bh=x3McS/wSHqxL/Hcsgn7JPa+SG4WBuR+WmaznE+Kc6yU=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=YvkcqT6rQEOcGrOOGvEF4ihwp5UNrW+IjuS8M0Os4cefWNK1OvNhO3vkX0VEmR923RMTfPfsWGcvx703VOMatdqFZl6Bn2TQzAdhs6tvChwoOXFKpI+1PcV4OnlFr0wXIoPissx944SQKfGdlvCXri33ghGnIrRjhoXJ44N081I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-dc6d5206f18so993746276.1 for ; Tue, 06 Feb 2024 06:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707230997; x=1707835797; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=As8KBbbDruFm3w4VHRiKxEYEr/ynqApZPlqrTB4am1E=; b=DhCT+9l6arNC/L9706MYhm+67aFfklmrpCqCNUyMsA3UDB1I2Iz57zSXeVl4Kpp71X s+d5O9NAjlbLg+GUaHfOPPZdB0EhmUIFDrm/HsLggvo3A/FqTx/r5pre+0fIKMx3+Lc5 NcSvFk7WFn3TfbvBA3dKm1sjg28lG7OwjaGaU8KclTIkCJgJo9v/GkYCgXxY4YEgC0ui t87OMdZWtvU2nKc7eCfmtN8iBb8U1I12lJ3XyzMtFSbX9m5bUeEDMxtGKIJ07oRuR9HV sY+FFD3mFAjN30oTZnQfI8kzZkXiISWfrdD4cVfFp2711xN7iYfifq/6Z08JBezRIzAU T0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707230997; x=1707835797; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=As8KBbbDruFm3w4VHRiKxEYEr/ynqApZPlqrTB4am1E=; b=nQXynMflHIIEkyCqKqGBrpLbCpmpVGq4b8uBZtCHZaxLDou22fpX3++CrkUPKJg+5s SLhkwzCx+0CNTxDmxqt5dGLr7A2mdROHnFpXg2+CgitT97MhQ29I+4yS7RQaa+4Kkf2V vihCJiW0O3seTfvk36+QmYlK35JOm/wjThXxW+1G5kk5NFyxnf34IRT6Mjv52MVNvqEd 9p4EEzIKg29aUaO7zM8Hl9YrZgFLoeJG5mnFluEsyxi4lAc3d954Aos8j7Pcy37f27tj AHXuiYj4+k5WY/w/DCh2PiDGIFsbGPu//ar89W72ayJOPI2OJtrw4wXRXLM+f1NxI+Vq PgtA== X-Gm-Message-State: AOJu0YzXVelbMAWxLBy0I94jSmMFpPbxU9p3Mq3praAILVStnWKQhi4q svgk2oEdqRLCNuZNZ3C/a/QM9ILG6MEV0lQWUL+t/0RV9QIqcgLOEO1N4w63g+N7sb7b5Qwe9se uRjJ+0/UOGE6JVoxzC0vQG7lbhEM= X-Google-Smtp-Source: AGHT+IHNKvNiC2hDYzagOdoVUZvSPT44pHwjixuPm8CEWMIZlQkoz+SRjcjFgbBozR+WoWpRVGRzZZPEQsgBH8c+5Mc= X-Received: by 2002:a05:6902:2381:b0:dbd:3b24:51f1 with SMTP id dp1-20020a056902238100b00dbd3b2451f1mr2060223ybb.35.1707230996839; Tue, 06 Feb 2024 06:49:56 -0800 (PST) MIME-Version: 1.0 References: <20240205200028.219844-1-hjl.tools@gmail.com> <4b1c3da8-d218-460b-89e6-6844096ed393@suse.com> <533a896f-8eec-b73b-cb18-26240ad822fc@suse.de> In-Reply-To: <533a896f-8eec-b73b-cb18-26240ad822fc@suse.de> From: "H.J. Lu" Date: Tue, 6 Feb 2024 06:49:21 -0800 Message-ID: Subject: Re: [PATCH] x86: Warn .insn instruction with length > 15 bytes To: Michael Matz Cc: Jan Beulich , binutils@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3014.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Feb 6, 2024 at 6:43=E2=80=AFAM Michael Matz wrote: > > Hello, > > On Tue, 6 Feb 2024, H.J. Lu wrote: > > > > > We issue a warning when something is wrong in input, but still mana= ge > > > > to generate an instruction. This is an error case. > > > > > > I disagree. It was a warning until you changed it (without me really > > > agreeing), and some hypothetical vendor could come and lift the limit= , > > > on precisely the basis that there are legal encodings exceeding it. I= 'm > > > okay if this can be forced to be an error, but I continue to think th= at > > > it ought to be a warning only by default. > > > > > > > It is an error on both Intel and AMD processors. There is no > > valid reason not to be an error at the moment. > > Jan gave you one. I would prefer for the assembler to not be anally That is not a valid reason. There is no such processor in the foreseeable future. > retentive. An error that can be disabled is completely enough for this. > > (I would wish for a general demote-all-errors-to-warnings option, like we > already have a promote-all-warnings-to-errors; but lacking this an option > to merely disable "errors" for avoiding specific random hardware behaviou= r > would be fine as well) > > > Ciao, > Michael. --=20 H.J.