mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Chanho Min <chanho.min@lge.com>
Cc: kbuild-all@01.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Pavel Machek <pavel@ucw.cz>, Len Brown <len.brown@intel.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	Christian Brauner <christian@brauner.io>,
	Oleg Nesterov <oleg@redhat.com>,
	Anna-Maria Gleixner <anna-maria@linutronix.de>,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Seungho Park <seungho1.park@lge.com>,
	Chanho Min <chanho.min@lge.com>
Subject: Re: [PATCH] freezer: fix freeze timeout on exec
Date: Sun, 11 Nov 2018 17:50:18 +0800	[thread overview]
Message-ID: <201811111727.GNukcNQd%fengguang.wu@intel.com> (raw)
In-Reply-To: <1541671796-8725-1-git-send-email-chanho.min@lge.com>

[-- Attachment #1: Type: text/plain, Size: 4532 bytes --]

Hi Chanho,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc1 next-20181109]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Chanho-Min/freezer-fix-freeze-timeout-on-exec/20181111-171200
config: i386-randconfig-x070-201845 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:5:0,
                    from include/linux/atomic.h:7,
                    from include/linux/crypto.h:20,
                    from arch/x86/kernel/asm-offsets.c:9:
   include/linux/freezer.h: In function 'try_to_freeze_unsafe':
   include/linux/freezer.h:64:30: error: dereferencing pointer to incomplete type 'struct signal_struct'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
                                 ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> include/linux/freezer.h:64:2: note: in expansion of macro 'if'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
     ^~
   include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
                           ^~~~~~~~~~~~~~~~
   include/linux/freezer.h:64:6: note: in expansion of macro 'unlikely'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
         ^~~~~~~~
   include/linux/freezer.h:64:40: error: 'SIGNAL_GROUP_EXIT' undeclared (first use in this function)
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
                                           ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> include/linux/freezer.h:64:2: note: in expansion of macro 'if'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
     ^~
   include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
                           ^~~~~~~~~~~~~~~~
   include/linux/freezer.h:64:6: note: in expansion of macro 'unlikely'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
         ^~~~~~~~
   include/linux/freezer.h:64:40: note: each undeclared identifier is reported only once for each function it appears in
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
                                           ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> include/linux/freezer.h:64:2: note: in expansion of macro 'if'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
     ^~
   include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
                           ^~~~~~~~~~~~~~~~
   include/linux/freezer.h:64:6: note: in expansion of macro 'unlikely'
     if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
         ^~~~~~~~
   make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/if +64 include/linux/freezer.h

    50	
    51	/*
    52	 * DO NOT ADD ANY NEW CALLERS OF THIS FUNCTION
    53	 * If try_to_freeze causes a lockdep warning it means the caller may deadlock
    54	 */
    55	static inline bool try_to_freeze_unsafe(void)
    56	{
    57		might_sleep();
    58		if (likely(!freezing(current)))
    59			return false;
    60		/*
    61		 * we are going to call do_exit() really soon,
    62		 * we have a pending SIGKILL
    63		 */
  > 64		if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
    65			return false;
    66		return __refrigerator(false);
    67	}
    68	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27301 bytes --]

  parent reply	other threads:[~2018-11-11  9:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 10:09 Chanho Min
2018-11-08 10:50 ` Oleg Nesterov
2018-11-09  0:29   ` Chanho Min
2018-11-09  7:50   ` Chanho Min
2018-11-11  9:50 ` kbuild test robot [this message]
2018-11-11  9:51 ` kbuild test robot

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=201811111727.GNukcNQd%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=anna-maria@linutronix.de \
    --cc=chanho.min@lge.com \
    --cc=christian@brauner.io \
    --cc=ebiederm@xmission.com \
    --cc=kbuild-all@01.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=pavel@ucw.cz \
    --cc=rjw@rjwysocki.net \
    --cc=seungho1.park@lge.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®