All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randolph Sapp <rs@ti.com>
To: Randolph Sapp <rs@ti.com>,
	Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>,
	<richard.purdie@linuxfoundation.org>, <ross.burton@arm.com>,
	<alex@linutronix.de>, <otavio@ossystems.com.br>,
	<kexin.hao@windriver.com>, <afd@ti.com>, <detheridge@ti.com>,
	<denis@denix.org>, <reatmon@ti.com>
Cc: <openembedded-core@lists.openembedded.org>, <vijayp@ti.com>
Subject: Re: [oe-core][PATCHv6 0/5] Display manager proposal for x11 and wayland
Date: Fri, 6 Jun 2025 18:49:24 -0500	[thread overview]
Message-ID: <DAFUPHGYYRT1.2FFSY7HLVS32B@ti.com> (raw)
In-Reply-To: <DAE5YENHYCZ0.39HEAHC58A3FV@ti.com>

On Wed Jun 4, 2025 at 7:12 PM CDT, Randolph Sapp wrote:
> On Wed May 28, 2025 at 6:53 AM CDT, Mathieu Dubois-Briand wrote:
>> On Wed May 28, 2025 at 12:16 AM CEST, Randolph Sapp wrote:
>
> [snip]
>
>>> Ah, the auth failures persist. Normally this is caused when the user attempts to
>>> login before the user account was created or something unusual like that. I
>>> don't suppose there's any way this could be happening on the test machines?
>>>
>>> I'm not able to reproduce this locally, but my build config is different. I tend
>>> to use oe-core and nodistro instead of poky. They aren't playing around with the
>>> reproducible build date stuff or anything like that are they?
>>>
>>> Well, I mean I did see this on occasion. The first login attempt almost always
>>> failed, but the subsequent attempts were fine. Bumping the attempt count back up
>>> the default (2) was enough to resolve it on my end, but evidently it's not
>>> enough here.
>>>
>>> This is not happening on hardware from what I'm seeing.
>>
>> Hi Randolph,
>>
>> I was able to reproduce it locally, with the following configuration:
>> - https://git.yoctoproject.org/poky-ci-archive on tag
>>   autobuilder.yoctoproject.org/valkyrie/a-full-1630.
>> - template local.conf, with the following modifications:
>>   MACHINE = "qemux86"
>>   DISTRO = "poky-altcfg"
>>   SDKMACHINE = "x86_64"
>>   PACKAGE_CLASSES = "package_rpm package_deb package_ipk"
>>   INHERIT += 'image-buildinfo'
>>   IMAGE_BUILDINFO_VARS:append = ' IMAGE_BASENAME IMAGE_NAME'
>>   PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'
>>   IMAGE_ROOTFS_EXTRA_SPACE:append = '${@bb.utils.contains('IMAGE_FEATURES', 'package-management', ' + 262144', '', d)}'
>>   IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'
>>   SANITY_TESTED_DISTROS = ''
>>   OE_FRAGMENTS += 'core/yocto-autobuilder/autobuilder core/yocto-autobuilder/autobuilder-resource-constraints'
>>   # (Plus my own sstate cache and downloads dir).
>> - bitbake core-image-sato
>> - bitbake core-image-sato:do_testimage
>>
>> Of course using the tag from poky-ci-archive is not mandatory, you
>> should see the same behaviour with master branch and your patches.
>>
>> I saw some oe-selftest was also failing on the autobuilder, with an
>> error related to emptty. You can reproduce it with:
>>
>> oe-selftest -r sstatetests.SStateHashSameSigs3.test_sstate_sametune_samesigs
>
> Status report, since it's been a little bit.
>
> Seems this some i386/x86 fault only exposed in this specific environment. I was
> unable to reproduce it on Archlinux32. I've traced it back to a SEGFAULT when we
> attempt to execute mcookie as the target user. Odd stuff. Delve and gdb aren't
> helping me here. Running some more tests to see if I can corner this some other
> way.
>
> - Randolph

Well, I managed to determine this is specifically an issue after loading libpam
and attempting to authenticate.

Seems like loading both common-auth and common-account before calling
pam_acct_mgmt results in the above described segfault.

There are 3 pam interactions made after the initial auth.
	1. pam_acct_mgmt
	2. pam_set_item
	3. pam_setcred

Loading only common-account reports that pam_acct_mgmt fails with the PAM_SILENT
flag set.

Removing that flag makes the later pam_setcred fail, but allows pam_acct_mgmt
and pam_set_item to work correctly. Removing the call to pam_acct_mgmt
altogether seems to allow pam_setcred to work.

Removing the call to pam_acct_mgmt also allows both common-auth and
common-account to be loaded without triggering the segfault.

Very unusual. Everything points at the obvious "arch specific problems with the
go pam wrapper", but other distributions don't seem to have this issue and
nothing seems particularly wrong with the wrapper itself. Could be a
manifestation of multiple issues though, considering how much the behavior
changes depending on what pam modules are loaded.

Guess I have some reading to do this weekend.

- Randolph


  reply	other threads:[~2025-06-06 23:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-20 23:39 [oe-core][PATCHv6 0/5] Display manager proposal for x11 and wayland rs
2025-05-20 23:39 ` [oe-core][PATCHv6 1/5] libx11: create tmpfile dir for x11 domain socket rs
2025-05-20 23:39 ` [oe-core][PATCHv6 2/5] emptty: add version 0.14.0 rs
2025-05-20 23:39 ` [oe-core][PATCHv6 3/5] weston-init: convert to virtual-emptty-conf rs
2025-05-20 23:39 ` [oe-core][PATCHv6 4/5] weston: remove deprecated weston-start scripts rs
2025-05-20 23:39 ` [oe-core][PATCHv6 5/5] xserver-nodm-init: convert to virtual-emptty-conf rs
2025-05-21 15:58 ` [oe-core][PATCHv6 0/5] Display manager proposal for x11 and wayland Mathieu Dubois-Briand
2025-05-27 22:16   ` Randolph Sapp
2025-05-28 11:53     ` Mathieu Dubois-Briand
2025-06-05  0:12       ` Randolph Sapp
2025-06-06 23:49         ` Randolph Sapp [this message]
     [not found]         ` <1846990D23EB4550.17668@lists.openembedded.org>
2025-06-14  1:04           ` Randolph Sapp
     [not found]           ` <1848C33B8404DBE8.1272@lists.openembedded.org>
2025-09-05 18:52             ` Randolph Sapp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DAFUPHGYYRT1.2FFSY7HLVS32B@ti.com \
    --to=rs@ti.com \
    --cc=afd@ti.com \
    --cc=alex@linutronix.de \
    --cc=denis@denix.org \
    --cc=detheridge@ti.com \
    --cc=kexin.hao@windriver.com \
    --cc=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=otavio@ossystems.com.br \
    --cc=reatmon@ti.com \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=ross.burton@arm.com \
    --cc=vijayp@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.