The kernel crashes in nbd_check_sock_type() with a message "Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: nbd_add_socket+0x1ee/0x1f0 [nbd]" due to stack corruption if the socket address family is AF_INET6
Issue
- The kernel crashes in nbd_check_sock_type() with a message
"Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: nbd_add_socket+0x1ee/0x1f0 [nbd]"
due to stack corruption if the socket address family is AF_INET6.
[ 2708.783434] block nbd0: Only AF_UNIX sockets are supported.
[ 2708.783565] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: nbd_add_socket+0x1ee/0x1f0 [nbd]
[ 2708.783757] CPU: 2 PID: 29609 Comm: nbd-client Kdump: loaded Not tainted 4.18.0-147.el8.x86_64 #1
[ 2708.783867] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.11.2-0-gf9626ccb91-prebuilt.qemu-project.org 04/01/2014
[ 2708.784079] Call Trace:
[ 2708.784164] dump_stack+0x5c/0x80
[ 2708.784244] panic+0xe7/0x247
[ 2708.784321] ? nbd_add_socket+0x1ee/0x1f0 [nbd]
[ 2708.784406] __stack_chk_fail+0x15/0x20
[ 2708.784487] nbd_add_socket+0x1ee/0x1f0 [nbd]
[ 2708.784572] nbd_ioctl+0x259/0x390 [nbd]
[ 2708.784658] blkdev_ioctl+0x32b/0x9f0
[ 2708.784739] block_ioctl+0x39/0x40
[ 2708.784817] do_vfs_ioctl+0xa4/0x630
[ 2708.784899] ? syscall_trace_enter+0x1d3/0x2c0
[ 2708.784983] ksys_ioctl+0x60/0x90
[ 2708.785059] __x64_sys_ioctl+0x16/0x20
[ 2708.785149] do_syscall_64+0x5b/0x1b0
[ 2708.785230] entry_SYSCALL_64_after_hwframe+0x65/0xca
[ 2708.785317] RIP: 0033:0x150b3da5cb2b
[ 2708.785398] Code: 0f 1e fa 48 8b 05 5d a3 2c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 2d a3 2c 00 f7 d8 64 89 01 48
[ 2708.785615] RSP: 002b:00007ffce96b63e8 EFLAGS: 00000217 ORIG_RAX: 0000000000000010
[ 2708.785718] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000150b3da5cb2b
[ 2708.785813] RDX: 0000000000000003 RSI: 000000000000ab00 RDI: 0000000000000004
[ 2708.785911] RBP: 00007ffce96b6580 R08: 000000000252a450 R09: 0000000000000002
[ 2708.786021] R10: fffffffffffff708 R11: 0000000000000217 R12: 0000000000400ce0
[ 2708.786119] R13: 00007ffce96b6660 R14: 0000000000000000 R15: 0000000000000000
Environment
- Red Hat Enterprise Linux 8.1 (kernel-4.18.0-147.3.1.el8_1)
- nbd client
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.