From nobody Sun Mar 23 14:12:28 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZLJ6X0j62z5rMZ2 for ; Sun, 23 Mar 2025 14:12:36 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZLJ6W1t05z3crb; Sun, 23 Mar 2025 14:12:35 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Uas70BJk; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=markjdb@gmail.com Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-224019ad9edso86229895ad.1; Sun, 23 Mar 2025 07:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742739153; x=1743343953; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=x+5WTgg803GbDj1BrnH920ZupMMULoDoSwcyPOi+QjA=; b=Uas70BJkMozOH+OMIUXBsH1UvM/O3q9B7oQvepOAvZMtILQYbb5QSc/J47+20I4FYJ 1EcgkTA08F6HH5WVh77WTbBixNmO/URi5+QaOsO/lrsKpdvbewyoyTVKKsE2lvUXKWTP Mqoq7qQuvKzqaXAUFygz2Lr+AiQNGHNZ3fw8jA6WSXWFHuqts2J2vAA2BAnMwd6uitJl MoASoorFzEhLYQTGsSrUECOd8c+3YKKj0jFsePoEaZm0c5+nPv/tyF+Sgb90CHB0EtYZ 2Hp50EI0W26gH2L+Esx05gu0t6OBgVAti1rPz/6Gu867X04gSk8j/wp2/01sWO8e3ssS 4ecA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742739153; x=1743343953; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x+5WTgg803GbDj1BrnH920ZupMMULoDoSwcyPOi+QjA=; b=WSgGRGo+gGLkxavPQ3ga2oZ9Yo7lFasLxRcSv1lxIKgrVHdmmNSLbH8xqLzTWcRbyM KrQ9qFok2pwxpR/yssmbNDnumDnNS7tGqCWyc1Z5k8ST6xvovSGrG1yJDPbWZiqoEPew ISBXLTVrXdUWnrVE744b/6CHmDDrRO97UxKUcu5+dHn9roxArzE3lFVow4QUurxyolrS DUVxHOqiqNVxfr0+gCW9WFwxfZ3K7Yx82pzPD8NBD+O5EmvE8FKlaU7rl+bQ57y9rnO5 35Ffj67CAv/1QBT91DnUSWMjxXsb8wHN/RccUfz+ZIsMkCREGxVstyJNaRJDgIPklaEt ZWVg== X-Forwarded-Encrypted: i=1; AJvYcCVaz3mQYPDmR2y4OmEe4+oXHfG3ubkAfUgc374dztkMiZfhc2AZtSXFs8mpBfwmKKscyA==@freebsd.org, AJvYcCVeV3/zew2BAyTRQF7BDH0f/lZ+zKDyclHjekiQ2NexQ9kV55E2RtySVnefXankWrTL+m/q@freebsd.org, AJvYcCWDW0bspRcAAccauvG7ryi8Ho23fKmKcaXtaZqLPL8AmGIZrX84eaFxhHLjVbIsCrf3T98XdX2fDQ==@freebsd.org, AJvYcCWxajiiHNP6DHojWgyEkpIc0mdquB2q3F17NjYd4okzzTDhqRDHGKM4zPs45seVL4d6x8O2@freebsd.org X-Gm-Message-State: AOJu0YyZBoOJysiz9oceXglIsZryUQ8N7FaKiDwqxJuobuaMKiDAesD4 YhGdhVD6bNdNakBGuhfVPsmFRJvoEFotsGsdlXHqjEtG2bC9YYeR6++tb4bb X-Gm-Gg: ASbGncsMWyVsD3/8KXMt8dLO4XLd5D5J8LkpH90sYKVthRKuseeJSljFi1ytdrVFAJ3 bjW4A8ajjYmIuau812KkCppM9x2VIWP7+oCReN51/BXPEXV9yDlTviafCsK6NCdGIlZ83s0mB4d oCerFwSWTrSgvpzcVzx5sH+gnfGZSA0KOOT9ffienwLzD1vY1jjp1UM55LooWly1Cr6pNHAKl7t +rqj8BnPFdWV8NVw9jAszj/k/GObeY0hTcqbOUJ4fQ8uvZKRvH/GxE71ktNsZpCSpY+k8RQtDX7 3rP2DJpVPkJ+RIoKysaGXUZH692iyNXsUpytAwAwqYO+NkkSbCW5cg/G7hCs5GaZGn0= X-Google-Smtp-Source: AGHT+IFn2whG2YmMexHEl3/YCeQWW/NxS5idZShNteiYKOHfssIGMUXrd+8WbtuCy/ZU5MXr09HqIA== X-Received: by 2002:a17:902:db12:b0:216:3d72:1712 with SMTP id d9443c01a7336-22780e1a30emr181653955ad.48.1742739152965; Sun, 23 Mar 2025 07:12:32 -0700 (PDT) Received: from framework (M106185150005.v4.enabler.ne.jp. [106.185.150.5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22780f50c80sm51841615ad.104.2025.03.23.07.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Mar 2025 07:12:32 -0700 (PDT) Date: Sun, 23 Mar 2025 10:12:28 -0400 From: Mark Johnston To: Gleb Smirnoff Cc: David Wolfskill , "Bjoern A. Zeeb" , current@freebsd.org, kib@freebsd.org, jhb@freebsd.org Subject: Re: Possible video driver issue after main-n275966-d2a55e6a9348 -> main-n275975-5963423232e8 Message-ID: References: <01qqq28n-p1s3-n82q-9n1s-7o900ro5n62q@SerrOFQ.bet> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-2.52 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.988]; NEURAL_HAM_MEDIUM(-0.93)[-0.928]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), DKIM not aligned (relaxed),none]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::631:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[current@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_FIVE(0.00)[6] X-Rspamd-Queue-Id: 4ZLJ6W1t05z3crb X-Spamd-Bar: -- On Sat, Mar 22, 2025 at 12:04:25AM -0700, Gleb Smirnoff wrote: > On Fri, Mar 21, 2025 at 11:13:53AM -0700, David Wolfskill wrote: > D> OK; I started on my secondary laptop (Dell Precision 7520) after having > D> updated the "head" slice to main-n276038-6f6c07813b38 earlier today (and > D> verifying that the initial concern -- that it doesn't appear to complete > D> the transition to graphics mode and appears to emulate a power-consuming > D> brick) still occurred), I copied that slice to a different one (slice 2) > D> and booted from it (using a kernel from a week ago, > D> main-n275966-d2a55e6a9348). > D> > D> I then applied Mark's patch (cleanly; no issues), then > D> rebuilt/installed the kernel, then rebooted... and stuff seems to work; > D> I get the xdm login banner Just Fine (and I can ssh into it normally). > > Thanks, David! > > Mark, can you please push your patch before the stabweek cutoff > that happens early Monday? Sure, done: https://cgit.freebsd.org/src/commit/?id=74361d693aec892b01c1553bda7176f8d341b2ff BTW, in the longer term I think redzone (and maybe memguard(9)) should eventually go away in favour of KASAN, which can catch the same bugs, and more usefully at that. Right now KASAN's integration into UMA is not as good as it should be in that it doesn't explicitly insert redzones around each allocation; it will however mark redzones if they arise naturally (e.g., when malloc(9)ing 24 bytes you'd get a 32-byte object, and an access beyond the 24 bytes would be a sanitizer violation). However, that should be straightforward to fix. Then, you'd get checking not just for malloc(9) allocations, but for everything from UMA. And, overflows would be caught at the point where they actually occur.