FS#47173 - [linux-grsec] PAX: size overflow detected in function ext4_mark_iloc_dirty
Attached to Project:
Community Packages
Opened by Sairon Istyar (saironiq) - Wednesday, 25 November 2015, 09:28 GMT
Last edited by Daniel Micay (thestinger) - Friday, 18 December 2015, 06:57 GMT
Opened by Sairon Istyar (saironiq) - Wednesday, 25 November 2015, 09:28 GMT
Last edited by Daniel Micay (thestinger) - Friday, 18 December 2015, 06:57 GMT
|
Details
Description:
Transmission gets killed after calling fallocate(), affected partition becomes unusable (jbd2 kernel thread hangs), system reset required. Didn't occur with the previous linux-grsec version. Additional info: * package version(s) linux-grsec 4.2.6.201511211841-1 paxd 30-1 transmission-cli 2.84-1 * config and/or log files etc. see attached log Steps to reproduce: * start a torrent download in transmission |
This task depends upon
Attached kernel log of the pax overflow error, it's similar to the original.
https://forums.grsecurity.net/viewtopic.php?f=3&t=4324?
The btrfs issue is one that they didn't already have reported so it would be helpful to gather some more information about it. This case is likely a real bug in the kernel that's being caught rather than a false positive. I attached a patch for logging the values before the overflow occurs which might be helpful to figure out what's going on (can add it with the others in the PKGBUILD with patch -p1). It assigns the maximum possible value in some places via (u64)-1 and it might be what's triggering this.
~ > mount | grep btrfs
/dev/mapper/crypt on / type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache,commit=300,subvolid=5,subvol=/)
https://gist.githubusercontent.com/Manouchehri/08ad11ea73accb2df108/raw/799cc66c2757af112e9d53553fa00f480c1d7184/dmesg.log
What's the last known good kernel? 4.2.6.201511182042-1 or 4.2.6.201511141543-1?
~ > sudo pacman -U /var/cache/pacman/pkg/linux-grsec-4.2.6.201511182042-1-x86_64.pkg.tar.xz
~ > reboot
~ > uname -a
Linux archbox 4.2.6.201511182042-1-grsec #1 SMP PREEMPT Wed Nov 18 23:28:18 EST 2015 x86_64 GNU/Linux
https://projects.archlinux.org/svntogit/community.git/tree/trunk/btrfs-overflow.patch?h=packages/linux-grsec
Chromium has crashed my system twice in the past hour. Not sure if it's related; my logs are missing information about the crash, so unfortunately I don't have any more details.