2024-04-26 02:17:07

by Sam Sun

[permalink] [raw]
Subject: [Linux kernel bug] general protection fault in stack_depot_save_flags

Dear developers and maintainers,

We encountered a general protection fault in function
stack_depot_save_flags. It is tested against the latest upstream linux
(tag 6.9-rc5). C repro and kernel config are attached to this email.
Kernel crash log is listed below.
```
[ 195.286886][ T4546] kernel BUG at arch/x86/mm/physaddr.c:28!
[ 195.290284][ T4546] invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
[ 195.292080][ T4546] CPU: 0 PID: 4546 Comm: systemd-udevd Not
tainted 6.9.0-rc5 #1
[ 195.293671][ T4546] Hardware name: QEMU Standard PC (i440FX + PIIX,
1996), BIOS 1.15.0-1 04/01/2014
[ 195.295590][ T4546] RIP: 0010:__phys_addr+0x155/0x170
[ 195.296697][ T4546] Code: 82 af 00 e9 41 ff ff ff e8 d8 0e 4f 00 48
c7 c7 40 75 ba 8d 4c 89 f6 4c 89 fa e8 d6 17 88 03 e9 49 ff ff ff e8
bc 0e 4f 00 90 <0f> 0b e8 4
[ 195.302421][ T4546] RSP: 0018:ffffc90001fa7a70 EFLAGS: 00010293
[ 195.304771][ T4546] RAX: ffffffff813f3424 RBX: 6972705f80040048
RCX: ffff8880183b2500
[ 195.309675][ T4546] RDX: 0000000000000000 RSI: 6972705f80040048
RDI: 6972e7df00040048
[ 195.314119][ T4546] RBP: 6972705f00040048 R08: ffffffff813f331b
R09: 1ffffffff227329e
[ 195.318406][ T4546] R10: dffffc0000000000 R11: fffffbfff227329f
R12: 0000000000000000
[ 195.322767][ T4546] R13: 0000000000001000 R14: 6972e7df00040048
R15: 0000000000000000
[ 195.326348][ T4546] FS: 00007f70142508c0(0000)
GS:ffff88802c800000(0000) knlGS:0000000000000000
[ 195.328494][ T4546] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 195.329988][ T4546] CR2: 00007f2af8529d30 CR3: 000000001873e000
CR4: 0000000000750ef0
[ 195.331540][ T4546] DR0: 0000000000000000 DR1: 0000000000000000
DR2: 0000000000000000
[ 195.333232][ T4546] DR3: 0000000000000000 DR6: 00000000fffe0ff0
DR7: 0000000000000400
[ 195.335104][ T4546] PKRU: 55555554
[ 195.335961][ T4546] Call Trace:
[ 195.336798][ T4546] <TASK>
[ 195.337556][ T4546] ? __die_body+0x88/0xe0
[ 195.338633][ T4546] ? die+0xcf/0x110
[ 195.339507][ T4546] ? do_trap+0x155/0x3a0
[ 195.340378][ T4546] ? __phys_addr+0x155/0x170
[ 195.341314][ T4546] ? do_error_trap+0x1dc/0x2a0
[ 195.342183][ T4546] ? __phys_addr+0x155/0x170
[ 195.343028][ T4546] ? do_int3+0x50/0x50
[ 195.343781][ T4546] ? handle_invalid_op+0x34/0x40
[ 195.344839][ T4546] ? __phys_addr+0x155/0x170
[ 195.345759][ T4546] ? exc_invalid_op+0x34/0x50
[ 195.346721][ T4546] ? asm_exc_invalid_op+0x1a/0x20
[ 195.347760][ T4546] ? __phys_addr+0x4b/0x170
[ 195.348714][ T4546] ? __phys_addr+0x154/0x170
[ 195.349675][ T4546] ? __phys_addr+0x155/0x170
[ 195.350611][ T4546] virt_to_slab+0x5/0xb0
[ 195.351504][ T4546] qlist_free_all+0x2f/0xd0
[ 195.352429][ T4546] kasan_quarantine_reduce+0x15a/0x170
[ 195.353566][ T4546] __kasan_slab_alloc+0x23/0x70
[ 195.354581][ T4546] __kmalloc_node+0x206/0x4f0
[ 195.355515][ T4546] ? kvmalloc_node+0x72/0x180
[ 195.356501][ T4546] kvmalloc_node+0x72/0x180
[ 195.357467][ T4546] seq_read_iter+0x209/0xde0
[ 195.358419][ T4546] ? __fsnotify_update_child_dentry_flags+0x2d0/0x2d0
[ 195.360024][ T7877]
==================================================================
[ 195.360066][ T4546] vfs_read+0x96c/0xbb0
[ 195.361565][ T7877] BUG: KFENCE: invalid write in memmove+0x28/0x1b0
[ 195.361565][ T7877]
[ 195.362768][ T4546] ? kernel_read+0x70/0x70
[ 195.364307][ T7877] Invalid write at 0xffff88807ea00000:
[ 195.364341][ T7877] memmove+0x28/0x1b0
[ 195.366349][ T4546] ? vfs_fstatat+0x172/0x1b0
[ 195.367321][ T7877] leaf_paste_entries+0x96f/0x1380
[ 195.369358][ T4546] ? __x64_sys_newfstatat+0x127/0x170
[ 195.370171][ T7877] balance_leaf+0xa9b7/0x12070
[ 195.371087][ T4546] ? __fdget_pos+0x26a/0x320
[ 195.372001][ T7877] do_balance+0x2da/0x8c0
[ 195.372953][ T4546] ksys_read+0x17b/0x2a0
[ 195.373808][ T7877] reiserfs_paste_into_item+0x73e/0x880
[ 195.374612][ T4546] ? vfs_write+0xcf0/0xcf0
[ 195.375388][ T7877] reiserfs_add_entry+0x9c5/0xef0
[ 195.376430][ T4546] ? __secure_computing+0x122/0x370
[ 195.377176][ T7877] reiserfs_mkdir+0x694/0x8d0
[ 195.378105][ T4546] do_syscall_64+0xe4/0x240
[ 195.378983][ T7877] reiserfs_xattr_init+0x359/0x6c0
[ 195.379882][ T4546] ? clear_bhb_loop+0x25/0x80
[ 195.380629][ T7877] reiserfs_fill_super+0x2090/0x2480
[ 195.381599][ T4546] entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.382415][ T7877] mount_bdev+0x212/0x2d0
[ 195.383470][ T4546] RIP: 0033:0x7f7014114992
[ 195.384483][ T7877] legacy_get_tree+0xed/0x190
[ 195.385317][ T4546] Code: c0 e9 b2 fe ff ff 50 48 8d 3d fa b2 0c 00
e8 c5 1d 02 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85
c0 75 10 0f 05 <48> 3d 00 4
[ 195.386121][ T7877] vfs_get_tree+0x90/0x2a0
[ 195.386988][ T4546] RSP: 002b:00007ffec39483a8 EFLAGS: 00000246
[ 195.390505][ T7877] do_new_mount+0x2bb/0xb40
[ 195.391471][ T4546] ORIG_RAX: 0000000000000000
[ 195.392563][ T7877] __se_sys_mount+0x2c9/0x3b0
[ 195.393421][ T4546] RAX: ffffffffffffffda RBX: 00005572e8c8ff00
RCX: 00007f7014114992
[ 195.394291][ T7877] do_syscall_64+0xe4/0x240
[ 195.395167][ T4546] RDX: 0000000000001000 RSI: 00005572e8c2b990
RDI: 000000000000000e
[ 195.396592][ T7877] entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.397491][ T4546] RBP: 00007f7014216600 R08: 000000000000000e
R09: 00005572e8c2b990
[ 195.398915][ T7877]
[ 195.398926][ T7877] CPU: 1 PID: 7877 Comm: stack_depot_sav Not
tainted 6.9.0-rc5 #1
[ 195.400155][ T4546] R10: 00005572e8ca74d0 R11: 0000000000000246
R12: 00007f701421a580
[ 195.401585][ T7877] Hardware name: QEMU Standard PC (i440FX + PIIX,
1996), BIOS 1.15.0-1 04/01/2014
[ 195.402035][ T4546] R13: 0000000000000d68 R14: 00007f7014215a00
R15: 0000000000000d68
[ 195.403401][ T7877] RIP: 0010:memmove+0x28/0x1b0
[ 195.404946][ T4546] </TASK>
[ 195.406555][ T7877] Code: c3 90 f3 0f 1e fa 48 89 f8 48 39 fe 7d 0f
49 89 f0 49 01 d0 49 39 f8 0f 8f b5 00 00 00 48 83 fa 20 0f 82 01 01
00 00 48 89 d1 <f3> a4 c3 8
[ 195.408116][ T4546] Modules linked in:
[ 195.408958][ T7877] RSP: 0018:ffffc900020267f8 EFLAGS: 00010282
[ 195.409703][ C0] general protection fault, probably for
non-canonical address 0x6972705f00040058: 0000 [#2] PREEMPT SMP KASAN
PTI
[ 195.412843][ T7877]
[ 195.412855][ T7877] RAX: ffff88807893efb4 RBX: 0000000000000010
RCX: fffffffff9f3ef9b
[ 195.413822][ C0] CPU: 0 PID: 4546 Comm: systemd-udevd Tainted: G
D 6.9.0-rc5 #1
[ 195.414969][ T7877] RDX: ffffffffffffffe7 RSI: ffff88807e9ffff0
RDI: ffff88807ea00000
[ 195.417351][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX,
1996), BIOS 1.15.0-1 04/01/2014
[ 195.417814][ T7877] RBP: ffff88807893efa4 R08: ffff88807893ef8b
R09: 0000766972705f73
[ 195.419310][ C0] RIP: 0010:stack_depot_save_flags+0x1a0/0x850
[ 195.420976][ T7877] R10: 667265736965722e R11: 0000766972705f73
R12: 0000000000000f84
[ 195.422467][ C0] Code: 48 89 54 24 18 31 f6 4c 89 44 24 10 e8 19
c6 c7 ff 31 f6 4c 8b 44 24 10 48 8b 54 24 18 45 85 e4 75 62 4d 8b 3f
49 39 d7 74 5d <45> 39 77 c
[ 195.424141][ T7877] R13: ffff88807893ef84 R14: 0000000000000020
R15: ffffffffffffffe7
[ 195.425670][ C0] RSP: 0018:ffffc900000078c0 EFLAGS: 00010046
[ 195.426822][ T7877] FS: 00007f11886b1640(0000)
GS:ffff88807ec00000(0000) knlGS:0000000000000000
[ 195.428363][ C0]
[ 195.431888][ T7877] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 195.433438][ C0] RAX: ffff88807da00000 RBX: 0000000000000001
RCX: 0000000000ab1820
[ 195.434557][ T7877] CR2: ffff88807ea00000 CR3: 000000001f8b0000
CR4: 0000000000750ef0
[ 195.436242][ C0] RDX: ffff88807e4b1820 RSI: 0000000000000000
RDI: 00000000021104bc
[ 195.436706][ T7877] DR0: 0000000000000000 DR1: 0000000000000000
DR2: 0000000000000000
[ 195.438051][ C0] RBP: 000000000000000b R08: 000000000000000b
R09: ffffffff813df194
[ 195.439508][ T7877] DR3: 0000000000000000 DR6: 00000000fffe0ff0
DR7: 0000000000000400
[ 195.441039][ C0] R10: 0000000000000003 R11: ffff8880183b2500
R12: ffffc90000007be0
[ 195.442508][ T7877] PKRU: 55555554
[ 195.444114][ C0] R13: ffffc90000007920 R14: 00000000618ab182
R15: 6972705f00040048
[ 195.445609][ T7877] Call Trace:
[ 195.445624][ T7877] <TASK>
[ 195.447074][ C0] FS: 00007f70142508c0(0000)
GS:ffff88802c800000(0000) knlGS:0000000000000000
[ 195.448459][ T7877] ? kfence_report_error+0x89a/0xb00
[ 195.449142][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 195.450935][ T7877] ? put_task_struct_rcu_user+0x90/0x90
[ 195.451615][ C0] CR2: 00007f2af8529d30 CR3: 000000001873e000
CR4: 0000000000750ef0
[ 195.452150][ T7877] ? kfence_print_stack+0x2d0/0x2d0
[ 195.453815][ C0] DR0: 0000000000000000 DR1: 0000000000000000
DR2: 0000000000000000
[ 195.454957][ T7877] ? kasan_save_stack+0x3e/0x50
[ 195.456172][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0
DR7: 0000000000000400
[ 195.457178][ T7877] ? __kasan_record_aux_stack+0xac/0xc0
[ 195.458635][ C0] PKRU: 55555554
[ 195.459585][ T7877] ? memmove+0x28/0x1b0
[ 195.461054][ C0] Call Trace:
[ 195.461960][ T7877] ? leaf_paste_entries+0x96f/0x1380
[ 195.463971][ C0] <IRQ>
[ 195.464940][ T7877] ? balance_leaf+0xa9b7/0x12070
[ 195.466007][ C0] ? __die_body+0x88/0xe0
[ 195.466748][ T7877] ? do_balance+0x2da/0x8c0
[ 195.467636][ C0] ? die_addr+0x108/0x140
[ 195.468562][ T7877] ? reiserfs_paste_into_item+0x73e/0x880
[ 195.469334][ C0] ? exc_general_protection+0x29d/0x460
[ 195.470205][ T7877] ? reiserfs_add_entry+0x9c5/0xef0
[ 195.471281][ C0] ? asm_exc_general_protection+0x26/0x30
[ 195.472089][ T7877] ? reiserfs_mkdir+0x694/0x8d0
[ 195.473124][ C0] ? unwind_next_frame+0x18b4/0x2940
[ 195.474159][ T7877] ? reiserfs_xattr_init+0x359/0x6c0
[ 195.475456][ C0] ? stack_depot_save_flags+0x1a0/0x850
[ 195.476387][ T7877] ? reiserfs_fill_super+0x2090/0x2480
[ 195.477647][ C0] kasan_save_stack+0x3e/0x50
[ 195.478520][ T7877] ? mount_bdev+0x212/0x2d0
[ 195.479722][ C0] ? kasan_save_stack+0x2f/0x50
[ 195.480652][ T7877] ? legacy_get_tree+0xed/0x190
[ 195.482045][ C0] ? __kasan_record_aux_stack+0xac/0xc0
[ 195.483009][ T7877] ? vfs_get_tree+0x90/0x2a0
[ 195.484010][ C0] ? task_work_add+0x8b/0x350
[ 195.484806][ T7877] ? do_new_mount+0x2bb/0xb40
[ 195.486124][ C0] ? scheduler_tick+0x3d7/0x850
[ 195.487009][ T7877] ? __se_sys_mount+0x2c9/0x3b0
[ 195.487037][ T7877] ? do_syscall_64+0xe4/0x240
[ 195.488319][ C0] ? update_process_times+0x202/0x230
[ 195.489154][ T7877] ? entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.490310][ C0] ? tick_nohz_handler+0x37a/0x4f0
[ 195.491142][ T7877] ? read_lock_is_recursive+0x20/0x20
[ 195.492324][ C0] ? __hrtimer_run_queues+0x4ab/0x8e0
[ 195.493382][ T7877] ? trim_init_extable+0x690/0x690
[ 195.494515][ C0] ? hrtimer_interrupt+0x37f/0x970
[ 195.495501][ T7877] ? lock_release+0x85/0x810
[ 195.497054][ C0] ? __sysvec_apic_timer_interrupt+0xc1/0x180
[ 195.498067][ T7877] ? memmove+0x28/0x1b0
[ 195.499389][ C0] ? sysvec_apic_timer_interrupt+0xa1/0xc0
[ 195.500362][ T7877] ? __lock_acquire+0x1f60/0x1f60
[ 195.501727][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 195.502677][ T7877] ? __module_address+0x32/0x4f0
[ 195.503786][ C0] ? do_oops_enter_exit+0x120/0x120
[ 195.504837][ T7877] ? kfence_handle_page_fault+0x477/0x4f0
[ 195.505857][ C0] ? oops_end+0x11a/0x1f0
[ 195.506829][ T7877] ? fixup_exception+0x245/0x1eb0
[ 195.508038][ C0] ? do_trap+0x155/0x3a0
[ 195.509073][ T7877] ? rcu_is_watching+0x15/0xb0
[ 195.510288][ C0] ? do_error_trap+0x1dc/0x2a0
[ 195.511156][ T7877] ? page_fault_oops+0x17b/0xa90
[ 195.512518][ C0] ? handle_invalid_op+0x34/0x40
[ 195.513244][ T7877] ? finish_task_switch+0x28f/0x880
[ 195.514535][ C0] ? exc_invalid_op+0x34/0x50
[ 195.515308][ T7877] ? ex_get_fixup_type+0x70/0x70
[ 195.516449][ C0] ? asm_exc_invalid_op+0x1a/0x20
[ 195.517321][ T7877] ? is_prefetch+0x4a4/0x700
[ 195.518562][ C0] ? __phys_addr+0x155/0x170
[ 195.519470][ T7877] ? kernelmode_fixup_or_oops+0x2a0/0x2a0
[ 195.520557][ C0] ? virt_to_slab+0x5/0xb0
[ 195.521417][ T7877] ? page_fault_oops+0xa90/0xa90
[ 195.522434][ C0] ? qlist_free_all+0x2f/0xd0
[ 195.523330][ T7877] ? release_firmware_map_entry+0x190/0x190
[ 195.524227][ C0] ? kasan_quarantine_reduce+0x15a/0x170
[ 195.525054][ T7877] ? kernelmode_fixup_or_oops+0x20c/0x2a0
[ 195.526295][ C0] ? __kasan_slab_alloc+0x23/0x70
[ 195.527183][ T7877] ? __bad_area_nosemaphore+0x126/0x750
[ 195.528330][ C0] ? __kmalloc_node+0x206/0x4f0
[ 195.529153][ T7877] ? rcu_is_watching+0x15/0xb0
[ 195.530432][ C0] ? kvmalloc_node+0x72/0x180
[ 195.531410][ T7877] ? spurious_kernel_fault_check+0x120/0x120
[ 195.532606][ C0] ? seq_read_iter+0x209/0xde0
[ 195.533507][ T7877] ? preempt_schedule_irq+0x10c/0x180
[ 195.534657][ C0] ? vfs_read+0x96c/0xbb0
[ 195.535533][ T7877] ? spurious_kernel_fault+0xb6/0x5e0
[ 195.536622][ C0] ? ksys_read+0x17b/0x2a0
[ 195.537463][ T7877] ? exc_page_fault+0xc9/0x120
[ 195.538975][ C0] ? do_syscall_64+0xe4/0x240
[ 195.539837][ T7877] ? asm_exc_page_fault+0x26/0x30
[ 195.541204][ C0] ? entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.542000][ T7877] ? memmove+0x28/0x1b0
[ 195.543249][ C0] ? rcu_is_watching+0x15/0xb0
[ 195.544041][ T7877] ? __lock_acquire+0x133b/0x1f60
[ 195.545137][ C0] ? update_rq_clock_task+0x12b/0x7d0
[ 195.545986][ T7877] leaf_paste_entries+0x96f/0x1380
[ 195.547377][ C0] ? trace_lock_release+0x3f/0x140
[ 195.548462][ T7877] balance_leaf+0xa9b7/0x12070
[ 195.549535][ C0] ? __lock_acquire+0x1f60/0x1f60
[ 195.550403][ T7877] ? lockdep_hardirqs_on_prepare+0x418/0x760
[ 195.551786][ C0] ? lock_release+0x85/0x810
[ 195.552765][ T7877] ? _raw_spin_unlock_irqrestore+0x8f/0x120
[ 195.554066][ C0] ? read_lock_is_recursive+0x20/0x20
[ 195.554982][ T7877] ? lockdep_hardirqs_on+0x91/0x140
[ 195.556295][ C0] ? __virt_addr_valid+0x182/0x510
[ 195.557203][ T7877] ? _raw_spin_unlock+0x40/0x40
[ 195.558797][ C0] ? __virt_addr_valid+0x182/0x510
[ 195.559644][ T7877] ? _raw_spin_lock_irqsave+0xc3/0x100
[ 195.561075][ C0] ? __virt_addr_valid+0x43d/0x510
[ 195.562046][ T7877] ? _raw_spin_lock+0x40/0x40
[ 195.563303][ C0] ? __phys_addr+0xb9/0x170
[ 195.564187][ T7877] ? do_balance+0x8c0/0x8c0
[ 195.565331][ C0] __kasan_record_aux_stack+0xac/0xc0
[ 195.566223][ T7877] ? fix_nodes+0x691b/0x8c20
[ 195.567490][ C0] task_work_add+0x8b/0x350
[ 195.568388][ T7877] ? kasan_save_track+0x42/0x70
[ 195.569515][ C0] ? __ia32_sys_pidfd_getfd+0x90/0x90
[ 195.570374][ T7877] ? kasan_save_track+0x30/0x70
[ 195.571497][ C0] scheduler_tick+0x3d7/0x850
[ 195.572449][ T7877] ? __kasan_kmalloc+0x98/0xb0
[ 195.573567][ C0] update_process_times+0x202/0x230
[ 195.574341][ T7877] ? __kmalloc+0x232/0x4b0
[ 195.575572][ C0] tick_nohz_handler+0x37a/0x4f0
[ 195.576478][ T7877] ? fix_nodes+0x691b/0x8c20
[ 195.577665][ C0] __hrtimer_run_queues+0x4ab/0x8e0
[ 195.578442][ T7877] ? reiserfs_paste_into_item+0x65d/0x880
[ 195.579608][ C0] ? tick_setup_sched_timer+0x6d0/0x6d0
[ 195.580476][ T7877] ? reiserfs_add_entry+0x9c5/0xef0
[ 195.581558][ C0] ? hrtimer_interrupt+0x970/0x970
[ 195.582398][ T7877] ? reiserfs_mkdir+0x694/0x8d0
[ 195.583597][ C0] ? ktime_get_update_offsets_now+0x40f/0x430
[ 195.584536][ T7877] ? reiserfs_xattr_init+0x359/0x6c0
[ 195.585974][ C0] hrtimer_interrupt+0x37f/0x970
[ 195.586961][ T7877] ? reiserfs_fill_super+0x2090/0x2480
[ 195.588199][ C0] __sysvec_apic_timer_interrupt+0xc1/0x180
[ 195.589125][ T7877] ? mount_bdev+0x212/0x2d0
[ 195.590290][ C0] sysvec_apic_timer_interrupt+0xa1/0xc0
[ 195.591372][ T7877] ? legacy_get_tree+0xed/0x190
[ 195.592629][ C0] </IRQ>
[ 195.593461][ T7877] ? vfs_get_tree+0x90/0x2a0
[ 195.594828][ C0] <TASK>
[ 195.595818][ T7877] ? do_new_mount+0x2bb/0xb40
[ 195.596884][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 195.597829][ T7877] ? __se_sys_mount+0x2c9/0x3b0
[ 195.598953][ C0] RIP: 0010:oops_exit+0x0/0x30
[ 195.599456][ T7877] ? do_syscall_64+0xe4/0x240
[ 195.600558][ C0] Code: 2a 3b 00 80 f3 01 88 1d fe 06 86 0f 48 c7
c7 00 ce bc 8d 4c 89 f6 5b 41 5e 5d e9 cb a5 df 09 66 2e 0f 1f 84 00
00 00 00 00 90 <66> 0f 1f 1
[ 195.601052][ T7877] ? entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.602283][ C0] RSP: 0018:ffffc90001fa7818 EFLAGS: 00000293
[ 195.603287][ T7877] ? mark_lock+0x9a/0x350
[ 195.604544][ C0]
[ 195.605375][ T7877] ? lockdep_hardirqs_on_prepare+0x418/0x760
[ 195.605403][ T7877] ? mark_lock+0x9a/0x350
[ 195.606627][ C0] RAX: ffffffff813127e4 RBX: 0000000000000046
RCX: ffff8880183b2500
[ 195.610038][ T7877] ? print_irqtrace_events+0x210/0x210
[ 195.611354][ C0] RDX: 0000000000000000 RSI: 0000000000000200
RDI: 0000000000000000
[ 195.612357][ T7877] ? ___slab_alloc+0x8eb/0xe90
[ 195.613268][ C0] RBP: 0000000000000000 R08: ffffffff813127cf
R09: 1ffffffff21b23d8
[ 195.613682][ T7877] ? lockdep_hardirqs_on+0x91/0x140
[ 195.614892][ C0] R10: dffffc0000000000 R11: fffffbfff21b23d9
R12: ffffc90001fa79c8
[ 195.615611][ T7877] ? get_parents+0x4b1/0xf10
[ 195.617346][ C0] R13: dffffc0000000000 R14: 000000000000000b
R15: 0000000000000200
[ 195.618271][ T7877] ? __wake_up+0x10/0x10
[ 195.620225][ C0] ? oops_end+0xff/0x1f0
[ 195.621021][ T7877] ? set_parameters+0x8c0/0x8c0
[ 195.623289][ C0] ? oops_end+0x114/0x1f0
[ 195.624232][ T7877] ? get_neighbors+0x626/0x1000
[ 195.626080][ C0] oops_end+0x11a/0x1f0
[ 195.626874][ T7877] ? reiserfs_prepare_for_journal+0x23d/0x250
[ 195.628789][ C0] do_trap+0x155/0x3a0
[ 195.629521][ T7877] ? fix_nodes+0x7a5f/0x8c20
[ 195.630509][ C0] ? __phys_addr+0x155/0x170
[ 195.631362][ T7877] do_balance+0x2da/0x8c0
[ 195.632350][ C0] do_error_trap+0x1dc/0x2a0
[ 195.633233][ T7877] ? get_right_neighbor_position+0x200/0x200
[ 195.634265][ C0] ? __phys_addr+0x155/0x170
[ 195.635346][ T7877] reiserfs_paste_into_item+0x73e/0x880
[ 195.636399][ C0] ? do_int3+0x50/0x50
[ 195.637219][ T7877] ? reiserfs_cut_from_item+0x2510/0x2510
[ 195.638367][ C0] handle_invalid_op+0x34/0x40
[ 195.639098][ T7877] ? reiserfs_write_inode+0x1d3/0x2a0
[ 195.640248][ C0] ? __phys_addr+0x155/0x170
[ 195.641327][ T7877] ? reiserfs_get_parent+0x2b0/0x2b0
[ 195.642495][ C0] exc_invalid_op+0x34/0x50
[ 195.643490][ T7877] ? inode_get_bytes+0x75/0xa0
[ 195.644631][ C0] asm_exc_invalid_op+0x1a/0x20
[ 195.645660][ T7877] ? inode2sd+0x5a4/0xb60
[ 195.646828][ C0] RIP: 0010:__phys_addr+0x155/0x170
[ 195.647754][ T7877] ? _find_first_zero_bit+0xe9/0x110
[ 195.647782][ T7877] reiserfs_add_entry+0x9c5/0xef0
[ 195.649078][ C0] Code: 82 af 00 e9 41 ff ff ff e8 d8 0e 4f 00 48
c7 c7 40 75 ba 8d 4c 89 f6 4c 89 fa e8 d6 17 88 03 e9 49 ff ff ff e8
bc 0e 4f 00 90 <0f> 0b e8 4
[ 195.650024][ T7877] ? drop_new_inode+0x60/0x60
[ 195.651136][ C0] RSP: 0018:ffffc90001fa7a70 EFLAGS: 00010293
[ 195.651966][ T7877] ? reiserfs_write_inode+0x1d3/0x2a0
[ 195.651993][ T7877] ? do_journal_begin_r+0xdb3/0x1010
[ 195.653214][ C0]
[ 195.654026][ T7877] ? reiserfs_write_lock+0x7b/0xd0
[ 195.655407][ C0] RAX: ffffffff813f3424 RBX: 6972705f80040048
RCX: ffff8880183b2500
[ 195.656292][ T7877] ? security_dentry_create_files_as+0xe0/0xe0
[ 195.657476][ C0] RDX: 0000000000000000 RSI: 6972705f80040048
RDI: 6972e7df00040048
[ 195.660709][ T7877] ? journal_begin+0x1f3/0x360
[ 195.661788][ C0] RBP: 6972705f00040048 R08: ffffffff813f331b
R09: 1ffffffff227329e
[ 195.662809][ T7877] reiserfs_mkdir+0x694/0x8d0
[ 195.664080][ C0] R10: dffffc0000000000 R11: fffffbfff227329f
R12: 0000000000000000
[ 195.665058][ T7877] ? reiserfs_symlink+0x790/0x790
[ 195.665713][ C0] R13: 0000000000001000 R14: 6972e7df00040048
R15: 0000000000000000
[ 195.666636][ T7877] ? __down_write_common+0x161/0x200
[ 195.668702][ C0] ? __phys_addr+0x4b/0x170
[ 195.669844][ T7877] ? __up_read+0x6a0/0x6a0
[ 195.671817][ C0] ? __phys_addr+0x154/0x170
[ 195.672690][ T7877] reiserfs_xattr_init+0x359/0x6c0
[ 195.674673][ C0] virt_to_slab+0x5/0xb0
[ 195.675521][ T7877] reiserfs_fill_super+0x2090/0x2480
[ 195.677501][ C0] qlist_free_all+0x2f/0xd0
[ 195.678415][ T7877] ? reiserfs_kill_sb+0x150/0x150
[ 195.680464][ C0] kasan_quarantine_reduce+0x15a/0x170
[ 195.681417][ T7877] ? do_raw_spin_lock+0x14c/0x370
[ 195.682632][ C0] __kasan_slab_alloc+0x23/0x70
[ 195.683421][ T7877] ? vscnprintf+0x80/0x80
[ 195.684265][ C0] __kmalloc_node+0x206/0x4f0
[ 195.685165][ T7877] ? set_blocksize+0x1dd/0x380
[ 195.685930][ C0] ? kvmalloc_node+0x72/0x180
[ 195.686852][ T7877] ? sb_set_blocksize+0x99/0x100
[ 195.687663][ C0] kvmalloc_node+0x72/0x180
[ 195.688556][ T7877] ? setup_bdev_super+0x4b2/0x5b0
[ 195.689553][ C0] seq_read_iter+0x209/0xde0
[ 195.690440][ T7877] mount_bdev+0x212/0x2d0
[ 195.691359][ C0] ? __fsnotify_update_child_dentry_flags+0x2d0/0x2d0
[ 195.692103][ T7877] ? reiserfs_kill_sb+0x150/0x150
[ 195.692975][ C0] vfs_read+0x96c/0xbb0
[ 195.693790][ T7877] ? get_tree_bdev+0x550/0x550
[ 195.694673][ C0] ? kernel_read+0x70/0x70
[ 195.695576][ T7877] ? vfs_parse_fs_param+0x410/0x410
[ 195.696413][ C0] ? vfs_fstatat+0x172/0x1b0
[ 195.697311][ T7877] ? cap_capable+0x1b1/0x240
[ 195.698382][ C0] ? __x64_sys_newfstatat+0x127/0x170
[ 195.699147][ T7877] legacy_get_tree+0xed/0x190
[ 195.700813][ C0] ? __fdget_pos+0x26a/0x320
[ 195.701736][ T7877] ? remove_save_link+0x4a0/0x4a0
[ 195.702757][ C0] ksys_read+0x17b/0x2a0
[ 195.703616][ T7877] vfs_get_tree+0x90/0x2a0
[ 195.704716][ C0] ? vfs_write+0xcf0/0xcf0
[ 195.705592][ T7877] do_new_mount+0x2bb/0xb40
[ 195.706673][ C0] ? __secure_computing+0x122/0x370
[ 195.707457][ T7877] ? do_move_mount_old+0x150/0x150
[ 195.708905][ C0] do_syscall_64+0xe4/0x240
[ 195.709693][ T7877] __se_sys_mount+0x2c9/0x3b0
[ 195.710779][ C0] ? clear_bhb_loop+0x25/0x80
[ 195.711608][ T7877] ? lockdep_hardirqs_on_prepare+0x418/0x760
[ 195.711634][ T7877] ? __x64_sys_mount+0xc0/0xc0
[ 195.712657][ C0] entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.713394][ T7877] ? __x64_sys_mount+0x20/0xc0
[ 195.714525][ C0] RIP: 0033:0x7f7014114992
[ 195.715341][ T7877] do_syscall_64+0xe4/0x240
[ 195.716565][ C0] Code: c0 e9 b2 fe ff ff 50 48 8d 3d fa b2 0c 00
e8 c5 1d 02 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85
c0 75 10 0f 05 <48> 3d 00 4
[ 195.717541][ T7877] ? clear_bhb_loop+0x25/0x80
[ 195.717572][ T7877] entry_SYSCALL_64_after_hwframe+0x67/0x6f
[ 195.717594][ T7877] RIP: 0033:0x7f1188526eae
[ 195.717625][ T7877] Code: 48 8b 0d 85 1f 0f 00 f7 d8 64 89 01 48 83
c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 a5
00 00 00 0f 05 <48> 3d 01 8
[ 195.718762][ C0] RSP: 002b:00007ffec39483a8 EFLAGS: 00000246
[ 195.719612][ T7877] RSP: 002b:00007f11886b0c18 EFLAGS: 00000286
ORIG_RAX: 00000000000000a5
[ 195.720665][ C0] ORIG_RAX: 0000000000000000
[ 195.721749][ T7877] RAX: ffffffffffffffda RBX: 00007f11886b1640
RCX: 00007f1188526eae
[ 195.722796][ C0] RAX: ffffffffffffffda RBX: 00005572e8c8ff00
RCX: 00007f7014114992
[ 195.723862][ T7877] RDX: 00000000200002c0 RSI: 0000000020000300
RDI: 00007f11886b0ca0
[ 195.723880][ T7877] RBP: 00007f11886b0df0 R08: 00007f11886b0ce0
R09: 0000000000000000
[ 195.724979][ C0] RDX: 0000000000001000 RSI: 00005572e8c2b990
RDI: 000000000000000e
[ 195.725765][ T7877] R10: 0000000000000080 R11: 0000000000000286
R12: 00007f11886b1640
[ 195.725783][ T7877] R13: 0000000000000000 R14: 00007f1188494850
R15: 00007ffc7962ad50
[ 195.725800][ T7877] </TASK>
[ 195.725807][ T7877]
==================================================================
[ 195.725819][ T7877] Kernel panic - not syncing: KFENCE: panic_on_warn set ...
```
If you have any questions, please contact us.

Reported by Yue Sun <[email protected]>
Reported by xingwei lee <[email protected]>

Best Regards,
Yue


Attachments:
config (242.08 kB)
stack_depot_save_flags.c (37.28 kB)
Download all attachments