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: <20210824080256.GA21099@xsang-OptiPlex-9020>
Date:   Tue, 24 Aug 2021 16:03:07 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     Peter Zijlstra <peterz@...radead.org>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        lkp@...el.com
Subject: [lockdep]  997acaf6b4:
 BUG:KCSAN:data-race_in_ktime_get_update_offsets_now



Greeting,

FYI, we noticed the following commit (built with clang-14):

commit: 997acaf6b4b59c6a9c259740312a69ea549cc684 ("lockdep: report broken irq restoration")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master


in testcase: trinity
version: trinity-i386-4d2343bd-1_20200320
with following parameters:

	number: 99999
	group: group-01

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

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


+-------------------------------------------------------------------------+------------+------------+
|                                                                         | 2f0df49c89 | 997acaf6b4 |
+-------------------------------------------------------------------------+------------+------------+
| BUG:KCSAN:data-race_in_mutex_spin_on_owner                              | 68         | 67         |
| BUG:KCSAN:data-race_in__mutex_lock_common/mutex_spin_on_owner           | 63         | 65         |
| BUG:KCSAN:data-race_in_mutex_optimistic_spin                            | 39         | 48         |
| BUG:KCSAN:data-race_in_timekeeping_get_ns                               | 68         |            |
| BUG:KCSAN:data-race_in__mutex_lock_common/__mutex_lock_common           | 5          | 5          |
| BUG:KCSAN:data-race_in_rwsem_spin_on_owner                              | 25         | 19         |
| BUG:KCSAN:data-race_in_atime_needs_update                               | 1          | 5          |
| BUG:KCSAN:data-race_in_mix_pool_bytes                                   | 29         | 31         |
| BUG:KCSAN:data-race_in_pids_release                                     | 7          | 6          |
| BUG:KCSAN:data-race_in_start_dir_add/start_dir_add                      | 14         | 12         |
| BUG:KCSAN:data-race_in__d_add/start_dir_add                             | 25         | 21         |
| BUG:KCSAN:data-race_in__percpu_counter_compare/percpu_counter_add_batch | 11         | 12         |
| BUG:KCSAN:data-race_in__dentry_kill/lookup_fast                         | 5          | 2          |
| BUG:KCSAN:data-race_in_crng_slow_load                                   | 4          | 5          |
| BUG:KCSAN:data-race_in__percpu_counter_sum                              | 1          |            |
| BUG:KCSAN:data-race_in_do_raw_write_lock/do_raw_write_unlock            | 1          | 1          |
| BUG:KCSAN:data-race_in__dentry_kill/d_set_d_op                          | 1          |            |
| BUG:KCSAN:data-race_in_shmem_getpage_gfp/shmem_write_end                | 1          |            |
| BUG:KCSAN:data-race_in_ktime_get                                        | 0          | 67         |
| BUG:KCSAN:data-race_in_ktime_get_update_offsets_now                     | 0          | 67         |
| BUG:KCSAN:data-race_in_ktime_get_ts64                                   | 0          | 18         |
| BUG:KCSAN:data-race_in__delete_from_page_cache/shmem_getpage_gfp        | 0          | 1          |
| BUG:KCSAN:data-race_in_shmem_file_read_iter/shmem_write_end             | 0          | 1          |
| BUG:KCSAN:data-race_in_run_timer_softirq/try_to_del_timer_sync          | 0          | 1          |
| BUG:KCSAN:data-race_in_tcp_release_cb/tcp_wfree                         | 0          | 1          |
| BUG:KCSAN:data-race_in_shmem_mknod/vfs_getattr_nosec                    | 0          | 1          |
| BUG:KCSAN:data-race_in_d_set_d_op/d_wait_lookup                         | 0          | 1          |
| BUG:KCSAN:data-race_in_task_dump_owner                                  | 0          | 1          |
+-------------------------------------------------------------------------+------------+------------+


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


[  259.911278][    C1] ==================================================================
[  259.913558][    C1] BUG: KCSAN: data-race in ktime_get_update_offsets_now+0x17c/0x340
[  259.916091][    C1]
[  259.917014][    C1] race at unknown origin, with read to 0xffffffffb58593e0 of 8 bytes by interrupt on cpu 1:
[  259.920212][    C1]  ktime_get_update_offsets_now+0x17c/0x340
[  259.922114][    C1]  hrtimer_interrupt+0xa3/0x750
[  259.923762][    C1]  __sysvec_apic_timer_interrupt+0x6f/0x130
[  259.926033][    C1]  asm_call_irq_on_stack+0xf/0x20
[  259.927825][    C1]  sysvec_apic_timer_interrupt+0x6d/0xb0
[  259.929426][    C1]  asm_sysvec_apic_timer_interrupt+0x12/0x20
[  259.931416][    C1]  default_idle+0xe/0x10
[  259.932925][    C1]  default_idle_call+0x4f/0x90
[  259.934427][    C1]  do_idle+0xb6/0x200
[  259.935939][    C1]  cpu_startup_entry+0x14/0x20
[  259.937490][    C1]  secondary_startup_64_no_verify+0xc2/0xcb
[  259.939450][    C1]
[  259.940328][    C1] Reported by Kernel Concurrency Sanitizer on:
[  259.942269][    C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.11.0-rc2-g997acaf6b4b5 #1
[  259.945133][    C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  259.947656][    C1] ==================================================================



To reproduce:

        # build kernel
	cd linux
	cp config-5.11.0-rc2-g997acaf6b4b5 .config
	make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



---
0DAY/LKP+ Test Infrastructure                   Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org       Intel Corporation

Thanks,
Oliver Sang


View attachment "config-5.11.0-rc2-g997acaf6b4b5" of type "text/plain" (140316 bytes)

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

Download attachment "dmesg.xz" of type "application/x-xz" (25080 bytes)

View attachment "trinity" of type "text/plain" (19583 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ