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]
Date:   Sun, 31 Jan 2021 22:36:48 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     Mickaël Salaün <mic@...ikod.net>,
        Mickaël Salaün <mic@...ux.microsoft.com>,
        Alexandre Belloni <alexandre.belloni@...tlin.com>,
        LKML <linux-kernel@...r.kernel.org>, x86@...nel.org,
        lkp@...ts.01.org, lkp@...el.com, ltp@...ts.linux.it
Subject: [rtc]  211e5db19d: WARNING:at_drivers/rtc/rtc/rtc-mc146818-lib.c:25
 mc146818_get_time


Greeting,

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

commit: 211e5db19d15a721b2953ea54b8f26c2963720eb ("rtc: mc146818: Detect and handle broken RTCs")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git timers/urgent


in testcase: ltp
version: ltp-x86_64-14c1f76-1_20210101
with following parameters:

	test: kernel_misc
	ucode: 0x21

test-description: The LTP testsuite contains a collection of tools for testing the Linux kernel and related features.
test-url: http://linux-test-project.github.io/


on test machine: 4 threads Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz with 8G 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 <oliver.sang@...el.com>


kern  :warn  : [   61.759099] ------------[ cut here ]------------
kern  :warn  : [   61.759329] WARNING: CPU: 0 PID: 2600 at drivers/rtc/rtc-mc146818-lib.c:25 mc146818_get_time+0x1c8/0x220
kern  :warn  : [   61.759662] Modules linked in: netconsole btrfs blake2b_generic xor zstd_compress raid6_pq libcrc32c sd_mod t10_pi sg intel_rapl_msr intel_rapl_common i915 x86_pkg_temp_thermal intel_powerclamp ahci coretemp intel_gtt drm_kms_helper libahci kvm_intel kvm syscopyarea irqbypass ipmi_devintf sysfillrect sysimgblt crct10dif_pclmul crc32_pclmul crc32c_intel ipmi_msghandler fb_sys_fops ghash_clmulni_intel rapl intel_cstate intel_uncore libata drm joydev mei_me mei video ip_tables
kern  :warn  : [   61.761292] CPU: 0 PID: 2600 Comm: rtc01 Not tainted 5.11.0-rc5-g211e5db19d15 #8
kern  :warn  : [   61.761704] Hardware name: Hewlett-Packard p6-1451cx/2ADA, BIOS 8.15 02/05/2013
kern  :warn  : [   61.762138] RIP: 0010:mc146818_get_time+0x1c8/0x220
kern  :warn  : [   61.762540] Code: 89 6b 10 5b 5d 41 5c 41 5d 41 5e c3 48 89 ee 48 c7 c7 50 a9 2e 83 e8 47 f7 2e 00 bf 58 89 41 00 e8 7d b8 cf ff e9 4b fe ff ff <0f> 0b 48 c7 c7 50 a9 2e 83 48 89 ee e8 27 f7 2e 00 48 c7 03 ff ff
kern  :warn  : [   61.763591] RSP: 0018:ffffc90000003ee8 EFLAGS: 00010002
kern  :warn  : [   61.764087] RAX: 00000000000000a9 RBX: ffffc90000003f1c RCX: 00000000000369e9
kern  :warn  : [   61.764629] RDX: 0000000000000001 RSI: ffff88821c826800 RDI: 000000000000000d
kern  :warn  : [   61.765181] RBP: 0000000000000046 R08: 0000000e6120d6ba R09: 0000000000000000
kern  :warn  : [   61.765741] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
kern  :warn  : [   61.766309] R13: ffffc90000003f9c R14: 0000000000000008 R15: ffff8881001c7000
kern  :warn  : [   61.766880] FS:  00007fd6bd661600(0000) GS:ffff88821fa00000(0000) knlGS:0000000000000000
kern  :warn  : [   61.767487] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kern  :warn  : [   61.768067] CR2: 000055fb66899288 CR3: 000000021908e003 CR4: 00000000001706f0
kern  :warn  : [   61.768687] Call Trace:
kern  :warn  : [   61.769238]  <IRQ>
kern  :warn  : [   61.769783]  hpet_rtc_interrupt+0x257/0x320
kern  :warn  : [   61.770384]  __handle_irq_event_percpu+0x3d/0x180
kern  :warn  : [   61.770997]  handle_irq_event_percpu+0x31/0x80
kern  :warn  : [   61.771611]  handle_irq_event+0x3d/0x60
kern  :warn  : [   61.772229]  handle_edge_irq+0x83/0x1a0
kern  :warn  : [   61.772840]  asm_call_irq_on_stack+0x12/0x20
kern  :warn  : [   61.773470]  </IRQ>
kern  :warn  : [   61.774062]  common_interrupt+0xb5/0x140
kern  :warn  : [   61.774697]  asm_common_interrupt+0x1e/0x40
kern  :warn  : [   61.775354] RIP: 0010:cmos_set_alarm+0x15c/0x1c0
kern  :warn  : [   61.776031] Code: 11 0f b6 53 04 0f b6 73 08 0f b6 7b 0c e8 5c 49 76 ff 80 3b 00 75 53 48 c7 c7 50 a9 2e 83 c6 07 00 0f 1f 40 00 fb 48 8d 7b 04 <65> ff 0d bd 5b 71 7e e8 58 a2 ff ff 48 89 45 20 31 c0 48 83 c4 08
kern  :warn  : [   61.777633] RSP: 0018:ffffc900010ffce0 EFLAGS: 00000246
kern  :warn  : [   61.778401] RAX: 0000000000000001 RBX: ffffc900010ffde0 RCX: 0000000000000046
kern  :warn  : [   61.779215] RDX: ffffc9000000d000 RSI: 0000000000000022 RDI: ffffc900010ffde4
kern  :warn  : [   61.780041] RBP: ffffffff83568220 R08: 0000000000000015 R09: fffffff186b1bfb1
kern  :warn  : [   61.780873] R10: 00000000000b4014 R11: 0000000000000005 R12: 0000000000000004
kern  :warn  : [   61.781718] R13: 0000000000000031 R14: 0000000000000049 R15: 0000000000000021
kern  :warn  : [   61.782571]  __rtc_set_alarm+0xcb/0x160
kern  :warn  : [   61.783380]  rtc_timer_enqueue+0x19f/0x240
kern  :warn  : [   61.784205]  ? rtc_alarm_irq_enable+0x41/0xe0
kern  :warn  : [   61.785037]  rtc_alarm_irq_enable+0x41/0xe0
kern  :warn  : [   61.785886]  rtc_dev_ioctl+0x148/0x4a0
kern  :warn  : [   61.786724]  __x64_sys_ioctl+0x83/0xc0
kern  :warn  : [   61.787563]  do_syscall_64+0x33/0x40
kern  :warn  : [   61.788405]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
kern  :warn  : [   61.789268] RIP: 0033:0x7fd6bd58f427
kern  :warn  : [   61.790089] Code: 00 00 90 48 8b 05 69 aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 39 aa 0c 00 f7 d8 64 89 01 48
kern  :warn  : [   61.791959] RSP: 002b:00007ffe05fc9548 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
kern  :warn  : [   61.792870] RAX: ffffffffffffffda RBX: 00007ffe05fc9570 RCX: 00007fd6bd58f427
kern  :warn  : [   61.793757] RDX: 0000000000000000 RSI: 0000000000007001 RDI: 0000000000000004
kern  :warn  : [   61.794634] RBP: 000055fb66324340 R08: 00007fd6bd661600 R09: 00007ffe05fc8330
kern  :warn  : [   61.795507] R10: 000055fb66314c63 R11: 0000000000000246 R12: 000055fb6630fc00
kern  :warn  : [   61.796375] R13: 00007ffe05fc9720 R14: 0000000000000000 R15: 0000000000000000
kern  :warn  : [   61.797222] ---[ end trace 03b10968eacbc768 ]---



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,
Oliver Sang


View attachment "config-5.11.0-rc5-g211e5db19d15" of type "text/plain" (172414 bytes)

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

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

View attachment "ltp" of type "text/plain" (14427 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ