possible deadlock in match_revfn (2)

5 views
Skip to first unread message

syzbot

unread,
Dec 4, 2021, 5:49:21 AM12/4/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 66722c42ec91 Linux 4.14.256
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15a9f116b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=b8004ce84f364d9
dashboard link: https://syzkaller.appspot.com/bug?extid=6050d3d48ec4b617809e
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6050d3...@syzkaller.appspotmail.com

======================================================
WARNING: possible circular locking dependency detected
4.14.256-syzkaller #0 Not tainted
------------------------------------------------------
syz-executor.5/11756 is trying to acquire lock:
(&xt[i].mutex){+.+.}, at: [<ffffffff85f16033>] match_revfn+0x43/0x210 net/netfilter/x_tables.c:332

but task is already holding lock:
(&table[i].mutex){+.+.}, at: [<ffffffff85e41ee6>] nfnl_lock net/netfilter/nfnetlink.c:61 [inline]
(&table[i].mutex){+.+.}, at: [<ffffffff85e41ee6>] nfnetlink_rcv_msg+0x726/0xc00 net/netfilter/nfnetlink.c:209

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&table[i].mutex){+.+.}:
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893
nf_tables_netdev_event+0x10d/0x4d0 net/netfilter/nf_tables_netdev.c:122
notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93
call_netdevice_notifiers_info net/core/dev.c:1667 [inline]
call_netdevice_notifiers net/core/dev.c:1683 [inline]
rollback_registered_many+0x765/0xba0 net/core/dev.c:7211
rollback_registered+0xca/0x170 net/core/dev.c:7253
unregister_netdevice_queue+0x1b4/0x360 net/core/dev.c:8274
unregister_netdevice include/linux/netdevice.h:2443 [inline]
unregister_netdev+0x18/0x20 net/core/dev.c:8315
gprs_attach+0x391/0x460 net/phonet/pep-gprs.c:300
pep_setsockopt+0x2d7/0x3c0 net/phonet/pep.c:1018
SYSC_setsockopt net/socket.c:1865 [inline]
SyS_setsockopt+0x110/0x1e0 net/socket.c:1844
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb

-> #1 (rtnl_mutex){+.+.}:
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893
unregister_netdevice_notifier+0x5e/0x2b0 net/core/dev.c:1630
tee_tg_destroy+0x5c/0xb0 net/netfilter/xt_TEE.c:123
cleanup_entry+0x1fd/0x2d0 net/ipv4/netfilter/ip_tables.c:666
__do_replace+0x38d/0x570 net/ipv4/netfilter/ip_tables.c:1086
do_replace net/ipv4/netfilter/ip_tables.c:1142 [inline]
do_ipt_set_ctl+0x256/0x3a0 net/ipv4/netfilter/ip_tables.c:1676
nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
nf_setsockopt+0x5f/0xb0 net/netfilter/nf_sockopt.c:115
ip_setsockopt net/ipv4/ip_sockglue.c:1255 [inline]
ip_setsockopt+0x94/0xb0 net/ipv4/ip_sockglue.c:1240
udp_setsockopt+0x45/0x80 net/ipv4/udp.c:2455
SYSC_setsockopt net/socket.c:1865 [inline]
SyS_setsockopt+0x110/0x1e0 net/socket.c:1844
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb

-> #0 (&xt[i].mutex){+.+.}:
lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893
match_revfn+0x43/0x210 net/netfilter/x_tables.c:332
xt_find_revision+0x8d/0x1d0 net/netfilter/x_tables.c:380
nfnl_compat_get+0x1f7/0x870 net/netfilter/nft_compat.c:678
nfnetlink_rcv_msg+0x9bb/0xc00 net/netfilter/nfnetlink.c:214
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2441
nfnetlink_rcv+0x1ab/0x1da0 net/netfilter/nfnetlink.c:515
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb

other info that might help us debug this:

Chain exists of:
&xt[i].mutex --> rtnl_mutex --> &table[i].mutex

Possible unsafe locking scenario:

CPU0 CPU1
---- ----
lock(&table[i].mutex);
lock(rtnl_mutex);
lock(&table[i].mutex);
lock(&xt[i].mutex);

*** DEADLOCK ***

1 lock held by syz-executor.5/11756:
#0: (&table[i].mutex){+.+.}, at: [<ffffffff85e41ee6>] nfnl_lock net/netfilter/nfnetlink.c:61 [inline]
#0: (&table[i].mutex){+.+.}, at: [<ffffffff85e41ee6>] nfnetlink_rcv_msg+0x726/0xc00 net/netfilter/nfnetlink.c:209

stack backtrace:
CPU: 1 PID: 11756 Comm: syz-executor.5 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258
check_prev_add kernel/locking/lockdep.c:1905 [inline]
check_prevs_add kernel/locking/lockdep.c:2022 [inline]
validate_chain kernel/locking/lockdep.c:2464 [inline]
__lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491
lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893
match_revfn+0x43/0x210 net/netfilter/x_tables.c:332
xt_find_revision+0x8d/0x1d0 net/netfilter/x_tables.c:380
nfnl_compat_get+0x1f7/0x870 net/netfilter/nft_compat.c:678
nfnetlink_rcv_msg+0x9bb/0xc00 net/netfilter/nfnetlink.c:214
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2441
nfnetlink_rcv+0x1ab/0x1da0 net/netfilter/nfnetlink.c:515
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f29728eaae9
RSP: 002b:00007f2971860188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f29729fdf60 RCX: 00007f29728eaae9
RDX: 0000000000000000 RSI: 0000000020000580 RDI: 0000000000000003
RBP: 00007f2972944ff7 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdaaf6faaf R14: 00007f2971860300 R15: 0000000000022000
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
caif:caif_disconnect_client(): nothing to disconnect
caif:caif_disconnect_client(): nothing to disconnect
IPv6: sit1: Disabled Multicast RS
net_ratelimit: 935 callbacks suppressed
A link change request failed with some changes committed already. Interface Y�4��`Ҙ may have been left with an inconsistent configuration, please check.
UBIFS error (pid: 11828): cannot open "u", error -22
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
A link change request failed with some changes committed already. Interface Y�4��`Ҙ may have been left with an inconsistent configuration, please check.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
kauditd_printk_skb: 3 callbacks suppressed
audit: type=1800 audit(1638614900.660:26): pid=11921 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="file1" dev="sda1" ino=14169 res=0
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
f2fs_msg: 1 callbacks suppressed
F2FS-fs (loop0): Mismatch start address, segment0(1024) cp_blkaddr(2048)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock
F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0)
audit: type=1804 audit(1638614900.700:27): pid=11933 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir550338536/syzkaller.fA7Fsl/45/file0/file1" dev="sda1" ino=14169 res=1
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock
F2FS-fs (loop0): Mismatch start address, segment0(1024) cp_blkaddr(2048)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
x_tables: ip6_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING
F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock
F2FS-fs (loop0): Mismatch start address, segment0(1024) cp_blkaddr(2048)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock
x_tables: ip6_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
nla_parse: 28 callbacks suppressed
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
CPU: 1 PID: 12408 Comm: syz-executor.2 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
__do_kmalloc mm/slab.c:3718 [inline]
__kmalloc+0x2c1/0x400 mm/slab.c:3729
kmalloc include/linux/slab.h:493 [inline]
sock_kmalloc net/core/sock.c:2002 [inline]
sock_kmalloc+0x75/0xc0 net/core/sock.c:1993
___sys_sendmsg+0x4d2/0x800 net/socket.c:2029
__sys_sendmmsg+0x129/0x330 net/socket.c:2152
SYSC_sendmmsg net/socket.c:2183 [inline]
SyS_sendmmsg+0x2f/0x50 net/socket.c:2178
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fd7e8a33ae9
RSP: 002b:00007fd7e79a9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007fd7e8b46f60 RCX: 00007fd7e8a33ae9
RDX: 0000000000000001 RSI: 0000000020004e00 RDI: 0000000000000003
RBP: 00007fd7e79a91d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffff5a8477f R14: 00007fd7e79a9300 R15: 0000000000022000
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 1 PID: 12434 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3297 [inline]
kmem_cache_alloc_node+0x263/0x410 mm/slab.c:3640
__alloc_skb+0x5c/0x510 net/core/skbuff.c:193
alloc_skb include/linux/skbuff.h:980 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1166 [inline]
netlink_sendmsg+0x90b/0xb90 net/netlink/af_netlink.c:1861
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 12471 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3297 [inline]
kmem_cache_alloc_node_trace+0x25a/0x400 mm/slab.c:3659
__do_kmalloc_node mm/slab.c:3681 [inline]
__kmalloc_node_track_caller+0x38/0x70 mm/slab.c:3696
__kmalloc_reserve net/core/skbuff.c:137 [inline]
__alloc_skb+0x96/0x510 net/core/skbuff.c:205
alloc_skb include/linux/skbuff.h:980 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1166 [inline]
netlink_sendmsg+0x90b/0xb90 net/netlink/af_netlink.c:1861
netlink: 32 bytes leftover after parsing attributes in process `syz-executor.5'.
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 12525 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
kmem_cache_alloc+0x40/0x3c0 mm/slab.c:3550
skb_clone+0x126/0x9a0 net/core/skbuff.c:1291
__netlink_deliver_tap_skb net/netlink/af_netlink.c:266 [inline]
__netlink_deliver_tap net/netlink/af_netlink.c:291 [inline]
netlink_deliver_tap+0x655/0x7d0 net/netlink/af_netlink.c:302
netlink_deliver_tap_kernel net/netlink/af_netlink.c:311 [inline]
netlink_unicast_kernel net/netlink/af_netlink.c:1293 [inline]
netlink_unicast+0x485/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 12570 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
kmem_cache_alloc+0x40/0x3c0 mm/slab.c:3550
skb_clone+0x126/0x9a0 net/core/skbuff.c:1291
dev_queue_xmit_nit+0x2ee/0x950 net/core/dev.c:1939
xmit_one net/core/dev.c:3001 [inline]
dev_hard_start_xmit+0xaa/0x890 net/core/dev.c:3021
__dev_queue_xmit+0x1d7f/0x2480 net/core/dev.c:3521
__netlink_deliver_tap_skb net/netlink/af_netlink.c:273 [inline]
__netlink_deliver_tap net/netlink/af_netlink.c:291 [inline]
netlink_deliver_tap+0x60c/0x7d0 net/netlink/af_netlink.c:302
netlink_deliver_tap_kernel net/netlink/af_netlink.c:311 [inline]
netlink_unicast_kernel net/netlink/af_netlink.c:1293 [inline]
netlink_unicast+0x485/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
CPU: 1 PID: 12597 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
kmem_cache_alloc_trace+0x47/0x3d0 mm/slab.c:3616
kmalloc include/linux/slab.h:488 [inline]
kzalloc include/linux/slab.h:661 [inline]
xfrm_state_alloc+0x44/0x5a0 net/xfrm/xfrm_state.c:568
xfrm_state_construct net/xfrm/xfrm_user.c:561 [inline]
xfrm_add_sa+0xb47/0x2f30 net/xfrm/xfrm_user.c:667
xfrm_user_rcv_msg+0x37d/0x5f0 net/xfrm/xfrm_user.c:2617
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2441
xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2625
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 12633 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
__do_kmalloc mm/slab.c:3718 [inline]
__kmalloc_track_caller+0x2bc/0x400 mm/slab.c:3735
kmemdup+0x23/0x50 mm/util.c:118
kmemdup include/linux/string.h:449 [inline]
attach_crypt net/xfrm/xfrm_user.c:329 [inline]
xfrm_state_construct net/xfrm/xfrm_user.c:596 [inline]
xfrm_add_sa+0x175e/0x2f30 net/xfrm/xfrm_user.c:667
xfrm_user_rcv_msg+0x37d/0x5f0 net/xfrm/xfrm_user.c:2617
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2441
xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2625
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
sg_write: data in/out 167162/24 bytes for SCSI command 0x67-- guessing data in;
program syz-executor.3 not setting count and/or reply_len properly
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 12685 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
__do_kmalloc mm/slab.c:3718 [inline]
__kmalloc+0x2c1/0x400 mm/slab.c:3729
kmalloc include/linux/slab.h:493 [inline]
kzalloc include/linux/slab.h:661 [inline]
crypto_create_tfm+0x79/0x2d0 crypto/api.c:453
crypto_alloc_tfm+0x11a/0x250 crypto/api.c:538
esp_init_authenc+0x1dd/0x8f0 net/ipv6/esp6.c:803
esp6_init_state+0x281/0x370 net/ipv6/esp6.c:875
__xfrm_init_state+0x4b4/0xbf0 net/xfrm/xfrm_state.c:2300
xfrm_state_construct net/xfrm/xfrm_user.c:611 [inline]
xfrm_add_sa+0x1b2b/0x2f30 net/xfrm/xfrm_user.c:667
xfrm_user_rcv_msg+0x37d/0x5f0 net/xfrm/xfrm_user.c:2617
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2441
xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2625
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 12722 Comm: syz-executor.1 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
__do_kmalloc mm/slab.c:3718 [inline]
__kmalloc+0x2c1/0x400 mm/slab.c:3729
kmalloc include/linux/slab.h:493 [inline]
kzalloc include/linux/slab.h:661 [inline]
crypto_create_tfm+0x79/0x2d0 crypto/api.c:453
crypto_spawn_tfm2+0xa4/0x160 crypto/algapi.c:712
crypto_spawn_ahash include/crypto/internal/hash.h:188 [inline]
crypto_authenc_init_tfm+0x3f/0x260 crypto/authenc.c:332
crypto_aead_init_tfm+0x114/0x170 crypto/aead.c:102
crypto_create_tfm+0xd5/0x2d0 crypto/api.c:460
crypto_alloc_tfm+0x11a/0x250 crypto/api.c:538
esp_init_authenc+0x1dd/0x8f0 net/ipv6/esp6.c:803
esp6_init_state+0x281/0x370 net/ipv6/esp6.c:875
__xfrm_init_state+0x4b4/0xbf0 net/xfrm/xfrm_state.c:2300
xfrm_state_construct net/xfrm/xfrm_user.c:611 [inline]
xfrm_add_sa+0x1b2b/0x2f30 net/xfrm/xfrm_user.c:667
xfrm_user_rcv_msg+0x37d/0x5f0 net/xfrm/xfrm_user.c:2617
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2441
xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2625
netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
netlink_sendmsg+0x638/0xb90 net/netlink/af_netlink.c:1886
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f712a3abae9
RSP: 002b:00007f7129321188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f712a4bef60 RCX: 00007f712a3abae9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f71293211d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc8c6c54ff R14: 00007f7129321300 R15: 0000000000022000


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
Reply all
Reply to author
Forward
0 new messages