syzbot


WARNING in aa_sock_msg_perm

Status: auto-closed as invalid on 2021/05/08 00:28
Reported-by: syzbot+2a04355bc0c85287acea@syzkaller.appspotmail.com
First crash: 1495d, last: 1420d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in aa_sock_msg_perm (2) apparmor C 59 1371d 1842d 0/28 closed as dup on 2019/11/12 21:01
upstream WARNING in aa_sock_msg_perm apparmor 1290 1865d 1934d 0/28 closed as dup on 2019/08/22 13:39

Sample crash report:
vhci_hcd: release socket
usb 13-1: new high-speed USB device number 2 using vhci_hcd
------------[ cut here ]------------
AppArmor WARN aa_sock_msg_perm: ((!sock)): 
WARNING: CPU: 1 PID: 14151 at security/apparmor/lsm.c:931 aa_sock_msg_perm.constprop.0+0xd1/0x160 security/apparmor/lsm.c:931
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 14151 Comm: vhci_tx Not tainted 4.19.165-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+0x1fc/0x2fe lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
vhci_hcd: disconnect device
 __warn.cold+0x20/0x61 kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:aa_sock_msg_perm.constprop.0+0xd1/0x160 security/apparmor/lsm.c:931
Code: 89 ee 4c 89 e7 5b 5d 41 5c 41 5d 41 5e e9 57 1a 02 00 e8 72 d6 17 fe 48 c7 c6 40 5d ae 88 48 c7 c7 80 4b ae 88 e8 ca b2 eb fd <0f> 0b e9 4a ff ff ff e8 53 d6 17 fe 48 c7 c6 40 5d ae 88 48 c7 c7
RSP: 0018:ffff88803e6a7b80 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814fdd11 RDI: ffffed1007cd4f62
RBP: ffff88803e6a7ce8 R08: 0000000000000000 R09: 0000000000000ce1
R10: 0000000000000006 R11: 0000000000000000 R12: ffffffff88ae5940
R13: 0000000000000002 R14: ffff88803e6a7ce8 R15: 0000000000000000
 security_socket_sendmsg+0x50/0xb0 security/security.c:1413
 sock_sendmsg+0x3f/0x120 net/socket.c:629
 vhci_send_cmd_submit+0x8a4/0xf90 drivers/usb/usbip/vhci_tx.c:139
 vhci_tx_loop+0xfc/0x36b drivers/usb/usbip/vhci_tx.c:243
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/08 00:28 linux-4.19.y 4143d798313f c104d4a3 .config console log report info ci2-linux-4-19
2020/10/24 23:01 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/24 09:04 linux-4.19.y ad326970d25c 2bb6666c .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.