FYI, we noticed the following commit: git://linuxtv.org/media_tree.git master commit 7cda4c5bae46ffca3abeadc4c1882d9325ee3102 ("[media] tveeprom: use dev_foo() for printk messages") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +----------------------------------------------+------------+------------+ | | 8ca2e927eb | 7cda4c5bae | +----------------------------------------------+------------+------------+ | boot_successes | 0 | 0 | | boot_failures | 28 | 28 | | calltrace:async_run_entry_fn | 28 | 28 | | WARNING:at_include/linux/kref.h:#kobject_get | 28 | 28 | | calltrace:init | 28 | 9 | | general_protection_fault:#[##]PREEMPT_SMP | 28 | 9 | | RIP:kobject_get | 28 | 9 | | Kernel_panic-not_syncing:Fatal_exception | 28 | 28 | | kernel_BUG_at_mm/slab.c | 0 | 19 | | invalid_opcode:#[##]PREEMPT_SMP | 0 | 19 | | RIP:free_block | 0 | 19 | | calltrace:scsi_debug_init | 0 | 20 | | WARNING:at_fs/sysfs/dir.c:#sysfs_warn_dup | 0 | 1 | +----------------------------------------------+------------+------------+ [ 15.655206] kernel BUG at mm/slab.c:2637! [ 15.656249] invalid opcode: 0000 [#1] PREEMPT SMP [ 15.657084] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.9.0-rc1-00116-g7cda4c5 #1 [ 15.658607] task: ffff880000374000 task.stack: ffffc900000d0000 [ 15.659649] RIP: 0010:[] [] free_block+0xc1/0x169 [ 15.661063] RSP: 0000:ffffc900000d3ab8 EFLAGS: 00010096 [ 15.662000] RAX: 0000000000000047 RBX: ffff880000098180 RCX: 0000000000000000 [ 15.663251] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff82acccc8 [ 15.664505] RBP: ffffc900000d3b08 R08: 0000000000000001 R09: 0000000000000000 [ 15.665754] R10: 0000000000000076 R11: ffffffff83971c27 R12: ffff88000ecceec0 [ 15.667004] R13: 000000000000000b R14: ffff880000090180 R15: ffff88001329a380 [ 15.668256] FS: 0000000000000000(0000) GS:ffff880013a00000(0000) knlGS:0000000000000000 [ 15.669673] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 15.670708] CR2: 0000000000000000 CR3: 0000000002811000 CR4: 00000000000006b0 [ 15.671974] Stack: [ 15.672350] ffff88001329a3a0 ffff8800000901c8 ffffc900000d3b40 ffff880013be78f8 [ 15.673750] 0000001000000000 ffff880000098180 ffff88000ecce880 ffff880013be78e8 [ 15.675142] 0000000000000010 ffff880000090180 ffffc900000d3b78 ffffffff8119fad2 [ 15.676539] Call Trace: [ 15.676984] [] ___cache_free+0x3db/0x4ed [ 15.677966] [] kfree+0xea/0x118 [ 15.678817] [] kfree_const+0x20/0x22 [ 15.679743] [] kernfs_put+0xde/0x17d [ 15.680679] [] __kernfs_remove+0x12b/0x36e [ 15.681690] [] ? kernfs_find_ns+0xfe/0x124 [ 15.682705] [] kernfs_remove_by_name_ns+0x6b/0x86 [ 15.683825] [] sysfs_remove_link+0x22/0x24 [ 15.684840] [] driver_sysfs_remove+0x26/0x39 [ 15.685885] [] driver_probe_device+0x18d/0x315 [ 15.686957] [] __device_attach_driver+0x85/0x8c [ 15.688044] [] ? driver_allows_async_probing+0x12/0x12 [ 15.689232] [] bus_for_each_drv+0x7b/0x8a [ 15.690229] [] __device_attach+0x93/0xf2 [ 15.691211] [] device_initial_probe+0x13/0x15 [ 15.692268] [] bus_probe_device+0x33/0x9e [ 15.693265] [] device_add+0x435/0x535 [ 15.694199] [] device_register+0x1a/0x1d [ 15.695182] [] sdebug_add_adapter+0x122/0x16f [ 15.696239] [] ? set_debug_rodata+0x12/0x12 [ 15.697266] [] scsi_debug_init+0x67a/0x706 [ 15.698279] [] ? osd_uld_init+0xb9/0xb9 [ 15.699245] [] do_one_initcall+0x8b/0x144 [ 15.700243] [] ? set_debug_rodata+0x12/0x12 [ 15.701270] [] kernel_init_freeable+0x119/0x1a1 [ 15.702364] [] ? rest_init+0xc3/0xc3 [ 15.703278] [] kernel_init+0xe/0xf5 [ 15.704185] [] ret_from_fork+0x25/0x30 [ 15.705136] Code: 48 89 f2 39 f7 76 26 4d 8b 57 10 45 0f b6 14 32 48 ff c6 44 39 d0 75 eb 48 8b 73 58 4c 89 e2 48 c7 c7 23 38 58 82 e8 c1 ce fb ff <0f> 0b ff ca 49 83 7f 10 00 41 89 57 18 75 0e 48 63 b3 e4 00 00 [ 15.710075] RIP [] free_block+0xc1/0x169 [ 15.711084] RSP [ 15.711715] ---[ end trace bfc2e1bd56603bb6 ]--- [ 15.712534] Kernel panic - not syncing: Fatal exception [ 15.713662] Kernel Offset: disabled To reproduce: git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong