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>] [day] [month] [year] [list]
Message-ID: <20191201150211.GD18573@shao2-debian>
Date:   Sun, 1 Dec 2019 23:02:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Steven Rostedt (VMware)" <rostedt@...dmis.org>
Cc:     linux-kernel@...r.kernel.org, LKP <lkp@...ts.01.org>
Subject: bf8e602186 ("tracing: Do not create tracefs files if tracefs .."): [
    2.789121] WARNING: CPU: 1 PID: 1 at kernel/trace/ftrace.c:989
 ftrace_init_tracefs_toplevel

Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

commit bf8e602186ec402ed937b2cbd6c39a34c0029757
Author:     Steven Rostedt (VMware) <rostedt@...dmis.org>
AuthorDate: Fri Oct 11 20:41:41 2019 -0400
Commit:     Steven Rostedt (VMware) <rostedt@...dmis.org>
CommitDate: Sat Oct 12 20:49:07 2019 -0400

    tracing: Do not create tracefs files if tracefs lockdown is in effect
    
    If on boot up, lockdown is activated for tracefs, don't even bother creating
    the files. This can also prevent instances from being created if lockdown is
    in effect.
    
    Link: http://lkml.kernel.org/r/CAHk-=whC6Ji=fWnjh2+eS4b15TnbsS4VPVtvBOwCy1jjEG_JHQ@mail.gmail.com
    
    Suggested-by: Linus Torvalds <torvalds@...ux-foundation.org>
    Signed-off-by: Steven Rostedt (VMware) <rostedt@...dmis.org>

17911ff38a  tracing: Add locked_down checks to the open calls of files created for tracefs
bf8e602186  tracing: Do not create tracefs files if tracefs lockdown is in effect
81b6b96475  Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux; tag 'dma-mapping-5.5' of git://git.infradead.org/users/hch/dma-mapping
419593dad8  Add linux-next specific files for 20191129
+----------------------------------------------------------------+------------+------------+------------+---------------+
|                                                                | 17911ff38a | bf8e602186 | 81b6b96475 | next-20191129 |
+----------------------------------------------------------------+------------+------------+------------+---------------+
| boot_successes                                                 | 31         | 0          | 0          | 0             |
| boot_failures                                                  | 0          | 11         | 11         | 11            |
| WARNING:at_kernel/trace/ftrace.c:#ftrace_init_tracefs_toplevel | 0          | 11         | 11         | 11            |
| EIP:ftrace_init_tracefs_toplevel                               | 0          | 11         | 11         | 11            |
| WARNING:at_kernel/trace/trace.c:#create_trace_option_files     | 0          | 11         | 11         | 11            |
| EIP:create_trace_option_files                                  | 0          | 11         | 11         | 11            |
| Mem-Info                                                       | 0          | 1          |            |               |
+----------------------------------------------------------------+------------+------------+------------+---------------+

If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp@...el.com>

[    2.780405] Lockdown: swapper/0: use of tracefs is restricted; see man kernel_lockdown.7
[    2.782605] Could not create tracefs 'set_graph_notrace' entry
[    2.784297] Lockdown: swapper/0: use of tracefs is restricted; see man kernel_lockdown.7
[    2.786368] ------------[ cut here ]------------
[    2.787647] Could not register function stat for cpu 0
[    2.789121] WARNING: CPU: 1 PID: 1 at kernel/trace/ftrace.c:989 ftrace_init_tracefs_toplevel+0x184/0x1d8
[    2.792367] Modules linked in:
[    2.793074] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G                T 5.4.0-rc2-00007-gbf8e602186ec4 #1
[    2.793074] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    2.793074] EIP: ftrace_init_tracefs_toplevel+0x184/0x1d8
[    2.793074] Code: fe 85 c0 0f 84 58 ff ff ff 31 c9 ba 01 00 00 00 8b 5d f0 b8 e0 8a c7 42 6a 01 e8 b8 23 42 fe 53 68 94 67 8f 42 e8 7d f5 2f fe <0f> 0b 31 c9 ba 01 00 00 00 6a 01 b8 c8 8a c7 42 e8 98 23 42 fe 8b
[    2.793074] EAX: 0000002a EBX: 00000000 ECX: 00000000 EDX: 00000000
[    2.793074] ESI: 42dde7fc EDI: f55eab2c EBP: 402cbf00 ESP: 402cbedc
[    2.793074] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010202
[    2.793074] CR0: 80050033 CR2: ffffffff CR3: 02fd9000 CR4: 00040690
[    2.793074] Call Trace:
[    2.793074]  ? register_tracer+0x170/0x170
[    2.793074]  ? tracer_init_tracefs+0x91/0x1e7
[    2.793074]  ? do_one_initcall+0x75/0x3b8
[    2.793074]  ? trace_initcall_level+0xe1/0x101
[    2.793074]  ? kernel_init_freeable+0xf5/0x192
[    2.793074]  ? kernel_init_freeable+0x114/0x192
[    2.793074]  ? rest_init+0x140/0x140
[    2.793074]  ? kernel_init+0x10/0x110
[    2.793074]  ? schedule_tail_wrapper+0x9/0xc
[    2.793074]  ? ret_from_fork+0x33/0x40
[    2.793074] _warn_unseeded_randomness: 123 callbacks suppressed
[    2.793074] random: get_random_bytes called from print_oops_end_marker+0x57/0x70 with crng_init=0
[    2.793074] ---[ end trace f0d030514b1a50e3 ]---
[    2.827821] Lockdown: swapper/0: use of tracefs is restricted; see man kernel_lockdown.7

                                                          # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start d196292990fce11fd7bb7585a782b3f4b34429e1 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c --
git bisect  bad 5d682fa3d8943c19a632ebeaf70e8b9e41c78a5b  # 13:43  B      0     3   19   0  gpio: xgs-iproc: Fix section mismatch on device tree match table
git bisect good 698b8eeaed7287970fc2b6d322618850fd1b1e6c  # 14:31  G     11     0    0   0  gpio/mpc8xxx: change irq handler from chained to normal
git bisect good 921d6c32b6f86c48e06667ce2f8c50ca45bfa212  # 15:03  G     10     0    0   0  MAINTAINERS: Add entry for RDA Micro GPIO driver and binding
git bisect good 6a41b6c5fc20abced88fa0eed42ae5e5cb70b280  # 15:31  G     10     0    0   0  gpio: Add xgs-iproc driver
git bisect  bad c196924277ea82200d4c4fd9537c71390b96f247  # 16:04  B      0     1   18   1  Merge tag 'v5.4-rc6' into devel
git bisect  bad 998d75510e373aab5644d777d3b058312d550159  # 16:49  B      0     3   19   0  Merge branch 'akpm' (patches from Andrew)
git bisect good c6ad7c3ce9800e91d6cc6d2f6f566339ebac5656  # 17:28  G     10     0    0   0  Merge tag '5.4-rc2-smb3' of git://git.samba.org/sfrench/cifs-2.6
git bisect good 71b1b5532b9c58f260911ee59c7b3007d6d673a5  # 17:48  G     11     0    0   0  Merge tag 'fixes-for-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
git bisect  bad ad32fd7426e192cdf5368eda23a6482ff83c2022  # 18:16  B      0     8   24   0  Merge tag 'xtensa-20191017' of git://github.com/jcmvbkbc/linux-xtensa
git bisect  bad 8625732e7712882bd14e1fce962bdc3c315acd41  # 18:36  B      0     5   21   0  Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
git bisect  bad 3c52b0af059e11a063970aed1ad143b9284a79c7  # 19:00  B      0     1   17   0  lib/generic-radix-tree.c: add kmemleak annotations
git bisect  bad d303de1fcf344ff7c15ed64c3f48a991c9958775  # 19:23  B      0     1   17   0  tracing: Initialize iter->seq after zeroing in tracing_read_pipe()
git bisect good 8530dec63e7b486e3761cc3d74a22de301845ff5  # 20:15  G     11     0    0   0  tracing: Add tracing_check_open_get_tr()
git bisect  bad 7f8557b88d6aa5bf31f25f6013d81355a1b1d48d  # 21:01  B      0    11   27   0  recordmcount: Fix nop_mcount() function
git bisect  bad bf8e602186ec402ed937b2cbd6c39a34c0029757  # 22:05  B      0     4   20   0  tracing: Do not create tracefs files if tracefs lockdown is in effect
git bisect good 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5  # 22:36  G     11     0    0   0  tracing: Add locked_down checks to the open calls of files created for tracefs
# first bad commit: [bf8e602186ec402ed937b2cbd6c39a34c0029757] tracing: Do not create tracefs files if tracefs lockdown is in effect
git bisect good 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5  # 22:41  G     31     0    0   0  tracing: Add locked_down checks to the open calls of files created for tracefs
# extra tests with debug options
git bisect good bf8e602186ec402ed937b2cbd6c39a34c0029757  # 23:07  G     11     0    0   0  tracing: Do not create tracefs files if tracefs lockdown is in effect
# extra tests on head commit of linus/master
git bisect  bad 81b6b96475ac7a4ebfceae9f16fb3758327adbfe  # 23:57  B      0     2   18   0  Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux; tag 'dma-mapping-5.5' of git://git.infradead.org/users/hch/dma-mapping
# bad: [81b6b96475ac7a4ebfceae9f16fb3758327adbfe] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux; tag 'dma-mapping-5.5' of git://git.infradead.org/users/hch/dma-mapping
# extra tests on revert first bad commit
git bisect good 38cce32718f755a5a296c21f7ee4e20a981a8a82  # 00:41  G     10     0    0   0  Revert "tracing: Do not create tracefs files if tracefs lockdown is in effect"
# good: [38cce32718f755a5a296c21f7ee4e20a981a8a82] Revert "tracing: Do not create tracefs files if tracefs lockdown is in effect"
# extra tests on linus/master
# duplicated: [81b6b96475ac7a4ebfceae9f16fb3758327adbfe] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux; tag 'dma-mapping-5.5' of git://git.infradead.org/users/hch/dma-mapping
# extra tests on linux-next/master
git bisect  bad 419593dad8439007452bb6f267861863b572c520  # 00:46  B      0    11   27   0  Add linux-next specific files for 20191129
# bad: [419593dad8439007452bb6f267861863b572c520] Add linux-next specific files for 20191129

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org       Intel Corporation

Download attachment "dmesg-yocto-vm-yocto-2bb92e22a1a6:20191130220713:i386-randconfig-b001-20191130:5.4.0-rc2-00007-gbf8e602186ec4:1.gz" of type "application/gzip" (37321 bytes)

View attachment "reproduce-yocto-vm-yocto-2bb92e22a1a6:20191130220713:i386-randconfig-b001-20191130:5.4.0-rc2-00007-gbf8e602186ec4:1" of type "text/plain" (932 bytes)

Download attachment "d196292990fce11fd7bb7585a782b3f4b34429e1:gcc-7:i386-randconfig-b001-20191130:EIP:ftrace_init_tracefs_toplevel.xz" of type "application/x-xz" (8096 bytes)

View attachment "config-5.4.0-rc2-00007-gbf8e602186ec4" of type "text/plain" (130751 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ