lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170515081438.GI15250@yexl-desktop>
Date:   Mon, 15 May 2017 16:14:38 +0800
From:   kernel test robot <xiaolong.ye@...el.com>
To:     Martin KaFai Lau <kafai@...com>
Cc:     netdev@...r.kernel.org, Daniel Borkmann <daniel@...earbox.net>,
        Hannes Frederic Sowa <hannes@...essinduktion.org>,
        Alexei Starovoitov <ast@...com>, kernel-team@...com, lkp@...org
Subject: [lkp-robot] [bpf]  de05014aba:
 BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h


FYI, we noticed the following commit:

commit: de05014aba8054e1353b720b814a0cd8ea7594e5 ("bpf: Introduce bpf_prog ID")
url: https://github.com/0day-ci/linux/commits/Martin-KaFai-Lau/bpf-Introduce-bpf_prog-ID/20170428-025859


in testcase: perf-sanity-tests
with following parameters:




on test machine: 8 threads Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz with 8G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+-----------------------------------------------------------------------------+------------+------------+
|                                                                             | b1513c3531 | de05014aba |
+-----------------------------------------------------------------------------+------------+------------+
| boot_successes                                                              | 9          | 3          |
| boot_failures                                                               | 1          | 6          |
| BUG:sleeping_function_called_from_invalid_context_at_kernel/printk/printk.c | 1          |            |
| BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h              | 0          | 4          |
| invoked_oom-killer:gfp_mask=0x                                              | 0          | 2          |
| Mem-Info                                                                    | 0          | 2          |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes            | 0          | 2          |
+-----------------------------------------------------------------------------+------------+------------+



[   45.458682] BUG: sleeping function called from invalid context at mm/slab.h:432
[   45.458682] in_atomic(): 1, irqs_disabled(): 0, pid: 12359, name: perf
[   45.458684] CPU: 5 PID: 12359 Comm: perf Not tainted 4.11.0-rc8-02027-gde05014 #1
[   45.458684] Hardware name:                  /DH67GD, BIOS BLH6710H.86A.0132.2011.1007.1505 10/07/2011
[   45.458685] Call Trace:
[   45.458691]  dump_stack+0x63/0x8a
[   45.458693]  ___might_sleep+0xd3/0x120
[   45.458693]  __might_sleep+0x4a/0x80
[   45.458695]  ? radix_tree_node_alloc+0x40/0xc0
[   45.458697]  kmem_cache_alloc+0x162/0x1c0
[   45.458698]  radix_tree_node_alloc+0x40/0xc0
[   45.458699]  idr_get_free+0x2af/0x310
[   45.458700]  idr_alloc+0x3c/0xd0
[   45.458701]  ? __might_sleep+0x4a/0x80
[   45.458702]  idr_alloc_cyclic+0x48/0x60
[   45.458706]  bpf_prog_load+0x28d/0x440
[   45.458707]  ? __might_sleep+0x4a/0x80
[   45.458709]  ? __might_fault+0x2f/0x40
[   45.458710]  SyS_bpf+0x3b1/0x680
[   45.458713]  entry_SYSCALL_64_fastpath+0x1a/0xa9
[   45.458714] RIP: 0033:0x7f1239b5b099
[   45.458715] RSP: 002b:00007fff75ac24f8 EFLAGS: 00000202 ORIG_RAX: 0000000000000141
[   45.458716] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1239b5b099
[   45.458717] RDX: 0000000000000030 RSI: 00007fff75ac2550 RDI: 0000000000000005
[   45.458717] RBP: 00007fff75ac2590 R08: 0000000000000000 R09: 00007fff75ac2550
[   45.458718] R10: 0000000000040b00 R11: 0000000000000202 R12: 0000000000000000
[   45.458719] R13: 00007fff75ac25c8 R14: 0000000000000000 R15: 0000000000000025
[   45.487788] 35: LLVM search and compile                    :
[   45.487789] 
[   45.490511] 35.1: Basic BPF llvm compile                    : Skip
[   45.490512] 
[   45.493036] 35.2: kbuild searching                          : Skip
[   45.493038] 
[   45.495560] 35.3: Compile source for BPF prologue generation: Skip
[   45.495561] 
[   45.498059] 35.4: Compile source for BPF relocation         : Skip
[   45.498060] 
[   45.500560] 36: Session topology                           : Ok
[   45.500561] 
[   45.503153] 37: BPF filter                                 :
[   45.503154] 
[   45.505662] 37.1: Basic BPF filtering                      : Skip
[   45.505663] 
[   45.508171] 37.2: BPF pinning                              : Skip
[   45.508172] 
[   45.510674] 37.3: BPF prologue generation                  : Skip
[   45.510675] 
[   45.513128] 37.4: BPF relocation checker                   : Skip
[   45.513130] 
[   45.515614] 38: Synthesize thread map                      : Ok
[   45.515615] 
[   45.518058] 39: Remove thread map                          : Ok
[   45.518059] 
[   45.520547] 40: Synthesize cpu map                         : Ok
[   45.520549] 
[   45.522959] 41: Synthesize stat config                     : Ok
[   45.522960] 
[   45.525380] 42: Synthesize stat                            : Ok
[   45.525381] 
[   45.527804] 43: Synthesize stat round                      : Ok
[   45.527805] 
[   45.530224] 44: Synthesize attr update                     : Ok
[   45.530225] 
[   45.532564] 45: Event times                                : Ok
[   45.532565] 
[   45.534884] 46: Read backward ring buffer                  : Ok
[   45.534884] 
[   45.537263] 47: Print cpu map                              : Ok
[   45.537264] 
[   45.539571] 48: Probe SDT events                           : Skip
[   45.539572] 
[   45.541851] 49: is_printable_array                         : Ok
[   45.541852] 
[   45.544158] 50: Print bitmap                               : Ok
[   45.544159] 
[   45.546411] 51: perf hooks                                 : Ok
[   45.546412] 
[   45.548930] 52: builtin clang support                      : Skip (not compiled in)
[   45.548931] 
[   45.551294] 53: unit_number__scnprintf                     : Ok
[   45.551295] 
[   45.721244] 54: x86 rdpmc                                  : Ok
[   45.721246] 
[   45.723626] 55: Convert perf time to TSC                   : Ok
[   45.723627] 
[   45.742261] 56: DWARF unwind                               : Ok
[   45.742263] 
[   45.745502] 57: x86 instruction decoder - new instructions : Ok
[   45.745504] 
[   45.748675] 58: Intel cqm nmi context read                 : Skip
[   45.748677] 
[   46.754453] kill 9536 vmstat --timestamp -n 10 
[   46.754454] 
[   46.756997] kill 9534 dmesg --follow --decode 
[   46.756998] 
[   46.759877] wait for background monitors: 9539 9547 oom-killer nfs-hang
[   46.759878] 
[   51.548590] /usr/bin/curl -sSf http://inn:80/~lkp/cgi-bin/lkp-jobfile-append-var?job_file=/lkp/scheduled/snb-black/perf-sanity-tests-defaults-debian-x86_64-2016-08-31.cgz-de05014aba8054e1353b720b814a0cd8ea7594e5-20170514-3311-mjrw4u-0.yaml&loadavg=2.74 0.79 0.27 1/199 12430&start_time=1494729389&end_time=1494729408&version=/lkp/lkp/.src-20170512-113449& -o /dev/null
[   51.548593] 
[   51.679043] /usr/bin/curl -sSf http://inn:80/~lkp/cgi-bin/lkp-jobfile-append-var?job_file=/lkp/scheduled/snb-black/perf-sanity-tests-defaults-debian-x86_64-2016-08-31.cgz-de05014aba8054e1353b720b814a0cd8ea7594e5-20170514-3311-mjrw4u-0.yaml&job_state=finished -o /dev/null
[   51.679046] 


To reproduce:

        git clone https://github.com/01org/lkp-tests.git
        cd lkp-tests
        bin/lkp install job.yaml  # job file is attached in this email
        bin/lkp run     job.yaml



Thanks,
Xiaolong

View attachment "config-4.11.0-rc8-02027-gde05014" of type "text/plain" (158144 bytes)

View attachment "job-script" of type "text/plain" (4690 bytes)

Download attachment "dmesg.xz" of type "application/octet-stream" (25360 bytes)

View attachment "perf-sanity-tests" of type "text/plain" (14477 bytes)

View attachment "job.yaml" of type "text/plain" (3850 bytes)

View attachment "reproduce" of type "text/plain" (206 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ