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: <20201018082355.GH11647@shao2-debian>
Date:   Sun, 18 Oct 2020 16:23:56 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Joel Fernandes (Google)" <joel@...lfernandes.org>
Cc:     linux-kernel@...r.kernel.org,
        "Joel Fernandes (Google)" <joel@...lfernandes.org>,
        Ingo Molnar <mingo@...hat.com>,
        Josh Triplett <josh@...htriplett.org>,
        Lai Jiangshan <jiangshanlai@...il.com>,
        Marco Elver <elver@...gle.com>,
        Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
        "Paul E. McKenney" <paulmck@...nel.org>, rcu@...r.kernel.org,
        Steven Rostedt <rostedt@...dmis.org>,
        "Uladzislau Rezki (Sony)" <urezki@...il.com>, fweisbec@...il.com,
        neeraj.iitr10@...il.com, 0day robot <lkp@...el.com>,
        lkp@...ts.01.org
Subject: [rcu/segcblist] e08055898f:
 WARNING:at_kernel/rcu/srcutree.c:#cleanup_srcu_struct

Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: e08055898fdf4d90caf3e7062fcddbf9ec2fe161 ("[PATCH v7 2/6] rcu/segcblist: Add counters to segcblist datastructure")
url: https://github.com/0day-ci/linux/commits/Joel-Fernandes-Google/Add-support-for-length-of-each-segment-in-the-segcblist/20201015-094146
base: https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev

in testcase: kernel-selftests
version: kernel-selftests-x86_64-b5a583fb-1_20201015
with following parameters:

	group: kselftests-kvm
	ucode: 0xdc

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory

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



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


kern  :warn  : [   76.220665] WARNING: CPU: 2 PID: 10209 at kernel/rcu/srcutree.c:386 cleanup_srcu_struct+0x9d/0x100
kern  :warn  : [   76.229759] Modules linked in: xfs libcrc32c sd_mod t10_pi sg snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio x86_pkg_temp_thermal snd_hda_intel intel_powerclamp coretemp snd_intel_dspcfg crct10dif_pclmul crc32_pclmul snd_hda_codec ahci crc32c_intel mei_wdt snd_hda_core ghash_clmulni_intel dell_wmi libahci snd_hwdep dell_smbios aesni_intel crypto_simd dell_wmi_descriptor wmi_bmof sparse_keymap ipmi_devintf snd_pcm i915 ipmi_msghandler dcdbas snd_timer cryptd mei_me glue_helper pcspkr mei snd libata i2c_i801 i2c_smbus wmi soundcore video intel_pmc_core acpi_pad ip_tables
kern  :warn  : [   76.285829] CPU: 2 PID: 10209 Comm: cr4_cpuid_sync_ Not tainted 5.9.0-rc5-00227-ge08055898fdf4 #1
kern  :warn  : [   76.294728] Hardware name: Dell Inc. OptiPlex 7040/0Y7WYT, BIOS 1.8.1 12/05/2017
kern  :warn  : [   76.302164] RIP: 0010:cleanup_srcu_struct+0x9d/0x100
kern  :warn  : [   76.307160] Code: 1c c5 00 f9 6a 82 48 8d bb 10 01 00 00 e8 9b 8a 01 00 48 8d bb 60 01 00 00 e8 6f 11 f8 ff 48 8b 83 c8 00 00 00 48 85 c0 74 b1 <0f> 0b 5b 5d 41 5c 41 5d c3 49 8b 84 24 e0 36 01 00 a8 03 0f 85 e9
kern  :warn  : [   76.325999] RSP: 0018:ffffc90001c73db8 EFLAGS: 00010202
kern  :warn  : [   76.331257] RAX: 0000000000000001 RBX: ffffe8ffffc8ba40 RCX: 0000000000000001
kern  :warn  : [   76.338441] RDX: 0000000000000000 RSI: ffffffff82cc8cc0 RDI: 0000000000000246
kern  :warn  : [   76.345605] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
kern  :warn  : [   76.352786] R10: 0000000000000001 R11: 0000000000000046 R12: ffffc90001c7dc88
kern  :warn  : [   76.359943] R13: ffffc90001c91388 R14: dead000000000122 R15: dead000000000100
kern  :warn  : [   76.367111] FS:  0000000000000000(0000) GS:ffff88881dd00000(0000) knlGS:0000000000000000
kern  :warn  : [   76.375224] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kern  :warn  : [   76.381015] CR2: 0000562d793bf1a0 CR3: 000000080f3f4004 CR4: 00000000003726e0
kern  :warn  : [   76.388171] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kern  :warn  : [   76.395357] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kern  :warn  : [   76.402543] Call Trace:
kern  :warn  : [   76.405051]  kvm_arch_destroy_vm+0x16b/0x1e0
kern  :warn  : [   76.409367]  kvm_put_kvm+0x1e4/0x400
kern  :warn  : [   76.413020]  kvm_vm_release+0x1d/0x40
kern  :warn  : [   76.416697]  __fput+0xb4/0x260
kern  :warn  : [   76.419800]  task_work_run+0x5f/0xa0
kern  :warn  : [   76.423394]  do_exit+0x3ee/0xc60
kern  :warn  : [   76.426654]  ? syscall_enter_from_user_mode+0x22/0x80
kern  :warn  : [   76.431766]  do_group_exit+0x47/0xc0
kern  :warn  : [   76.435374]  __x64_sys_exit_group+0x14/0x20
kern  :warn  : [   76.439573]  do_syscall_64+0x33/0x40
kern  :warn  : [   76.443206]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
kern  :warn  : [   76.448291] RIP: 0033:0x7f02c267b9d6
kern  :warn  : [   76.451900] Code: Bad RIP value.
kern  :warn  : [   76.455164] RSP: 002b:00007ffd3c505068 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
kern  :warn  : [   76.462791] RAX: ffffffffffffffda RBX: 00007f02c276c760 RCX: 00007f02c267b9d6
kern  :warn  : [   76.469991] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
kern  :warn  : [   76.477173] RBP: 0000000000000000 R08: 00000000000000e7 R09: ffffffffffffff80
kern  :warn  : [   76.484329] R10: 00007ffd3c504f26 R11: 0000000000000246 R12: 00007f02c276c760
kern  :warn  : [   76.491498] R13: 0000000000000001 R14: 00007f02c2775428 R15: 0000000000000000
kern  :warn  : [   76.498708] irq event stamp: 9799
kern  :warn  : [   76.502072] hardirqs last  enabled at (9821): [<ffffffff81da9344>] _raw_spin_unlock_irq+0x24/0x60
kern  :warn  : [   76.511182] hardirqs last disabled at (9844): [<ffffffff811458a6>] account_kernel_stack+0xe6/0x140
kern  :warn  : [   76.520199] softirqs last  enabled at (9862): [<ffffffff8200039e>] __do_softirq+0x39e/0x4eb
kern  :warn  : [   76.528608] softirqs last disabled at (9875): [<ffffffff81e010d2>] asm_call_on_stack+0x12/0x20
kern  :warn  : [   76.537264] ---[ end trace 6b38257f9486b136 ]---


To reproduce:

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



Thanks,
lkp


View attachment "config-5.9.0-rc5-00227-ge08055898fdf4" of type "text/plain" (209996 bytes)

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

Download attachment "kmsg.xz" of type "application/x-xz" (90628 bytes)

View attachment "kernel-selftests" of type "text/plain" (71356 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ