[pcmoore-audit:working-testing 5/6] kernel/audit.c:1456:2: note: in expansion of macro 'if'

kbuild test robot fengguang.wu at intel.com
Sat Nov 12 00:49:58 UTC 2016


tree:   git://git.infradead.org/users/pcmoore/audit working-testing
head:   a49c8e50dda0d0232dfbed567608724c9666b6ab
commit: 20fb66989030c8f631d687ddaca75b9f7f2ee589 [5/6] Work in progress, no commit description yet.
config: x86_64-randconfig-s2-11120755 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 20fb66989030c8f631d687ddaca75b9f7f2ee589
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/file.h:8:0,
                    from kernel/audit.c:46:
   kernel/audit.c: In function 'audit_log_start':
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
   kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
     if ((!audit_pid && audit_pid != current->tgid) &&
     ^~
   include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
    #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
                             ^~~~~~~~~~~~~
   kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~

vim +/if +1456 kernel/audit.c

  1440		struct timespec t;
  1441		unsigned int uninitialized_var(serial);
  1442	
  1443		if (audit_initialized != AUDIT_INITIALIZED)
  1444			return NULL;
  1445	
  1446		if (unlikely(!audit_filter(type, AUDIT_FILTER_TYPE)))
  1447			return NULL;
  1448	
  1449		/* XXX - wait on a possible backlog only under these conditions:
  1450		 * 1. audit_backlog_limit is non-zero
  1451		 * 2. current != auditd
  1452		 * 3. ACCESS_ONCE(audit_cmd_mutex.owner) != current
  1453		 * 4. ???
  1454		 */
  1455	
> 1456		if ((!audit_pid && audit_pid != current->tgid) &&
  1457		    (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
  1458			long sleep_time = audit_backlog_wait_time;
  1459	
  1460			while (audit_backlog_limit &&
  1461			       (skb_queue_len(&audit_queue) > audit_backlog_limit)) {
  1462				/* wake kauditd to try and flush the queue */
  1463				wake_up_interruptible(&kauditd_wait);
  1464	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27929 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20161112/5d0b9ba2/attachment.gz>


More information about the Linux-audit mailing list