Re: [lkp] [blk] ee5c4fef9f: BUG: unable to handle kernel NULL pointer dereference at 0000010b
Hi, Xiaolong. I think it’s the correct behaviour for my patch to handle bio, and there is something wrong with floppy driver. I will post a patch to fix this floppy’s bug soon. Thanks Minfei > On Jul 29, 2016, at 10:21, kernel test robotwrote: > > > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Minfei-Huang/blk-core-Fix-the-bad-IO-during-checking-bio/20160728-182758 > commit ee5c4fef9f2ef03ee8f283a5b24192df00e17f0f ("blk-core: Fix the bad IO > during checking bio") > > in testcase: boot > > on test machine: 2 threads qemu-system-i386 -enable-kvm with 320M memory > > caused below changes: > > > ++++ > || b013517951 | ee5c4fef9f | > ++++ > | boot_successes | 11 | 2 | > | boot_failures | 1 | 10 | > | BUG:kernel_test_crashed| 1 || > | BUG:unable_to_handle_kernel| 0 | 8 | > | Oops | 0 | 8 | > | EIP_is_at__lock_acquire| 0 | 8 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | > | IP-Config:Auto-configuration_of_network_failed | 0 | 2 | > ++++ > > > > [ 24.378591] attempt to access beyond end of device > [ 24.378593] fd0: rw=0, want=8, limit=0 > [ 24.378594] floppy: error -5 while reading block 0 > [ 24.378600] BUG: unable to handle kernel NULL pointer dereference at > 010b > [ 24.378605] IP: [<7906d275>] __lock_acquire+0xa7/0x612 > [ 24.378606] *pde = > [ 24.378608] Oops: 0002 [#1] SMP > [ 24.378611] CPU: 1 PID: 574 Comm: mount Not tainted > 4.7.0-rc2-00241-gee5c4fe #4 > [ 24.378612] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > Debian-1.8.2-1 04/01/2014 > [ 24.378614] task: 87152c80 ti: 883f task.ti: 883f > [ 24.378615] EIP: 0060:[<7906d275>] EFLAGS: 00010002 CPU: 1 > [ 24.378617] EIP is at __lock_acquire+0xa7/0x612 > [ 24.378618] EAX: 0007 EBX: 0002 ECX: EDX: > [ 24.378619] ESI: 0001 EDI: 87152c80 EBP: 883f1c2c ESP: 883f1c00 > [ 24.378620] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 > [ 24.378621] CR0: 80050033 CR2: 010b CR3: 0f8bd000 CR4: 0690 > [ 24.378625] Stack: > [ 24.378630] 7a267440 0202 883f1c1c > 883f1d74 883f1c2c > [ 24.378634] 0002 87152c80 883f1d74 883f1c64 7906da8d > 0001 0001 > [ 24.378637] 79066107 > 883f1d64 0202 > [ 24.378638] Call Trace: > [ 24.378640] [<7906da8d>] lock_acquire+0x60/0x7c > [ 24.378644] [<79066107>] ? complete+0x12/0x35 > [ 24.378648] [<79b9a42a>] _raw_spin_lock_irqsave+0x34/0x44 > [ 24.378650] [<79066107>] ? complete+0x12/0x35 > [ 24.378651] [<79066107>] complete+0x12/0x35 > [ 24.378654] [<79467b9a>] floppy_rb0_cb+0x31/0x38 > [ 24.378656] [<7932d102>] bio_endio+0x39/0x51 > [ 24.378659] [<7932ec47>] generic_make_request_checks+0x13a/0x144 > [ 24.378661] [<793300ae>] generic_make_request+0x11/0x12a > [ 24.378663] [<79330293>] submit_bio+0xcc/0xd3 > [ 24.378665] [<79468347>] __floppy_read_block_0+0xbc/0xfe > [ 24.378668] [<7906bfa3>] ? mark_held_locks+0x4b/0x65 > [ 24.378671] [<79b9a5de>] ? _raw_spin_unlock_irqrestore+0x39/0x4b > [ 24.378672] [<79467b69>] ? floppy_find+0x3b/0x3b > [ 24.378674] [<79468955>] floppy_revalidate+0x104/0x171 > [ 24.378678] [<79117276>] check_disk_change+0x41/0x4e > [ 24.378680] [<79467e9a>] floppy_open+0x20c/0x28d > [ 24.378682] [<7911697b>] __blkdev_get+0xf9/0x34f > [ 24.378684] [<79116d39>] blkdev_get+0x168/0x25c > [ 24.378689] [<790f8206>] ? path_put+0x15/0x18 > [ 24.378691] [<79117061>] ? lookup_bdev+0x62/0x72 > [ 24.378693] [<79117094>] blkdev_get_by_path+0x23/0x53 > [ 24.378696] [<790f2820>] mount_bdev+0x2a/0x157 > [ 24.378700] [<7917748a>] ext4_mount+0x10/0x12 > [ 24.378702] [<7917af40>] ? ext4_calculate_overhead+0x30e/0x30e > [ 24.378704] [<790f2ad3>] mount_fs+0x53/0x110 > [ 24.378708] [<79107ab4>] vfs_kern_mount+0x47/0xaa > [ 24.378710] [<79108d9b>] do_mount+0x7a6/0x8a6 > [ 24.378714] [<790c35c2>] ? strndup_user+0x27/0x3f > [ 24.378717] [<79109040>] SyS_mount+0x52/0x76 > [ 24.378720] [<79000f2e>] do_int80_syscall_32+0x48/0x5a > [ 24.378722] [<79b9ab2c>] entry_INT80_32+0x2c/0x2c > [ 24.378747] Code: 80 08 48 7a 74 03 8b 75 0c 83 fa 01 77 0b 8b 45 ec 8b 44 > 90 04 85 c0 75 12 31 c9 8b 45 ec e8 8f cc ff ff 85 c0 0f 84 f2 04 00 00 > ff 80 04 01 00 00 8b 9f 58 04 00
Re: [lkp] [blk] ee5c4fef9f: BUG: unable to handle kernel NULL pointer dereference at 0000010b
Hi, Xiaolong. I think it’s the correct behaviour for my patch to handle bio, and there is something wrong with floppy driver. I will post a patch to fix this floppy’s bug soon. Thanks Minfei > On Jul 29, 2016, at 10:21, kernel test robot wrote: > > > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Minfei-Huang/blk-core-Fix-the-bad-IO-during-checking-bio/20160728-182758 > commit ee5c4fef9f2ef03ee8f283a5b24192df00e17f0f ("blk-core: Fix the bad IO > during checking bio") > > in testcase: boot > > on test machine: 2 threads qemu-system-i386 -enable-kvm with 320M memory > > caused below changes: > > > ++++ > || b013517951 | ee5c4fef9f | > ++++ > | boot_successes | 11 | 2 | > | boot_failures | 1 | 10 | > | BUG:kernel_test_crashed| 1 || > | BUG:unable_to_handle_kernel| 0 | 8 | > | Oops | 0 | 8 | > | EIP_is_at__lock_acquire| 0 | 8 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | > | IP-Config:Auto-configuration_of_network_failed | 0 | 2 | > ++++ > > > > [ 24.378591] attempt to access beyond end of device > [ 24.378593] fd0: rw=0, want=8, limit=0 > [ 24.378594] floppy: error -5 while reading block 0 > [ 24.378600] BUG: unable to handle kernel NULL pointer dereference at > 010b > [ 24.378605] IP: [<7906d275>] __lock_acquire+0xa7/0x612 > [ 24.378606] *pde = > [ 24.378608] Oops: 0002 [#1] SMP > [ 24.378611] CPU: 1 PID: 574 Comm: mount Not tainted > 4.7.0-rc2-00241-gee5c4fe #4 > [ 24.378612] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > Debian-1.8.2-1 04/01/2014 > [ 24.378614] task: 87152c80 ti: 883f task.ti: 883f > [ 24.378615] EIP: 0060:[<7906d275>] EFLAGS: 00010002 CPU: 1 > [ 24.378617] EIP is at __lock_acquire+0xa7/0x612 > [ 24.378618] EAX: 0007 EBX: 0002 ECX: EDX: > [ 24.378619] ESI: 0001 EDI: 87152c80 EBP: 883f1c2c ESP: 883f1c00 > [ 24.378620] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 > [ 24.378621] CR0: 80050033 CR2: 010b CR3: 0f8bd000 CR4: 0690 > [ 24.378625] Stack: > [ 24.378630] 7a267440 0202 883f1c1c > 883f1d74 883f1c2c > [ 24.378634] 0002 87152c80 883f1d74 883f1c64 7906da8d > 0001 0001 > [ 24.378637] 79066107 > 883f1d64 0202 > [ 24.378638] Call Trace: > [ 24.378640] [<7906da8d>] lock_acquire+0x60/0x7c > [ 24.378644] [<79066107>] ? complete+0x12/0x35 > [ 24.378648] [<79b9a42a>] _raw_spin_lock_irqsave+0x34/0x44 > [ 24.378650] [<79066107>] ? complete+0x12/0x35 > [ 24.378651] [<79066107>] complete+0x12/0x35 > [ 24.378654] [<79467b9a>] floppy_rb0_cb+0x31/0x38 > [ 24.378656] [<7932d102>] bio_endio+0x39/0x51 > [ 24.378659] [<7932ec47>] generic_make_request_checks+0x13a/0x144 > [ 24.378661] [<793300ae>] generic_make_request+0x11/0x12a > [ 24.378663] [<79330293>] submit_bio+0xcc/0xd3 > [ 24.378665] [<79468347>] __floppy_read_block_0+0xbc/0xfe > [ 24.378668] [<7906bfa3>] ? mark_held_locks+0x4b/0x65 > [ 24.378671] [<79b9a5de>] ? _raw_spin_unlock_irqrestore+0x39/0x4b > [ 24.378672] [<79467b69>] ? floppy_find+0x3b/0x3b > [ 24.378674] [<79468955>] floppy_revalidate+0x104/0x171 > [ 24.378678] [<79117276>] check_disk_change+0x41/0x4e > [ 24.378680] [<79467e9a>] floppy_open+0x20c/0x28d > [ 24.378682] [<7911697b>] __blkdev_get+0xf9/0x34f > [ 24.378684] [<79116d39>] blkdev_get+0x168/0x25c > [ 24.378689] [<790f8206>] ? path_put+0x15/0x18 > [ 24.378691] [<79117061>] ? lookup_bdev+0x62/0x72 > [ 24.378693] [<79117094>] blkdev_get_by_path+0x23/0x53 > [ 24.378696] [<790f2820>] mount_bdev+0x2a/0x157 > [ 24.378700] [<7917748a>] ext4_mount+0x10/0x12 > [ 24.378702] [<7917af40>] ? ext4_calculate_overhead+0x30e/0x30e > [ 24.378704] [<790f2ad3>] mount_fs+0x53/0x110 > [ 24.378708] [<79107ab4>] vfs_kern_mount+0x47/0xaa > [ 24.378710] [<79108d9b>] do_mount+0x7a6/0x8a6 > [ 24.378714] [<790c35c2>] ? strndup_user+0x27/0x3f > [ 24.378717] [<79109040>] SyS_mount+0x52/0x76 > [ 24.378720] [<79000f2e>] do_int80_syscall_32+0x48/0x5a > [ 24.378722] [<79b9ab2c>] entry_INT80_32+0x2c/0x2c > [ 24.378747] Code: 80 08 48 7a 74 03 8b 75 0c 83 fa 01 77 0b 8b 45 ec 8b 44 > 90 04 85 c0 75 12 31 c9 8b 45 ec e8 8f cc ff ff 85 c0 0f 84 f2 04 00 00 > ff 80 04 01 00 00 8b 9f 58 04 00 00 89 5d e4 83 3d 08