[LTP] [PATCH v1 1/1] keyctl05: increase dns_res_payload data due to kernel code changes

Pengfei Xu pengfei.xu@intel.com
Thu Jan 11 09:24:52 CET 2024


On 2024-01-11 at 09:25:49 +0100, Petr Vorel wrote:
> > Hi Petr,
> 
> > On 2024-01-10 at 18:59:31 +0100, Petr Vorel wrote:
> > > Hi Xu,
> 
> > > Good catch, merged.
> 
> > > BTW any change how to trigger autoload of dns_resolver ?
> 
> > > # ./keyctl05
> > > ...
> > > keyctl05.c:99: TCONF: kernel doesn't support key type 'dns_resolver'
> > > ...
> 
> > > # modprobe dns_resolver
> > > # ./keyctl05
> > > ...
> > > keyctl05.c:143: TPASS: updating 'dns_resolver' key expectedly failed with EOPNOTSUPP
> > > ...
> 
> > > We consider modprobe as the last result.
> 
> > Yes, it needs to load dns_resolver module to test it.
> > Or set kconfig CONFIG_DNS_RESOLVER=y.
> 
> Well, that would not work for kernels in linux distros.
> Therefore I'll send a patch to add modprobe functionality.

  Ah, ok, yes, it's better to check the module before the test.

> 
> > Due to the bundary issue fixed patch as follows, I will send another patch to
> > set to 6 bytes coming data for add_key syscall for passed boundary checking:
> > https://lore.kernel.org/all/1784441.1704907412@warthog.procyon.org.uk/
> 
> Thank you!
> 
> FYI we're planning LTP release in the end of month, it'd be great if you send
> patch soon so that fix is included.

Thanks for your info, and here is the link for new patch:
https://lore.kernel.org/ltp/48efcb1293a682182fc5db23f01be7af2889e26c.1704949719.git.pengfei.xu@intel.com/T/#u

Thanks!

> 
> Kind regards,
> Petr
> 
> > BR,
> > Thanks!
> 
> 
> > > Kind regards,
> > > Petr


More information about the ltp mailing list