================================================================================ UBSAN: Undefined behaviour in ./include/linux/math64.h:26:24 division by zero CPU: 1 PID: 10813 Comm: syz-executor.0 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 ubsan_epilogue+0x5/0x21 lib/ubsan.c:154 __ubsan_handle_divrem_overflow lib/ubsan.c:247 [inline] __ubsan_handle_divrem_overflow.cold.12+0x33/0x67 lib/ubsan.c:229 div_u64_rem include/linux/math64.h:26 [inline] div_u64 include/linux/math64.h:126 [inline] nft_limit_init.cold.2+0x68/0x94 net/netfilter/nft_limit.c:85 nf_tables_newexpr net/netfilter/nf_tables_api.c:2505 [inline] nft_expr_init+0x10e/0x280 net/netfilter/nf_tables_api.c:2543 nft_set_elem_expr_alloc+0x16/0x1e0 net/netfilter/nf_tables_api.c:4831 nf_tables_newset+0x12d3/0x2080 net/netfilter/nf_tables_api.c:4090 nfnetlink_rcv_batch+0x876/0x15e0 net/netfilter/nfnetlink.c:433 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:543 [inline] nfnetlink_rcv+0x2bc/0x340 net/netfilter/nfnetlink.c:561 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x434/0x630 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x766/0xc10 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:672 ____sys_sendmsg+0x54e/0x760 net/socket.c:2343 ___sys_sendmsg+0xe4/0x160 net/socket.c:2397 __sys_sendmsg+0xce/0x170 net/socket.c:2430 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f898dd31188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffee806955f R14: 00007f898dd31300 R15: 0000000000022000 ================================================================================ ================================================================================ UBSAN: Undefined behaviour in ./include/linux/math64.h:27:18 division by zero CPU: 0 PID: 10813 Comm: syz-executor.0 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 ubsan_epilogue+0x5/0x21 lib/ubsan.c:154 __ubsan_handle_divrem_overflow lib/ubsan.c:247 [inline] __ubsan_handle_divrem_overflow.cold.12+0x33/0x67 lib/ubsan.c:229 div_u64_rem include/linux/math64.h:27 [inline] div_u64 include/linux/math64.h:126 [inline] nft_limit_init.cold.2+0x7d/0x94 net/netfilter/nft_limit.c:85 nf_tables_newexpr net/netfilter/nf_tables_api.c:2505 [inline] nft_expr_init+0x10e/0x280 net/netfilter/nf_tables_api.c:2543 nft_set_elem_expr_alloc+0x16/0x1e0 net/netfilter/nf_tables_api.c:4831 nf_tables_newset+0x12d3/0x2080 net/netfilter/nf_tables_api.c:4090 nfnetlink_rcv_batch+0x876/0x15e0 net/netfilter/nfnetlink.c:433 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:543 [inline] nfnetlink_rcv+0x2bc/0x340 net/netfilter/nfnetlink.c:561 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x434/0x630 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x766/0xc10 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:672 ____sys_sendmsg+0x54e/0x760 net/socket.c:2343 ___sys_sendmsg+0xe4/0x160 net/socket.c:2397 __sys_sendmsg+0xce/0x170 net/socket.c:2430 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f898dd31188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffee806955f R14: 00007f898dd31300 R15: 0000000000022000 ================================================================================ divide error: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10813 Comm: syz-executor.0 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:div_u64_rem include/linux/math64.h:27 [inline] RIP: 0010:div_u64 include/linux/math64.h:126 [inline] RIP: 0010:nft_limit_init+0x23d/0x570 net/netfilter/nft_limit.c:85 Code: 00 89 53 60 45 84 f6 0f 85 66 01 00 00 89 d2 4c 01 ea 0f 82 3f 02 00 00 48 0f af c2 45 89 ed 4d 85 ed 0f 84 2e 03 00 00 31 d2 <49> f7 f5 48 8d 7b 40 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 RSP: 0018:ffffc9000a807150 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8880b49eb908 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff89e08fc0 RDI: ffffffff8e517220 RBP: ffffc9000a807228 R08: ffffed10173c6479 R09: ffffed10173c6479 R10: ffffed10173c6478 R11: ffff8880b9e323c7 R12: 1ffff92001500e2c R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880b49eb968 FS: 00007f898dd31700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f829102e710 CR3: 000000009e878000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_tables_newexpr net/netfilter/nf_tables_api.c:2505 [inline] nft_expr_init+0x10e/0x280 net/netfilter/nf_tables_api.c:2543 nft_set_elem_expr_alloc+0x16/0x1e0 net/netfilter/nf_tables_api.c:4831 nf_tables_newset+0x12d3/0x2080 net/netfilter/nf_tables_api.c:4090 nfnetlink_rcv_batch+0x876/0x15e0 net/netfilter/nfnetlink.c:433 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:543 [inline] nfnetlink_rcv+0x2bc/0x340 net/netfilter/nfnetlink.c:561 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x434/0x630 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x766/0xc10 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:672 ____sys_sendmsg+0x54e/0x760 net/socket.c:2343 ___sys_sendmsg+0xe4/0x160 net/socket.c:2397 __sys_sendmsg+0xce/0x170 net/socket.c:2430 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f898dd31188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffee806955f R14: 00007f898dd31300 R15: 0000000000022000 Modules linked in: ---[ end trace 3fb3977322e48354 ]--- RIP: 0010:div_u64_rem include/linux/math64.h:27 [inline] RIP: 0010:div_u64 include/linux/math64.h:126 [inline] RIP: 0010:nft_limit_init+0x23d/0x570 net/netfilter/nft_limit.c:85 Code: 00 89 53 60 45 84 f6 0f 85 66 01 00 00 89 d2 4c 01 ea 0f 82 3f 02 00 00 48 0f af c2 45 89 ed 4d 85 ed 0f 84 2e 03 00 00 31 d2 <49> f7 f5 48 8d 7b 40 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 RSP: 0018:ffffc9000a807150 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8880b49eb908 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff89e08fc0 RDI: ffffffff8e517220 RBP: ffffc9000a807228 R08: ffffed10173c6479 R09: ffffed10173c6479 R10: ffffed10173c6478 R11: ffff8880b9e323c7 R12: 1ffff92001500e2c R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880b49eb968 FS: 00007f898dd31700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe366ad2000 CR3: 000000009e878000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400