From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by sourceware.org (Postfix) with ESMTPS id 100F93858D33 for ; Tue, 6 Feb 2024 15:34:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 100F93858D33 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 100F93858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::b32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707233697; cv=none; b=u9GxET8yGSG5psgQ/phnDCwWEQEa2KH6/r6+rQ51E2dVGY2UFZQTWB6DbxhpRsTlWJ0JiZPQeL9zwyBd4w0wjyFaPgZZXO/vKRrttGmilVhkJ9ro+LEqJlqHCWBWbP1SQNjZzPKUKjIUoUWQCtyUX+7Q1sEydbFVuOMV/hEt4Ss= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707233697; c=relaxed/simple; bh=0SiZXPfg6iMlSAOnPbzlFdS4XVSqmGVs+R7iVlvXfz4=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=tGIT3EFtbP4uMvQdYhEmTRnS6HIoIUWjPqUhoVcJj5eOY+m6sEdisBcXUPixCl2G5sDTZjMsfQ7aN91RYBS0H/IAQkClVmqlkhX/EXF/vyYjX+eQGaV4LQnN+JcbxClbW04PmVN9h2Yo7wCYK7TnNj5a6TlbtKdl9OWy90Iuhiw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-dbed0710c74so4958765276.1 for ; Tue, 06 Feb 2024 07:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707233693; x=1707838493; 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=xBK3qdaG5gK+0iN+0UkrpYx208UafAgSxGbf1wMZWOs=; b=gp2zwP0cYzx4ALUN4nzShGqhwTFv9cWU8LWMtnKwa+rUjRPFeyohArij2p174b4Euv 5SGPABRiMe9MqacuQF6fZcH3bdumFmUtoHwheutGR7wySN+y3XdzLaeyTadRIVH7tK4F T3iNB1aqzB4bW2Ehd4S3iMsdGmqiXzJiunCMuisyl6OnGE6kfsH7O5hX4hA5NT4oIaCU BFoEKbFiJM4OQIWKieNNTuQSKg+IptZGQJMCEmwudvIlNmHyy7SKmRa9OHmKbCoWeFWT jZ8XMkJayHcSsq1yiESGB7AW4HUolZrQtoEMf8oEI1+fVA0Cyaz3wrfcIgKlkbmFyjj2 +0Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707233693; x=1707838493; 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=xBK3qdaG5gK+0iN+0UkrpYx208UafAgSxGbf1wMZWOs=; b=mbKjtVZ7p0j+JQm06PR7NaGQbo5hiSC6n7g4wcG994GnTzmh8KOF9MAK7uJbrWfV9b omR6dhYHyl0WeJ+WUEvnsj6xrJZCpXuFedW86aqNaZcwzgRi8LQRmRQh4Z7a2E/LtsYm 5PPR1ekPeiLOGKA7c4G2g5+qHol/LwVq7jX+NkyHXGmWZ+cp+PF7ioDOb9uuNqIz3dHj VGAGyhEYGtzGp0yYmbdI0r4ZrfMOjNrLGdBp5Gu3cIlGoUH6PKVO4bS4Xve1IHQtCXR6 G3RPBam8aCq6SFI5wHHJPa4tgMRuyAwy1XCQ46yPcTKZVSV1f5a7d/QbGFJVKExML1H0 EL1A== X-Gm-Message-State: AOJu0YwXL2pr+rYF+Dax2wkpxuIC90+CGVON09IqHEYm3tG1nZYokSse 8xeappx+rLihvQzaclUhiGaSgzAGkBFPFPITOLsSKfbhbcvPJm0NKFaK3jdU0vUzC33aX4ub4hh 1zsX5x5MT7JlFCe180N48aGG4F9tsr3Yz X-Google-Smtp-Source: AGHT+IG08P325sYCc9OgCyF2yLV2fMaBsGvyE0fCsPPqlvYii0b6yI+3CI3Fv0kxuVddSJAfoKyA6JuusnMPm/rTcPc= X-Received: by 2002:a5b:8c9:0:b0:dc2:281a:c77c with SMTP id w9-20020a5b08c9000000b00dc2281ac77cmr1941844ybq.22.1707233693392; Tue, 06 Feb 2024 07:34:53 -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> <8059bdee-392a-b9cd-41d5-8dea538c957c@suse.de> In-Reply-To: <8059bdee-392a-b9cd-41d5-8dea538c957c@suse.de> From: "H.J. Lu" Date: Tue, 6 Feb 2024 07:34:17 -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 7:04=E2=80=AFAM Michael Matz wrote: > > > > > > I disagree. It was a warning until you changed it (without me rea= lly > > > > > agreeing), and some hypothetical vendor could come and lift the l= imit, > > > > > on precisely the basis that there are legal encodings exceeding i= t. I'm > > > > > okay if this can be forced to be an error, but I continue to thin= k that > > > > > 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. > > Yes it is. > > > There is no such processor in the foreseeable future. > > Doesn't matter. > When a warning is given, a decodable instruction should still be generated. Assembler shouldn't generate something which can't be decoded by default. --=20 H.J.