RHEL8: kernel BUG at lib/string_helpers.c:912!
Issue
- Kernel panic with logs:
[226992.642397] detected buffer overflow in strncpy
[226992.642536] ------------[ cut here ]------------
[226992.642549] kernel BUG at lib/string_helpers.c:912!
[226992.642603] invalid opcode: 0000 [#1] SMP NOPTI
[226992.642648] CPU: 1 PID: 128673 Comm: smbd[10.49.137. Kdump: loaded Not tainted 4.18.0-513.9.1.el8_9.x86_64 #1
[226992.642732] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
[226992.642818] RIP: 0010:fortify_panic+0xf/0x11
[226992.642866] Code: 31 ed 48 89 df e8 62 e9 e3 ff e9 7a ff ff ff bd f4 ff ff ff eb ec e8 81 cd c0 ff 48 89 fe 48 c7 c7 78 c6 33 9d e8 c6 ff c7 ff <0f> 0b 48 85 d2 74 48 4c 8d 1c 16 49 89 f8 49 c7 c2 80 ec 08 9d 48
[226992.643017] RSP: 0018:ffffa934c1723ba8 EFLAGS: 00010246
[226992.643067] RAX: 0000000000000023 RBX: 000000000000001e RCX: 0000000000000000
[226992.643135] RDX: 0000000000000000 RSI: ffff9721f7e5e698 RDI: ffff9721f7e5e698
[226992.643195] RBP: 0000000000000018 R08: 0000000000000000 R09: c0000000ffff7fff
[226992.643255] R10: 0000000000000001 R11: ffffa934c17239c8 R12: ffffa934c1723dc5
[226992.643314] R13: ffff97216fb2b000 R14: 0000000000000009 R15: 000000000000004b
[226992.643376] FS: 00007fc067062280(0000) GS:ffff9721f7e40000(0000) knlGS:0000000000000000
[226992.643444] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[226992.643498] CR2: 00007fc0649d42a0 CR3: 0000000084552004 CR4: 00000000007706e0
[226992.643627] PKRU: 55555554
[226992.643655] Call Trace:
[226992.643772] ? __die_body+0x1a/0x60
[226992.643816] ? die+0x2a/0x50
[226992.643848] ? do_trap+0xe7/0x110
[226992.643884] ? fortify_panic+0xf/0x11
[226992.643920] ? do_invalid_op+0x36/0x40
[226992.643957] ? fortify_panic+0xf/0x11
[226992.643993] ? invalid_op+0x14/0x20
[226992.644060] ? fortify_panic+0xf/0x11
[226992.644098] ? fortify_panic+0xf/0x11
[226992.644137] CIFSSMBSetEA.cold.40+0xc/0x18 [cifs]
[226992.644324] cifs_xattr_set+0x683/0x7f0 [cifs]
[226992.644473] ? selinux_inode_setxattr+0x21d/0x2f0
[226992.644522] __vfs_setxattr+0x67/0x80
[226992.644563] __vfs_setxattr_noperm+0x67/0x1a0
[226992.644610] vfs_setxattr+0x8f/0x160
[226992.644648] setxattr+0x11f/0x190
[226992.644684] ? cpumask_any_but+0x20/0x40
[226992.644736] ? flush_tlb_mm_range+0xb0/0x110
[226992.644781] ? change_protection+0x160/0x1d0
[226992.644823] ? mprotect_fixup+0x1bb/0x2c0
[226992.644863] __x64_sys_fsetxattr+0xa4/0xd0
[226992.644907] do_syscall_64+0x5b/0x1b0
[226992.644947] entry_SYSCALL_64_after_hwframe+0x61/0xc6
[226992.644998] RIP: 0033:0x7fc071be1c2e
[226992.645056] Code: 48 8b 0d 5d 52 38 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 be 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 2a 52 38 00 f7 d8 64 89 01 48
[226992.646136] RSP: 002b:00007ffc8f47bb08 EFLAGS: 00000246 ORIG_RAX: 00000000000000be
[226992.646548] RAX: ffffffffffffffda RBX: 000055890290a090 RCX: 00007fc071be1c2e
[226992.646908] RDX: 000055890290f570 RSI: 00007fc072d26b9b RDI: 000000000000002b
[226992.647265] RBP: 00007fc072d26b9b R08: 0000000000000000 R09: 0000000000000000
[226992.647652] R10: 0000000000000018 R11: 0000000000000246 R12: 000055890290f570
[226992.648007] R13: 0000000000000018 R14: 0000000000000000 R15: 000000000000002b
[226992.648362] Modules linked in: binfmt_misc tcp_diag udp_diag inet_diag xt_multiport xt_nat xt_addrtype xt_mark xt_conntrack ipt_MASQUERADE nft_counter xt_comment nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 veth bridge stp llc tun overlay nf_tables nfnetlink nfsv3 nfs_acl nfs lockd grace fscache md4 cmac nls_utf8 cifs rdma_cm iw_cm ib_cm ib_core libarc4 dns_resolver vsock_loopback vmw_vsock_virtio_transport_common vmw_vsock_vmci_transport vsock sunrpc intel_rapl_msr intel_rapl_common intel_uncore_frequency_common isst_if_mbox_msr isst_if_common nfit libnvdimm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rapl vmw_balloon pcspkr joydev i2c_piix4 vmw_vmci xfs libcrc32c sd_mod sr_mod cdrom t10_pi sg ata_generic vmwgfx drm_ttm_helper ttm drm_kms_helper syscopyarea sysfillrect sysimgblt drm crc32c_intel ata_piix ahci serio_raw libahci libata vmxnet3 vmw_pvscsi dm_mirror dm_region_hash dm_log dm_mod fuse
[226992.650895] Red Hat flags: eBPF/event
Environment
- Red Hat Enterprise Linux 8.9
- Seen on
kernel-4.18.0-513.9.1.el8_9
- [cifs]
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.