[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 01/24] XSM: reduce redundancy in hook machinery


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Sun, 2 Aug 2026 10:46:19 -0400
  • Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1785681976; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=kzbKdiqKfTJpZx1LkDJ90vqeYWH3KR+8s82icRqzEnw=; b=BK4MqGoQVy07at+Ah2nTYuVntosF2cvhw/jT4RvmmIXiNXBfoSQmcKbFf+amG2IXDBxa5CrZs2EQeMmdkcle0BP59sFjZMFxRY8sblJmaig8V7DapFIG/9qFrEk1sHAm8zf4FNBxs+nwZHrxbII5QM6QpZDLSRCsgZvrKmtq1kw=
  • Arc-seal: i=1; a=rsa-sha256; t=1785681976; cv=none; d=zohomail.com; s=zohoarc; b=HRDJ5TU4A/2Q+ugBz1yN3EHE5j2GRSNS/7EVriDnj+UeFvsH0y5Y8lyneUxhVwAN3v10S2v0Gg8q/ORNriJ3S7+e1xyUkjD4k3GmQGHSgdeHtR/IRdEz36nVIt7w1SfmUMdEaRrowdjC+OfVwDUgoLb633hDf4YKMVnsB+hE1yI=
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=zoho header.d=apertussolutions.com header.i="dpsmith@xxxxxxxxxxxxxxxxxxxx" header.h="Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To:Content-Type:Content-Transfer-Encoding"
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Sun, 02 Aug 2026 14:46:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>



On 7/31/26 4:03 AM, Jan Beulich wrote:
On 30.07.2026 20:21, Daniel P. Smith wrote:
On 7/30/26 11:18 AM, Jan Beulich wrote:
On 30.07.2026 17:05, Daniel P. Smith wrote:
On 7/28/26 9:13 AM, Jan Beulich wrote:
Hooks not taking xsm_default_t as first argument could of course be
adjusted to take one, at which point they could be covered here as well.
Question is why there is this difference in the first place.

I have a theory but I am not confident to write it down. I can see if I
can confirm with DDG if you really care that much to know the why.
Personally having a consistent hook interface convention would provide a
simpler pattern for people to follow if they are having to introdcue a
new hook.

Well, I don't really need to know the reason. If you agree that making
things uniform is a good move, I can simply stick a few more patches at
the end of this series.

Correct me if I am wrong, but we would be introducing an unused
parameter in exchange for uniform interfaces that can be generated with
machinery reducing hook maintenance overhead. IMHO I feel from a
security standpoint this would be a win. Would you disagree?

Definitely not. What I'm unsure is whether I'd call this a security related
win. To me it's more a win in maintainability in general. Which of course
(typically) also helps security of the resulting code.

That's what I was intending in that statement, Reducing fragility in code/maintenance increases stability and thus security.

v//r,
dps




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.