Bug ID 1171321
Summary nftables crashes when trying to add rule to nonexistant chain
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee jengelh@inai.de
Reporter mrueckert@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Core was generated by `nft add rule inet traffic-filter input tcp dport { 22,
80, 443 } accept'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  erec_print (octx=octx@entry=0x55776a4222c0, erec=erec@entry=0x55776a425780,
debug_mask=debug_mask@entry=0) at ../../src/erec.c:95
95        switch (indesc->type) {
(gdb) bt
#0  erec_print (octx=octx@entry=0x55776a4222c0, erec=erec@entry=0x55776a425780,
debug_mask=debug_mask@entry=0) at ../../src/erec.c:95
#1  0x00007f0eadab847a in erec_print_list (octx=octx@entry=0x55776a4222c0,
list=list@entry=0x7ffd930c3ff0, debug_mask=0) at ../../src/erec.c:190
#2  0x00007f0eadac2915 in nft_run_cmd_from_buffer (nft=0x55776a4222a0,
buf=<optimized out>) at ../../src/libnftables.c:459
#3  0x0000557769ea68a3 in main (argc=14, argv=<optimized out>) at
../../src/main.c:453
(gdb) l
90        char *pbuf = NULL;
91        unsigned int i, end;
92        FILE *f;
93        int l;
94    
95        switch (indesc->type) {
96        case INDESC_BUFFER:
97        case INDESC_CLI:
98            line = indesc->data;
99            *strchrnul(line, '\n') = '\0';
(gdb) p indesc
$1 = (const struct input_descriptor *) 0x0
(gdb) quit


You are receiving this mail because: