<div dir="ltr">Hi Folks,<div><br></div><div>I found a kernel panic issue when I was using pipework to config the network of a docker container on an x86 board with all-snap image. The issue is related to the auditing module of Linux kernel. So it should be an issue of pc-kernel-snap.</div><div><br></div><div>I created a simple test snap to reproduce the issue and upload it to github.</div><div><a href="https://github.com/pliu6/docker-snap-test">https://github.com/pliu6/docker-snap-test</a><br></div><div><br></div><div>The log is below:</div><div><span style="font-family:monospace"><span style="color:rgb(24,178,24)">[  504.783341] </span><span style="color:rgb(178,104,24)">BUG</span><span style="color:rgb(255,255,255);background-color:rgb(178,24,24)">: unable to handle kernel paging request at fffffffffffffff3</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  504.867186] </span><span style="color:rgb(178,104,24)">IP</span><span style="color:rgb(255,255,255);background-color:rgb(178,24,24)">: [<ffffffff813fe6c0>] strlen+0x0/0x20</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  504.926879] </span><span style="font-weight:bold;color:rgb(0,0,0)">PGD 1e0d067 PUD 1e0f067 PMD 0 </span><span style="color:rgb(0,0,0)"> </span><br><span style="color:rgb(24,178,24)">[  504.976588] </span><span style="color:rgb(178,104,24)">Oops</span><span style="font-weight:bold;color:rgb(0,0,0)">: 0000 [#1] SMP </span><span style="color:rgb(0,0,0)"> </span><br><span style="color:rgb(24,178,24)">[  505.015690] </span><span style="color:rgb(178,104,24)">Modules linked in</span><span style="font-weight:bold;color:rgb(0,0,0)">: veth xt_addrtype br_netfilter ipt_REJECT nf_reject_ipv4 ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_comment xt_conntrack </span><br>iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bridge stp llc overlay aufs arc4 ath9k ath9k_common ath9k_hw ath mac80211 c<br>fg80211 kvm_amd uas kvm irqbypass k10temp r8169 mii sp5100_tco mac_hid i2c_piix4 shpchp iptable_filter ip_tables ip6table_filter ip6_tables x_tables aut<br>ofs4 mmc_block sdhci_acpi sdhci_pci sdhci virtio_scsi nls_iso8859_1 usb_storage ahci libahci<span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  505.599099] </span><span style="color:rgb(178,104,24)">CPU</span><span style="font-weight:bold;color:rgb(0,0,0)">: 1 PID: 2414 Comm: snap-confine Not tainted 4.4.0-53-generic #74-Ubuntu</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  505.694977] </span><span style="color:rgb(178,104,24)">Hardware name</span><span style="font-weight:bold;color:rgb(0,0,0)">: PC Engines APU, BIOS SageBios_PCEngines_APU-45 04/05/2014</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  505.787738] </span><span style="color:rgb(178,104,24)">task</span><span style="font-weight:bold;color:rgb(0,0,0)">: ffff880037637080 ti: ffff880061a70000 task.ti: ffff880061a70000</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  505.877382] </span><span style="color:rgb(178,104,24)">RIP</span><span style="font-weight:bold;color:rgb(0,0,0)">: 0010:[<ffffffff813fe6c0>]  [<ffffffff813fe6c0>] strlen+0x0/0x20</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  505.966192] </span><span style="color:rgb(178,104,24)">RSP</span><span style="font-weight:bold;color:rgb(0,0,0)">: 0018:ffff880061a73a20  EFLAGS: 00010246</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.029835] </span><span style="color:rgb(178,104,24)">RAX</span><span style="font-weight:bold;color:rgb(0,0,0)">: ffff880061a73b20 RBX: fffffffffffffff3 RCX: 0000000000000000</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.115320] </span><span style="color:rgb(178,104,24)">RDX</span><span style="font-weight:bold;color:rgb(0,0,0)">: 000000000000014e RSI: fffffffffffffff3 RDI: fffffffffffffff3</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.200802] </span><span style="color:rgb(178,104,24)">RBP</span><span style="font-weight:bold;color:rgb(0,0,0)">: ffff880061a73a38 R08: ffff88005c835138 R09: ffff880061a73a94</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.286283] </span><span style="color:rgb(178,104,24)">R10</span><span style="font-weight:bold;color:rgb(0,0,0)">: 000000000000000e R11: ffff88005c835131 R12: ffff88007aff0480</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.371767] </span><span style="color:rgb(178,104,24)">R13</span><span style="font-weight:bold;color:rgb(0,0,0)">: ffff880037637080 R14: ffffffff81399fc0 R15: 00000000fffffff3</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.457251] </span><span style="color:rgb(178,104,24)">FS</span><span style="font-weight:bold;color:rgb(0,0,0)">:  00007fa9f36aa740(0000) GS:ffff88007df00000(0000) knlGS:0000000000000000</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.554170] </span><span style="color:rgb(178,104,24)">CS</span><span style="font-weight:bold;color:rgb(0,0,0)">:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.623014] </span><span style="color:rgb(178,104,24)">CR2</span><span style="font-weight:bold;color:rgb(0,0,0)">: fffffffffffffff3 CR3: 000000007853e000 CR4: 00000000000006e0</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.708497] </span><span style="font-weight:bold;color:rgb(0,0,0)">Stack:</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.732624] </span><span style="font-weight:bold;color:rgb(0,0,0)"> ffffffff81122a1a ffff88007aff0480 ffff880061a73b00 ffff880061a73a60</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.822056] </span><span style="font-weight:bold;color:rgb(0,0,0)"> ffffffff8139a028 ffff88007aff0480 ffff880061a73b00 ffff880037637080</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  506.911490] </span><span style="font-weight:bold;color:rgb(0,0,0)"> ffff880061a73ad8 ffffffff8136f088 ffffffff812285c0 ffff880061a73af0</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.000926] </span><span style="font-weight:bold;color:rgb(0,0,0)">Call Trace:</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.030263] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff81122a1a>] ? audit_log_untrustedstring+0x1a/0x30</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.109502] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8139a028>] audit_cb+0x68/0x3f0</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.170027] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8136f088>] common_lsm_audit+0x1b8/0x740</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.239910] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff812285c0>] ? alloc_inode+0x50/0x90</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.304593] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff812265b6>] ? prepend_path+0xc6/0x2a0</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.371358] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8138161f>] aa_audit+0x5f/0x170</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.431880] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff81399fb2>] audit_mount+0x152/0x160</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.496567] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8139a67d>] match_mnt_path_str+0x1dd/0x490</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.568529] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff812278b8>] ? dentry_path+0x18/0x70</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.633213] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8139aa0a>] match_mnt+0xda/0x150</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.694776] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8139b280>] aa_bind_mount+0x100/0x180</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.761540] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff813903e0>] wrap_apparmor_sb_mount+0x1c0/0x270</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.837664] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff81345db7>] security_sb_mount+0x57/0x80</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.906506] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff8123029b>] do_mount+0xab/0xde0</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  507.967032] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff811efd74>] ? __kmalloc_track_caller+0x1b4/0x250</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.045236] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff810ef581>] ? hrtimer_try_to_cancel+0xd1/0x130</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.121361] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff811acc72>] ? memdup_user+0x42/0x70</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.186042] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff812312ff>] SyS_mount+0x9f/0x100</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.247607] </span><span style="font-weight:bold;color:rgb(0,0,0)"> [<ffffffff81836072>] entry_SYSCALL_64_fastpath+0x16/0x71</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.324765] </span><span style="color:rgb(178,104,24)">Code</span><span style="font-weight:bold;color:rgb(0,0,0)">: 89 f8 48 89 e5 f6 82 a0 05 a5 81 20 74 10 48 83 c0 01 0f b6 10 f6 82 a0 05 a5 81 20 75 f0 5d c3 90 66 2e 0f 1f 84 00 00 00 00 00 <8</span><br>0> 3f 00 55 48 89 e5 74 11 48 89 f8 48 83 c0 01 80 38 00 75 f7 <span style="color:rgb(0,0,0)"> </span><br><span style="color:rgb(24,178,24)">[  508.564156] </span><span style="color:rgb(255,255,255);background-color:rgb(178,24,24)">RIP  [<ffffffff813fe6c0>] strlen+0x0/0x20</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.624889] </span><span style="font-weight:bold;color:rgb(0,0,0)"> RSP <ffff880061a73a20></span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.666696] </span><span style="color:rgb(178,104,24)">CR2</span><span style="font-weight:bold;color:rgb(0,0,0)">: fffffffffffffff3</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(24,178,24)">[  508.706425] </span><span style="font-weight:bold;color:rgb(0,0,0)">---[ end trace 9a8196367a1a3630 ]---</span><br></span></div><div><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(0,0,0)"><br></span></span></div><div>Who should I report this bug to? I notice Olive seems to be working on pc-kernel-snap, so I copy this email to him.</div><div><br></div><div>Thanks.</div><div><br></div><div>Peng</div><div><br></div><div><br></div></div>