Skip to content

BUG in case of allocation fails #2538

@EvgeniiMekhanik

Description

@EvgeniiMekhanik

Stacktrace or debug log
[ 690.180967] kernel BUG at /home/evgeny/workdir/tempesta/fw/http_sched_ratio.c:1166!
[ 690.181490] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN NOPTI
[ 690.181923] CPU: 5 PID: 6241 Comm: tempesta.sh Tainted: G OE 5.10.35+ #719
[ 690.182463] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 690.183128] RIP: 0010:tfw_sched_ratio_add_grp+0x393/0x420 [tempesta_fw]
[ 690.183610] Code: 8d 6b 28 e8 bf 24 9a e0 c7 43 24 01 00 00 00 31 c9 31 d2 4c 89 ef 45 31 c0 48 c7 c6 d0 aa cc c1 e8 02 1b 7a e0 4c 89 e7 eb 81 <0f> 0b 4c 8d 6b 10 45 31 e4 4c 89 ef e8 1c 25 9a e0 48 8d 43 58 48
[ 690.185173] RSP: 0018:ffff888132f878c0 EFLAGS: 00010246
[ 690.185696] RAX: 0000000000000000 RBX: ffff88806c760e00 RCX: dffffc0000000000
[ 690.186230] RDX: 0000000000000007 RSI: ffffffffc1ccb486 RDI: ffff8881551d0ae4
[ 690.186715] RBP: ffff888132f87910 R08: 0000000000000000 R09: ffffffffab4ee503
[ 690.187204] R10: fffffbfff569dca0 R11: 0000000080180009 R12: 0000000000000000
[ 690.187670] R13: ffff8881551d0ac0 R14: ffff8881551d0a80 R15: ffff8881551d0a80
[ 690.188167] FS: 00007f83a53e6740(0000) GS:ffff8882c1f40000(0000) knlGS:0000000000000000
[ 690.188731] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 690.189108] CR2: 00007f1294455000 CR3: 0000000125928000 CR4: 0000000000750ee0
[ 690.189576] PKRU: 55555554
[ 690.189760] Call Trace:
[ 690.189948] tfw_sg_start_sched+0x3f/0x50 [tempesta_fw]
[ 690.190352] tfw_sock_srv_start+0x413/0x550 [tempesta_fw]
[ 690.190740] ? rcu_barrier+0x2f9/0x3e0
[ 690.191007] ? tfw_cfgop_in_conn_retries+0xf0/0xf0 [tempesta_fw]
[ 690.191536] ? tfw_cfgop_in_conn_retries+0xf0/0xf0 [tempesta_fw]
[ 690.191950] tfw_ctlfn_state_io+0x439/0x530 [tempesta_fw]
[ 690.192376] ? tfw_cleanup+0x30/0x30 [tempesta_fw]
[ 690.192741] ? tfw_cleanup+0x30/0x30 [tempesta_fw]
[ 690.193072] ? __cgroup_bpf_run_filter_sysctl+0x26c/0x440
[ 690.193429] ? create_object.isra.0+0x339/0x4f0
[ 690.193730] ? iov_iter_advance+0x133/0x640
[ 690.194008] ? _copy_from_iter_full+0x11e/0x3f0
[ 690.194309] ? __kasan_check_read+0x11/0x20
[ 690.194596] proc_sys_call_handler+0x212/0x3a0
[ 690.194890] ? proc_sys_lookup+0x320/0x320
[ 690.195163] ? __do_fault+0x240/0x240
[ 690.195409] proc_sys_write+0xe/0x10
[ 690.195649] new_sync_write+0x291/0x3c0
[ 690.195918] ? new_sync_read+0x3b0/0x3b0
[ 690.196193] ? handle_mm_fault+0x74e/0x2c50
[ 690.196500] ? rw_verify_area+0x77/0x140
[ 690.196761] vfs_write+0x2ad/0x350
[ 690.196989] ksys_write+0xd2/0x170
[ 690.197350] ? __ia32_sys_read+0x50/0x50
[ 690.197614] ? __kasan_check_read+0x11/0x20
[ 690.198078] ? fpregs_assert_state_consistent+0x55/0x60
[ 690.198080] __x64_sys_write+0x3d/0x50
[ 690.198082] do_syscall_64+0x37/0x80
[ 690.198085] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 690.198086] RIP: 0033:0x7f83a55055a4
[ 690.198088] Code: c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 80 3d a5 ea 0e 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 55 48 89 e5 48 83 ec 20 48 89
[ 690.198089] RSP: 002b:00007ffecbdea298 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
[ 690.198091] RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00007f83a55055a4
[ 690.198092] RDX: 0000000000000006 RSI: 00005608c4cd0490 RDI: 0000000000000001
[ 690.198093] RBP: 00007ffecbdea2c0 R08: 0000000000000073 R09: 0000000000000000
[ 690.198094] R10: 00000000ffffffff R11: 0000000000000202 R12: 0000000000000006
[ 690.198095] R13: 00005608c4cd0490 R14: 00007f83a55ed5c0 R15: 00007f83a55eaee0
[ 690.198097] Modules linked in: tempesta_fw(OE) tempesta_db(OE) tempesta_tls(OE) tempesta_lib(OE) vhost_vsock vmw_vsock_virtio_transport_common vhost vhost_iotlb vsock xt_conntrack xt_MASQUERADE xt_set ip_set xt_addrtype nft_compat xfrm_user xfrm_algo nft_masq nft_counter nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bridge stp llc nf_tables nfnetlink overlay binfmt_misc nls_iso8859_1 virtio_gpu virtio_dma_buf drm_kms_helper kvm_intel cec kvm fb_sys_fops syscopyarea sysfillrect sysimgblt joydev input_leds mac_hid i2c_piix4 qemu_fw_cfg serio_raw sch_fq_codel msr parport_pc ppdev lp parport drm efi_pstore ip_tables x_tables ipv6 autofs4 btrfs xor raid6_pq psmouse e1000 pata_acpi floppy
[ 690.208483] ---[ end trace 2b3b7eb9ddc621b7 ]---
[ 690.208883] RIP: 0010:tfw_sched_ratio_add_grp+0x393/0x420 [tempesta_fw]

previously tfw_cfgop_sg_copy_sched_arg+0x1/0x90 [tempesta_fw] allocatuon fails

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions