All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] LTP testcase(sysctl02) failed
Date: Tue, 5 Jan 2021 12:31:53 +0100	[thread overview]
Message-ID: <X/ROKQGrQ4OKAbu0@yuki.lan> (raw)
In-Reply-To: <0efaa481ffd24bc48fd41385159be66c@exch01.asrmicro.com>

Hi!
> I am currently condulting Ltp test for our own yocto project, now I encouter below error.
> 
> sysctl02_sh                                        FAIL       1
> sysctl02 1 TFAIL: /proc/sys/fs/file-max overflows and is set to 0
> sysctl02 2 TINFO: trying to set fs.file-max=18446744073709551615
> sysctl02 2 TPASS: /proc/sys/fs/file-max keeps old value (33398)
> sysctl02 3 TINFO: trying to set fs.file-max=9223372036854775808
> sysctl02 3 TFAIL: /proc/sys/fs/file-max overflows and is set to 0
> sysctl02 4 TCONF: kernel doesn't support KASAN
> 
> after investigated it, this testcase is for bufffer overflow, I checked source code (kernel 4.19),
> all of required patched had been applied, I dig into it and found new patch applied as flow , that might make testcase failed
> 
> commit b227f15712691096027163a4600a7af1c4864320
> Author: Christian Brauner <christian@brauner.io>
> Date:   Thu Mar 7 16:29:43 2019 -0800
> 
>     sysctl: handle overflow for file-max

...

> so is this testcase out of date or something wrong wih my kernel ?
> who can help me figure this out? Thanks in advance.

If you look into the testcase source there is a comment that the test is
a regression test for this commit as well.

Also if I remember correctly if you manage to overflow and set the
file-max to 0 the system will crash sooner or later. So if the test
manages to set it to 0 your kernel is either missing this patch or the
bug has been reintroduced.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2021-01-05 11:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-24  5:56 [LTP] LTP testcase(sysctl02) failed Gao =?unknown-8bit?b?TWVpdGFv77yI6auY546r5rab77yJ?=
2021-01-05 11:31 ` Cyril Hrubis [this message]
2021-01-15  6:14 ` Joerg Vehlow
2021-01-15  8:29   ` [LTP] 答复: " Gao =?unknown-8bit?b?TWVpdGFv77yI6auY546r5rab77yJ?=
2021-01-15 12:49   ` [LTP] " Cyril Hrubis
2021-02-05  9:12     ` Joerg Vehlow

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=X/ROKQGrQ4OKAbu0@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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.