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  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]
Date:   Wed, 13 May 2020 09:28:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
Cc:     LKP <lkp@...ts.01.org>, linux-kernel@...r.kernel.org,
        Amol Grover <frextrite@...il.com>,
        "Paul E. McKenney" <paulmck@...nel.org>, philip.li@...el.com
Subject: d13fee049f ("Default enable RCU list lockdep debugging with .."):  WARNING: suspicious RCU usage

Greetings,

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

https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next

commit d13fee049fa8e94649aa9914fd1ab5d07da51da4
Author:     Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
AuthorDate: Fri Feb 28 14:54:51 2020 +0530
Commit:     Paul E. McKenney <paulmck@...nel.org>
CommitDate: Thu May 7 10:24:43 2020 -0700

    Default enable RCU list lockdep debugging with PROVE_RCU
    
    This patch default enables CONFIG_PROVE_RCU_LIST option with
    CONFIG_PROVE_RCU for RCU list lockdep debugging.
    
    With this change, RCU list lockdep debugging will be default
    enabled in CONFIG_PROVE_RCU=y kernels.
    
    Most of the RCU users (in core kernel/, drivers/, and net/
    subsystem) have already been modified to include lockdep
    expressions hence RCU list debugging can be enabled by
    default.
    
    However, there are still chances of enountering
    false-positive lockdep splats because not everything is converted,
    in case RCU list primitives are used in non-RCU read-side critical
    section but under the protection of a lock. It would be okay to
    have a few false-positives, as long as bugs are identified, since this
    patch only affects debugging kernels.
    
    Co-developed-by: Amol Grover <frextrite@...il.com>
    Signed-off-by: Amol Grover <frextrite@...il.com>
    Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
    Acked-by: Joel Fernandes (Google) <joel@...lfernandes.org>
    Signed-off-by: Paul E. McKenney <paulmck@...nel.org>

c1fe153b2a  torture: Add --allcpus argument to the kvm.sh script
d13fee049f  Default enable RCU list lockdep debugging with PROVE_RCU
ec06fa2b14  doc: Tasks RCU must protect instructions before trampoline
+--------------------------------------------------------------------------------------+------------+------------+------------+
|                                                                                      | c1fe153b2a | d13fee049f | ec06fa2b14 |
+--------------------------------------------------------------------------------------+------------+------------+------------+
| boot_successes                                                                       | 31         | 0          | 0          |
| boot_failures                                                                        | 2          | 11         | 11         |
| BUG:kernel_hang_in_early-boot_stage,last_printk:Probing_EDD(edd=off_to_disable)...ok | 2          |            |            |
| WARNING:suspicious_RCU_usage                                                         | 0          | 11         | 11         |
| net/ipv6/ip6mr.c:#RCU-list_traversed_in_non-reader_section                           | 0          | 11         | 11         |
| BUG:kernel_hang_in_test_stage                                                        | 0          | 1          |            |
+--------------------------------------------------------------------------------------+------------+------------+------------+

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

[   71.408539]     Performance counters on
[   71.409303]     input device check on
[   71.473366] NET: Registered protocol family 10
[   71.479116] 
[   71.479916] =============================
[   71.480827] WARNING: suspicious RCU usage
[   71.481663] 5.7.0-rc2-00234-gd13fee049fa8e #1 Not tainted
[   71.482791] -----------------------------
[   71.483839] net/ipv6/ip6mr.c:124 RCU-list traversed in non-reader section!!
[   71.485271] 
[   71.485271] other info that might help us debug this:
[   71.485271] 
[   71.487039] 
[   71.487039] rcu_scheduler_active = 2, debug_locks = 1
[   71.488607] 1 lock held by swapper/1:
[   71.489445]  #0: ffffffffa9d313f0 (pernet_ops_rwsem){+.+.}-{3:3}, at: register_pernet_subsys+0x1d/0x60
[   71.491830] 
[   71.491830] stack backtrace:
[   71.492769] CPU: 0 PID: 1 Comm: swapper Not tainted 5.7.0-rc2-00234-gd13fee049fa8e #1
[   71.494422] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   71.496343] Call Trace:
[   71.496909]  dump_stack+0x23/0x38
[   71.497671]  lockdep_rcu_suspicious+0x10c/0x11a
[   71.498683]  ip6mr_get_table+0x117/0x130
[   71.499491]  ip6mr_new_table+0x19/0x60
[   71.500021]  ip6mr_net_init+0xf6/0x267
[   71.500472]  ops_init+0x60/0x2b0
[   71.501054]  register_pernet_operations+0xad/0x1e0
[   71.501899]  ? unix_sysctl_register+0xe4/0xe4
[   71.502727]  register_pernet_subsys+0x34/0x60
[   71.503661]  ip6_mr_init+0x58/0x15e
[   71.504290]  inet6_init+0x1a1/0x68f
[   71.505024]  do_one_initcall+0x102/0x500
[   71.505811]  ? perf_trace_initcall_level+0x2c0/0x2c0
[   71.506759]  ? kasan_unpoison_shadow+0x38/0x60
[   71.507766]  ? rcu_read_lock_sched_held+0x85/0xd0
[   71.508607]  do_basic_setup+0x1a9/0x1fd
[   71.509327]  kernel_init_freeable+0x115/0x183
[   71.510131]  ? rest_init+0x22e/0x22e
[   71.510854]  kernel_init+0x13/0x1d2
[   71.511763]  ? rest_init+0x22e/0x22e
[   71.512572]  ret_from_fork+0x24/0x30
modprobe: FATAL: Could not load /lib/modules/5.7.0-rc2-00234-gd13fee049fa8e/modules.dep: No such file or directory
[   71.746089] Segment Routing with IPv6
[   71.746959] RPL Segment Routing with IPv6
[   71.772698] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   71.803782] can: controller area network core (rev 20170425 abi 9)

                                                          # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start a41e54ce803b45b284e10a4e231dba5fec292064 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8 --
git bisect  bad 2f7991448f9c479f7ce0e7007b697555df328b46  # 23:56  B      0     2   18   0  Merge 'linux-review/Pavel-Begunkov/io_uring-fix-zero-len-do_splice/20200505-171034' into devel-hourly-2020051219
git bisect  bad 3edfcaf0e7672c1e6c7bbfe8db1ceca43f5e7c85  # 00:28  B      0     2   18   0  Merge 'linux-review/Dan-Williams/ACPI-Drop-rcu-usage-for-MMIO-mappings/20200509-013208' into devel-hourly-2020051219
git bisect good 3f1db4c8a03e1ab931248c00ae4c4559e3b5406b  # 01:17  G     10     0    1   1  Merge 'ezequielg/rkvdec-vp9-upstream' into devel-hourly-2020051219
git bisect good 5579a78821bdf86725db495878dd9c6245ed2bb3  # 01:41  G     10     0    1   1  Merge 'linux-review/Takashi-Sakamoto/ALSA-firewire-motu-fulfill-missing-entries-in-Kconfig/20200511-103548' into devel-hourly-2020051219
git bisect good e3689f9e910f8fd4b1f565359664e4a72b112034  # 02:13  G     10     0    0   0  Merge 'linux-review/UPDATE-20200512-031403/Lee-Shawn-C/drm-i915-mst-filter-out-the-display-mode-exceed-sink-s-capability/20200420-213842' into devel-hourly-2020051219
git bisect  bad d69b0f11241256c60dbf757ac3dd5a96ed91882e  # 02:33  B      0     2   18   0  Merge 'rcu/rcu/dev' into devel-hourly-2020051219
git bisect good 0144187eb59fafe035c65eff7a3935a80da27eb0  # 03:12  G     10     0    0   0  Merge 'linux-review/Maninder-Singh/scripts-checkstack-pl-don-t-display-dre-as-different-entity/20200509-051219' into devel-hourly-2020051219
git bisect good f4311b8d31874d2bde6adabf8ac1d335ea35b35f  # 03:52  G     10     0    0   0  Merge 'linux-review/Saeed-Mahameed/Mellanox-mlx5-and-bonding-updates-2020-05-09/20200509-191959' into devel-hourly-2020051219
git bisect good 4a49fd5e59ac0f31ef28ebb545a73845e7943416  # 04:17  G     10     0    1   1  Merge 'nf/master' into devel-hourly-2020051219
git bisect good 071972c7badf15fd8fbb804c6b5d727a48d16ed7  # 04:44  G     10     0    1   1  Merge 'zen-kernel-zen-kernel/5.6/fsgsbase' into devel-hourly-2020051219
git bisect good 3123dcd3ef7f98482dd0a459e85a750448161b38  # 05:27  G     10     0    1   1  fork: Annotate a data race in vm_area_dup()
git bisect good 8d6d79f04175a9ce8091601a9e5eefc1dfead091  # 06:04  G     11     0    2   2  kcsan: Add test suite
git bisect good 3ff7cf6d6d90ec5a196b31ef03777e756807e92a  # 06:24  G     10     0    0   0  torture: Add script to smoke-test commits in a branch
git bisect  bad 91f877ab4b94c0d463a60b8c77d529096a8268c1  # 06:40  B      0     1   17   0  rcu: Priority-boost-related sleeps to idle priority
git bisect good c1fe153b2a011a7d5f156f12ee518b1b0dc53fa1  # 07:20  G     10     0    0   0  torture: Add --allcpus argument to the kvm.sh script
git bisect  bad 3d9e98763d855022fef5285b3fd779238f9ab554  # 07:35  B      0     1   17   0  rcu: Grace-period-kthread related sleeps to idle priority
git bisect  bad d13fee049fa8e94649aa9914fd1ab5d07da51da4  # 07:58  B      0     2   18   0  Default enable RCU list lockdep debugging with PROVE_RCU
# first bad commit: [d13fee049fa8e94649aa9914fd1ab5d07da51da4] Default enable RCU list lockdep debugging with PROVE_RCU
git bisect good c1fe153b2a011a7d5f156f12ee518b1b0dc53fa1  # 08:12  G     30     0    0   1  torture: Add --allcpus argument to the kvm.sh script
# extra tests with debug options
git bisect  bad d13fee049fa8e94649aa9914fd1ab5d07da51da4  # 08:30  B      0     2   18   0  Default enable RCU list lockdep debugging with PROVE_RCU
# extra tests on head commit of rcu/rcu/next
git bisect  bad ec06fa2b148836f3f50082eb502b8f0aadb8970a  # 08:42  B      0     1   17   0  doc: Tasks RCU must protect instructions before trampoline
# bad: [ec06fa2b148836f3f50082eb502b8f0aadb8970a] doc: Tasks RCU must protect instructions before trampoline
# extra tests on revert first bad commit
git bisect good 92587bc102c54408efd66e5b9212bbd3641967c1  # 09:27  G     10     0    1   1  Revert "Default enable RCU list lockdep debugging with PROVE_RCU"
# good: [92587bc102c54408efd66e5b9212bbd3641967c1] Revert "Default enable RCU list lockdep debugging with PROVE_RCU"

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/lkp@lists.01.org

Download attachment "dmesg-quantal-vm-quantal-32:20200513080048:x86_64-randconfig-a005-20200512:5.7.0-rc2-00234-gd13fee049fa8e:1.gz" of type "application/gzip" (19234 bytes)

Download attachment "dmesg-quantal-vm-quantal-26:20200513081508:x86_64-randconfig-a005-20200512:5.7.0-rc2-00233-gc1fe153b2a011a:1.gz" of type "application/gzip" (1064 bytes)

View attachment "reproduce-quantal-vm-quantal-32:20200513080048:x86_64-randconfig-a005-20200512:5.7.0-rc2-00234-gd13fee049fa8e:1" of type "text/plain" (924 bytes)

Download attachment "a41e54ce803b45b284e10a4e231dba5fec292064:clang-11:x86_64-randconfig-a005-20200512:net_ipv6_ip6mr.c:_RCU-list_traversed_in_non-reader_section.xz" of type "application/x-xz" (8124 bytes)

View attachment "config-5.7.0-rc2-00234-gd13fee049fa8e" of type "text/plain" (140690 bytes)

View attachment "config-5.7.0-rc2-00234-gd13fee049fa8e" of type "text/plain" (140691 bytes)

Powered by blists - more mailing lists