Skip to contentSkip to conversation

4ebd3e075a: WARNING:at_include/linux/device.h:#device_trust_prepare

leon-rdma:device-trust-core-v1 kernel test robot 1 participant 1 message Nov 2

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hello,

kernel test robot noticed "WARNING:at_include/linux/device.h:#device_trust_prepare" on:

commit: 4ebd3e075a98131794d4def7b95f240b130b779a ("driver core: Resolve device trust across driver binding") https://git.kernel.org/cgit/linux/kernel/git/leon/linux-rdma.git device-trust-core-v1

in testcase: perf-stat-tests

config: x86_64-rhel-9.4-bpf
compiler: gcc-14
test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 16G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]

[  151.326544][  T233] ------------[ cut here ]------------
[  151.326739][  T233] WARNING: include/linux/device.h:1130 at device_trust_prepare+0x1ba/0x270, CPU#1: (udev-worker)/233
[  151.326823][  T233] Modules linked in: snd_intel_sdw_acpi kvm(+) libblake2b snd_hwdep btusb(+) ttm mac80211 raid6_pq btrtl drm_display_helper btintel irqbypass snd_soc_core eeepc_wmi(+) btbcm zstd_compress btmtk rapl snd_compress asus_wmi cec xor snd_pcm intel_cstate drm_client_lib sparse_keymap wmi_bmof mxm_wmi bluetooth cfg80211 pcspkr pl2303 snd_timer intel_uncore drm_kms_helper i2c_i801 nvme intel_pmc_core intel_gtt snd agpgart i2c_smbus pmt_telemetry video soundcore rfkill nvme_core pmt_discovery libarc4 ahci pmt_class libahci intel_pmc_ssram_telemetry joydev mei_me intel_pmc_pwrm_telemetry acpi_pad intel_vsec libata mei wmi drm ip_tables x_tables sch_fq_codel
[  151.327871][  T233] CPU: 1 UID: 0 PID: 233 Comm: (udev-worker) Not tainted 7.3.0-rc4+ #1 PREEMPT
[  151.327942][  T233] Hardware name: System manufacturer System Product Name/Z170I PRO GAMING, BIOS 3805 05/16/2018
[  151.328013][  T233] RIP: 0010:device_trust_prepare+0x1ba/0x270
[  151.328069][  T233] Code: 02 74 6c 77 4b 45 85 f6 74 79 b8 ff ff ff ff eb b3 48 8d bb 28 01 00 00 be ff ff ff ff e8 8e 8e c0 00 85 c0 0f 85 cf fe ff ff <0f> 0b e9 c8 fe ff ff 41 83 fe 03 75 0f 41 83 fd 02 0f 94 c0 84 c0
[  151.328343][  T233] RSP: 0018:ffff88841cb9f3c8 EFLAGS: 00010246
[  151.328402][  T233] RAX: 0000000000000000 RBX: ffff8881418f3078 RCX: 0000000000000001
[  151.328462][  T233] RDX: 0000000000000001 RSI: ffff8881418f31a0 RDI: ffff88841d5890e0
[  151.328523][  T233] RBP: 1ffff11083973e7a R08: 0000000000000000 R09: fffffbfff0be6bb4
[  151.328583][  T233] R10: ffffffff85f35da7 R11: 0000000000000000 R12: ffff8881418f30e0
[  151.328644][  T233] R13: ffff8881418f3028 R14: ffff8881418f3024 R15: ffff8881418f3000
[  151.328706][  T233] FS:  00007f4c0c2c79c0(0000) GS:ffff8883c67d4000(0000) knlGS:0000000000000000
[  151.328773][  T233] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  151.328826][  T233] CR2: 00007f1e89a06c74 CR3: 000000041cb52003 CR4: 00000000003706f0
[  151.328885][  T233] Call Trace:
[  151.328921][  T233]  <TASK>
[  151.328960][  T233]  ? __pfx_device_trust_prepare+0x10/0x10
[  151.329020][  T233]  ? usb_driver_claim_interface+0x10b/0x1f0
[  151.329079][  T233]  ? rcu_is_watching+0x1d/0x70
[  151.329146][  T233]  ? trace_preempt_on+0xe3/0x130
[  151.329208][  T233]  device_bind_driver+0x4b/0xf0
[  151.329257][  T233]  ? _raw_spin_unlock_irqrestore+0x35/0x70
[  151.329315][  T233]  usb_driver_claim_interface+0x115/0x1f0
[  151.329385][  T233]  btusb_probe+0xbdd/0x1a4a [btusb]
[  151.329489][  T233]  ? __pfx_btusb_probe+0x10/0x10 [btusb]
[  151.329577][  T233]  ? usb_probe_interface+0x3e8/0x470
[  151.329628][  T233]  ? rcu_is_watching+0x1d/0x70
[  151.329693][  T233]  usb_probe_interface+0x1ca/0x470
[  151.329756][  T233]  ? __pfx_usb_probe_interface+0x10/0x10
[  151.329813][  T233]  ? kernfs_create_link+0xbd/0x130
[  151.329868][  T233]  ? kernfs_put+0x18/0x70
[  151.329927][  T233]  call_driver_probe+0x36/0x130
[  151.329983][  T233]  really_probe+0x19b/0x430
[  151.330038][  T233]  __driver_probe_device+0x101/0x230
[  151.330098][  T233]  driver_probe_device+0x4a/0xf0
[  151.330163][  T233]  __driver_attach+0x10b/0x2f0
[  151.330214][  T233]  ? __pfx___driver_attach+0x10/0x10
[  151.330261][  T233]  bus_for_each_dev+0xd2/0x130
[  151.330310][  T233]  ? __pfx_bus_for_each_dev+0x10/0x10
[  151.330357][  T233]  ? bus_add_driver+0x18b/0x2f0
[  151.330409][  T233]  ? trace_preempt_on+0xe3/0x130
[  151.330469][  T233]  bus_add_driver+0x1ab/0x2f0
[  151.330525][  T233]  driver_register+0xd8/0x170
[  151.330578][  T233]  usb_register_driver+0x10f/0x1f0
[  151.330628][  T233]  ? __pfx_init_module+0x10/0x10 [btusb]
[  151.330711][  T233]  do_one_initcall+0xb5/0x430
[  151.330760][  T233]  ? __kmalloc_cache_noprof+0x17a/0x630
[  151.330814][  T233]  ? __pfx_do_one_initcall+0x10/0x10
[  151.330866][  T233]  ? kasan_save_track+0x10/0x30
[  151.330913][  T233]  ? __kasan_kmalloc+0x8b/0xb0
[  151.330963][  T233]  ? __kmalloc_cache_noprof+0x269/0x630
[  151.331015][  T233]  ? do_init_module+0x88/0x470
[  151.331061][  T233]  ? kasan_unpoison+0x40/0x70
[  151.331118][  T233]  do_init_module+0x18a/0x470
[  151.331197][  T233]  ? __pfx_do_init_module+0x10/0x10
[  151.331249][  T233]  ? load_module+0xee2/0xef0
[  151.331295][  T233]  ? kfree+0x1f0/0x5b0
[  151.331356][  T233]  load_module+0xd77/0xef0
[  151.331424][  T233]  ? __pfx_load_module+0x10/0x10
[  151.331482][  T233]  ? __pfx_kernel_read_file+0x10/0x10
[  151.331540][  T233]  ? __pfx___fsnotify_parent+0x10/0x10
[  151.331604][  T233]  init_module
[  151.349570][  T233] usbcore: registered new interface driver btusb

The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20261102/[email protected]

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki